anker-eufy-security 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (307) hide show
  1. anker_eufy_security-0.1.0/CHANGELOG.md +23 -0
  2. anker_eufy_security-0.1.0/LICENSE +21 -0
  3. anker_eufy_security-0.1.0/NOTICE +8 -0
  4. anker_eufy_security-0.1.0/PKG-INFO +247 -0
  5. anker_eufy_security-0.1.0/README.md +213 -0
  6. anker_eufy_security-0.1.0/pyproject.toml +196 -0
  7. anker_eufy_security-0.1.0/pyproject.toml.orig +132 -0
  8. anker_eufy_security-0.1.0/src/anker_eufy_security/__init__.py +719 -0
  9. anker_eufy_security-0.1.0/src/anker_eufy_security/_lazy.py +40 -0
  10. anker_eufy_security-0.1.0/src/anker_eufy_security/_logging.py +539 -0
  11. anker_eufy_security-0.1.0/src/anker_eufy_security/cli/__init__.py +23 -0
  12. anker_eufy_security-0.1.0/src/anker_eufy_security/cli/__main__.py +9 -0
  13. anker_eufy_security-0.1.0/src/anker_eufy_security/cli/app.py +187 -0
  14. anker_eufy_security-0.1.0/src/anker_eufy_security/cli/commands.py +843 -0
  15. anker_eufy_security-0.1.0/src/anker_eufy_security/cli/config.py +374 -0
  16. anker_eufy_security-0.1.0/src/anker_eufy_security/cli/render.py +1214 -0
  17. anker_eufy_security-0.1.0/src/anker_eufy_security/client.py +2063 -0
  18. anker_eufy_security-0.1.0/src/anker_eufy_security/cloud/__init__.py +56 -0
  19. anker_eufy_security-0.1.0/src/anker_eufy_security/cloud/api.py +4092 -0
  20. anker_eufy_security-0.1.0/src/anker_eufy_security/cloud/arming.py +511 -0
  21. anker_eufy_security-0.1.0/src/anker_eufy_security/cloud/const.py +397 -0
  22. anker_eufy_security-0.1.0/src/anker_eufy_security/cloud/crypto.py +238 -0
  23. anker_eufy_security-0.1.0/src/anker_eufy_security/cloud/models.py +836 -0
  24. anker_eufy_security-0.1.0/src/anker_eufy_security/cloud/status.py +136 -0
  25. anker_eufy_security-0.1.0/src/anker_eufy_security/detection_delivery.py +239 -0
  26. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/__init__.py +169 -0
  27. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/_device_alarm_data.py +9253 -0
  28. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/_live_open_data.py +2042 -0
  29. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/_lock_routes_data.py +41 -0
  30. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/_model_names_data.py +167 -0
  31. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/_ptz_data.py +3268 -0
  32. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/_station_config_data.py +754 -0
  33. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/_webrtc_routing_data.py +329 -0
  34. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/app_models.py +241 -0
  35. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/capabilities.py +727 -0
  36. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/command_types.py +547 -0
  37. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/conditions.py +327 -0
  38. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/__init__.py +1 -0
  39. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/INDEX.json +171 -0
  40. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T2801.json +2067 -0
  41. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T280B.json +2102 -0
  42. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T2880.json +2067 -0
  43. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T6010.json +513 -0
  44. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T6310.json +3025 -0
  45. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T7000.json +1502 -0
  46. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T7100.json +2164 -0
  47. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T7400.json +523 -0
  48. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T7401.json +532 -0
  49. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8001.json +650 -0
  50. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8002.json +628 -0
  51. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8010.json +797 -0
  52. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8020.json +534 -0
  53. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8021.json +190 -0
  54. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8023.json +598 -0
  55. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8024.json +633 -0
  56. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8025.json +1136 -0
  57. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8026.json +633 -0
  58. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8028.json +509 -0
  59. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8030.json +1169 -0
  60. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8040.json +1624 -0
  61. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8110.json +2912 -0
  62. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8110E.json +2750 -0
  63. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8111.json +2057 -0
  64. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8112.json +1808 -0
  65. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8113.json +2263 -0
  66. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8114.json +1885 -0
  67. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8115.json +2839 -0
  68. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8119.json +2735 -0
  69. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8122.json +2304 -0
  70. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8123.json +2418 -0
  71. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8124.json +2413 -0
  72. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8124R.json +2503 -0
  73. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8130.json +2060 -0
  74. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8131.json +2234 -0
  75. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8134.json +2816 -0
  76. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8140.json +2132 -0
  77. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8142.json +2252 -0
  78. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8144.json +2680 -0
  79. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T814X.json +2983 -0
  80. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T814XS.json +2982 -0
  81. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8150.json +2058 -0
  82. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8151.json +2102 -0
  83. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8152.json +2102 -0
  84. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8160.json +2351 -0
  85. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8160C.json +2372 -0
  86. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8161.json +2174 -0
  87. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8162.json +3081 -0
  88. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8170.json +3536 -0
  89. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8170E.json +2875 -0
  90. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8171.json +3330 -0
  91. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8172.json +3911 -0
  92. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8173.json +3365 -0
  93. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8174.json +3540 -0
  94. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T817L.json +3447 -0
  95. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8180.json +3619 -0
  96. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T81A0.json +2273 -0
  97. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8200.json +1495 -0
  98. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8200X.json +1591 -0
  99. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8201.json +1495 -0
  100. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8201X.json +1595 -0
  101. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8202.json +1617 -0
  102. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8203.json +1754 -0
  103. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8210.json +2237 -0
  104. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8210C.json +2058 -0
  105. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8213.json +2600 -0
  106. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8214.json +4157 -0
  107. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8214C.json +3778 -0
  108. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8215.json +4478 -0
  109. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8217.json +4074 -0
  110. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8220.json +1857 -0
  111. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8221.json +1792 -0
  112. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8222.json +1902 -0
  113. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8223.json +3031 -0
  114. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8224.json +2890 -0
  115. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8352.json +3043 -0
  116. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8354.json +3049 -0
  117. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8400.json +3147 -0
  118. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8401.json +3129 -0
  119. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8404.json +3034 -0
  120. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8410.json +3541 -0
  121. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8410C.json +3775 -0
  122. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8411.json +3129 -0
  123. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8414.json +3231 -0
  124. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8416.json +3635 -0
  125. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8417.json +3601 -0
  126. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8419.json +3111 -0
  127. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8420.json +1836 -0
  128. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8420X.json +1896 -0
  129. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8422.json +1932 -0
  130. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8423.json +2602 -0
  131. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8424.json +1953 -0
  132. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8425.json +3238 -0
  133. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8426.json +3162 -0
  134. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8440.json +2354 -0
  135. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8441.json +2607 -0
  136. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8442.json +2661 -0
  137. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8452.json +1663 -0
  138. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8453.json +1671 -0
  139. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T84A1.json +1972 -0
  140. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8500.json +548 -0
  141. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8501.json +192 -0
  142. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8502.json +273 -0
  143. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8503.json +457 -0
  144. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8504.json +462 -0
  145. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8506.json +338 -0
  146. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8510.json +320 -0
  147. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8510P.json +353 -0
  148. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8520.json +231 -0
  149. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8520P.json +370 -0
  150. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8530.json +1536 -0
  151. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8531.json +2038 -0
  152. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8532.json +3489 -0
  153. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T85D0.json +306 -0
  154. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T85D2.json +306 -0
  155. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T85F0.json +306 -0
  156. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T85F1.json +290 -0
  157. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T85L0.json +342 -0
  158. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T85L1.json +333 -0
  159. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T85M0.json +3346 -0
  160. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T85M1.json +3394 -0
  161. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T85P0.json +360 -0
  162. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T85P1.json +360 -0
  163. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T85V0.json +2698 -0
  164. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8600.json +2665 -0
  165. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T86C1.json +3125 -0
  166. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T86P2.json +2400 -0
  167. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T870G.json +747 -0
  168. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8790.json +1041 -0
  169. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T87A0.json +78 -0
  170. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8900.json +158 -0
  171. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8910.json +229 -0
  172. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8920.json +187 -0
  173. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8931.json +156 -0
  174. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8960.json +169 -0
  175. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8970.json +170 -0
  176. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8B00.json +2446 -0
  177. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8C00.json +26 -0
  178. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8E00.json +2476 -0
  179. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8E00E.json +2373 -0
  180. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8L00.json +187 -0
  181. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8L01.json +178 -0
  182. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8L02.json +186 -0
  183. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8L04.json +259 -0
  184. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8L10.json +206 -0
  185. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8L20.json +206 -0
  186. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8L30.json +206 -0
  187. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8L40.json +206 -0
  188. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8L60.json +3606 -0
  189. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8N00.json +1647 -0
  190. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8P00.json +2102 -0
  191. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8P10.json +2132 -0
  192. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8W11.json +1982 -0
  193. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8W11C.json +3619 -0
  194. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T8W11P.json +77 -0
  195. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T9000.json +1589 -0
  196. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T90C0.json +51 -0
  197. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T90E0.json +329 -0
  198. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T90F0.json +329 -0
  199. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T90G0.json +280 -0
  200. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T90K0.json +232 -0
  201. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T90M0.json +292 -0
  202. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T90P0.json +253 -0
  203. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T90R0.json +291 -0
  204. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T90R1.json +198 -0
  205. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/T90S0.json +273 -0
  206. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/models/__init__.py +1 -0
  207. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/data/timezones.json +508 -0
  208. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/device_alarm.py +139 -0
  209. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/garage.py +190 -0
  210. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/labels.py +308 -0
  211. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/lights.py +341 -0
  212. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/live_open.py +131 -0
  213. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/live_view.py +194 -0
  214. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/lock_routes.py +113 -0
  215. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/locks.py +133 -0
  216. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/matrix.py +325 -0
  217. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/model_settings.py +2355 -0
  218. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/param_info.py +281 -0
  219. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/ptz.py +87 -0
  220. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/recipes.py +640 -0
  221. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/sections.py +89 -0
  222. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/settings.py +516 -0
  223. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/station_config_support.py +331 -0
  224. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/support.py +37 -0
  225. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/td.py +263 -0
  226. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/timezones.py +112 -0
  227. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/types.py +357 -0
  228. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/variants.py +35 -0
  229. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/versions.py +107 -0
  230. anker_eufy_security-0.1.0/src/anker_eufy_security/devices/webrtc.py +228 -0
  231. anker_eufy_security-0.1.0/src/anker_eufy_security/diagnostics.py +550 -0
  232. anker_eufy_security-0.1.0/src/anker_eufy_security/events.py +1933 -0
  233. anker_eufy_security-0.1.0/src/anker_eufy_security/exceptions.py +660 -0
  234. anker_eufy_security-0.1.0/src/anker_eufy_security/identity.py +131 -0
  235. anker_eufy_security-0.1.0/src/anker_eufy_security/images.py +204 -0
  236. anker_eufy_security-0.1.0/src/anker_eufy_security/inclusion.py +91 -0
  237. anker_eufy_security-0.1.0/src/anker_eufy_security/install.py +45 -0
  238. anker_eufy_security-0.1.0/src/anker_eufy_security/lock_commands/__init__.py +20 -0
  239. anker_eufy_security-0.1.0/src/anker_eufy_security/lock_commands/actions.py +88 -0
  240. anker_eufy_security-0.1.0/src/anker_eufy_security/lock_commands/anker.py +282 -0
  241. anker_eufy_security-0.1.0/src/anker_eufy_security/lock_commands/cm2.py +286 -0
  242. anker_eufy_security-0.1.0/src/anker_eufy_security/lock_commands/frames.py +150 -0
  243. anker_eufy_security-0.1.0/src/anker_eufy_security/models.py +214 -0
  244. anker_eufy_security-0.1.0/src/anker_eufy_security/mqtt/__init__.py +30 -0
  245. anker_eufy_security-0.1.0/src/anker_eufy_security/mqtt/account.py +239 -0
  246. anker_eufy_security-0.1.0/src/anker_eufy_security/mqtt/client.py +659 -0
  247. anker_eufy_security-0.1.0/src/anker_eufy_security/mqtt/envelope.py +224 -0
  248. anker_eufy_security-0.1.0/src/anker_eufy_security/mqtt/selection.py +81 -0
  249. anker_eufy_security-0.1.0/src/anker_eufy_security/mqtt/tls.py +62 -0
  250. anker_eufy_security-0.1.0/src/anker_eufy_security/network.py +245 -0
  251. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/__init__.py +108 -0
  252. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/_json.py +104 -0
  253. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/alarm.py +158 -0
  254. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/broadcast.py +675 -0
  255. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/clip.py +230 -0
  256. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/crypto.py +362 -0
  257. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/did.py +138 -0
  258. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/discovery.py +125 -0
  259. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/encoder.py +350 -0
  260. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/media.py +1229 -0
  261. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/messages.py +926 -0
  262. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/mode_actions.py +502 -0
  263. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/mpegts.py +419 -0
  264. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/netif.py +78 -0
  265. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/notify.py +204 -0
  266. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/pacing.py +130 -0
  267. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/param_notify.py +125 -0
  268. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/params.py +199 -0
  269. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/pppp.py +298 -0
  270. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/session/__init__.py +4209 -0
  271. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/session/budget.py +401 -0
  272. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/session/core.py +151 -0
  273. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/session/history.py +356 -0
  274. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/session/keys.py +133 -0
  275. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/session/media_slot.py +626 -0
  276. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/session/media_stream.py +741 -0
  277. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/session/param_state.py +449 -0
  278. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/session/stats.py +290 -0
  279. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/session/wake.py +29 -0
  280. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/station_config_codecs.py +923 -0
  281. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/storage_info.py +654 -0
  282. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/transport.py +999 -0
  283. anker_eufy_security-0.1.0/src/anker_eufy_security/p2p/xzyh.py +253 -0
  284. anker_eufy_security-0.1.0/src/anker_eufy_security/push/__init__.py +17 -0
  285. anker_eufy_security-0.1.0/src/anker_eufy_security/push/const.py +68 -0
  286. anker_eufy_security-0.1.0/src/anker_eufy_security/push/decode.py +207 -0
  287. anker_eufy_security-0.1.0/src/anker_eufy_security/push/fcm.py +823 -0
  288. anker_eufy_security-0.1.0/src/anker_eufy_security/py.typed +0 -0
  289. anker_eufy_security-0.1.0/src/anker_eufy_security/recordings.py +237 -0
  290. anker_eufy_security-0.1.0/src/anker_eufy_security/station/__init__.py +4120 -0
  291. anker_eufy_security-0.1.0/src/anker_eufy_security/station/activity.py +101 -0
  292. anker_eufy_security-0.1.0/src/anker_eufy_security/station/alarms.py +248 -0
  293. anker_eufy_security-0.1.0/src/anker_eufy_security/station/base.py +28 -0
  294. anker_eufy_security-0.1.0/src/anker_eufy_security/station/configuration.py +923 -0
  295. anker_eufy_security-0.1.0/src/anker_eufy_security/station/garage.py +399 -0
  296. anker_eufy_security-0.1.0/src/anker_eufy_security/station/history.py +274 -0
  297. anker_eufy_security-0.1.0/src/anker_eufy_security/station/locks.py +169 -0
  298. anker_eufy_security-0.1.0/src/anker_eufy_security/station/ptz.py +681 -0
  299. anker_eufy_security-0.1.0/src/anker_eufy_security/station_config.py +593 -0
  300. anker_eufy_security-0.1.0/src/anker_eufy_security/storage.py +893 -0
  301. anker_eufy_security-0.1.0/src/anker_eufy_security/testing/__init__.py +54 -0
  302. anker_eufy_security-0.1.0/src/anker_eufy_security/testing/cloud.py +964 -0
  303. anker_eufy_security-0.1.0/src/anker_eufy_security/testing/mqtt.py +437 -0
  304. anker_eufy_security-0.1.0/src/anker_eufy_security/testing/station.py +2034 -0
  305. anker_eufy_security-0.1.0/src/anker_eufy_security/testing/station_config.py +82 -0
  306. anker_eufy_security-0.1.0/src/anker_eufy_security/testing/synthetic.py +55 -0
  307. anker_eufy_security-0.1.0/src/anker_eufy_security/testing/timeouts.py +90 -0
@@ -0,0 +1,23 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project. The project follows
4
+ [Semantic Versioning](https://semver.org/); before 1.0, a minor release may change the
5
+ API. release-please writes the entries from the conventional commits.
6
+
7
+ ## 0.1.0 (2026-11-26)
8
+
9
+
10
+ ### Features
11
+
12
+ * publish as anker-eufy-security (import anker_eufy_security), based on eufy-home-security v0.4.19 ([5ae3b98](https://github.com/abz2much/anker-eufy-security/commit/5ae3b98bf4d59b6e8135ef53a1f8edc0308612f2))
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **events:** every doorbell press is its own occurrence: a press in a detection's session, or a second press seconds later, is no longer dropped ([5ae3b98](https://github.com/abz2much/anker-eufy-security/commit/5ae3b98bf4d59b6e8135ef53a1f8edc0308612f2))
18
+ * **scripts:** the rename script moves ported files into the package one by one ([5ae3b98](https://github.com/abz2much/anker-eufy-security/commit/5ae3b98bf4d59b6e8135ef53a1f8edc0308612f2))
19
+
20
+ ## [eufy-home-security v0.4.19](https://github.com/alaraun/python-eufy-home-security/blob/v0.4.19/CHANGELOG.md)
21
+
22
+ This project is based on Alar Aun's eufy-home-security v0.4.19 (MIT). That project's
23
+ changelog holds the history before 0.1.0.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Alar Aun
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,8 @@
1
+ anker-eufy-security
2
+
3
+ This product is based on eufy-home-security by Alar Aun
4
+ (https://github.com/alaraun/python-eufy-home-security), release v0.4.19
5
+ (commit aad23e4439de9516d5621e09918b2ed39d5577ce), licensed under the MIT License.
6
+ The original copyright notice and licence text are kept in LICENSE.
7
+
8
+ Changes from the original are listed in CHANGES-FROM-UPSTREAM.md.
@@ -0,0 +1,247 @@
1
+ Metadata-Version: 2.4
2
+ Name: anker-eufy-security
3
+ Version: 0.1.0
4
+ Summary: Asyncio client for eufy Security: local P2P to the HomeBase, the eufy cloud, and push events.
5
+ Keywords: eufy,eufy-security,eufycam,homebase,home-assistant,asyncio,p2p
6
+ Author: Alar Aun, abz2much
7
+ License-Expression: MIT
8
+ License-File: LICENSE
9
+ License-File: NOTICE
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Environment :: Console
12
+ Classifier: Framework :: AsyncIO
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3 :: Only
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Programming Language :: Python :: 3.14
19
+ Classifier: Topic :: Home Automation
20
+ Classifier: Typing :: Typed
21
+ Requires-Dist: aiohttp>=3.11
22
+ Requires-Dist: cryptography>=44
23
+ Requires-Dist: firebase-messaging>=0.4
24
+ Requires-Dist: protobuf>=5
25
+ Requires-Dist: tzdata>=2025.2
26
+ Requires-Dist: aiomqtt>=2.2,<3 ; extra == 'mqtt'
27
+ Requires-Python: >=3.13
28
+ Project-URL: Source, https://github.com/abz2much/anker-eufy-security
29
+ Project-URL: Issues, https://github.com/abz2much/anker-eufy-security/issues
30
+ Project-URL: Changelog, https://github.com/abz2much/anker-eufy-security/blob/main/CHANGELOG.md
31
+ Project-URL: Documentation, https://github.com/abz2much/anker-eufy-security/tree/main/docs
32
+ Provides-Extra: mqtt
33
+ Description-Content-Type: text/markdown
34
+
35
+ # anker-eufy-security
36
+
37
+ [![PyPI](https://img.shields.io/pypi/v/anker-eufy-security)](https://pypi.org/project/anker-eufy-security/)
38
+ [![Python](https://img.shields.io/pypi/pyversions/anker-eufy-security)](https://pypi.org/project/anker-eufy-security/)
39
+ [![CI](https://github.com/abz2much/anker-eufy-security/actions/workflows/ci.yml/badge.svg)](https://github.com/abz2much/anker-eufy-security/actions/workflows/ci.yml)
40
+
41
+ Asyncio Python library and command-line tool for **eufy Security** systems. It talks
42
+ to the HomeBase and its cameras directly over the local network, and uses eufy's cloud
43
+ only for login, keys and push events. It is written for a Home Assistant integration,
44
+ but it has no Home Assistant dependency and works on its own.
45
+
46
+ **Home Assistant users:** install the
47
+ [Anker eufy Integration](https://github.com/abz2much/anker-eufy-integration) through
48
+ HACS. This package is the Python library that integration uses; Home Assistant installs
49
+ it automatically, so do not add this repository to HACS.
50
+
51
+ **Origin.** This library is based on Alar Aun's
52
+ [eufy-home-security](https://github.com/alaraun/python-eufy-home-security) (MIT), from
53
+ its v0.4.19 release, under its own name (`anker-eufy-security`, import
54
+ `anker_eufy_security`) so both can be installed side by side. What differs from upstream
55
+ is listed in [CHANGES-FROM-UPSTREAM.md](CHANGES-FROM-UPSTREAM.md); see also
56
+ [NOTICE](NOTICE).
57
+
58
+ > **Status: beta, incomplete.** This is a 0.x release. It works day to day on the
59
+ > hardware it was developed against, but device coverage is narrow, much of the
60
+ > device support is unproven, and the API may change in any release. Do not make it
61
+ > the only thing between you and an intruder: keep the eufy app installed.
62
+ > Not affiliated with Anker or eufy.
63
+
64
+ ## What it does
65
+
66
+ - **Local P2P to the station**: guard mode, status (battery, signal, storage,
67
+ firmware), device settings, live video and audio, stored recordings and stills, the
68
+ station's event history, and pan/tilt presets. Once connected, commands and state
69
+ stay on your LAN.
70
+ - **eufy cloud** (the `eufy_mega` backend): login with the e-mailed code or captcha,
71
+ the device list, the per-station keys a local session needs, and firmware-update
72
+ notices.
73
+ - **Push events over FCM**: guard-mode changes made elsewhere (app, keypad, schedule),
74
+ and events when the host is not on the station's LAN.
75
+ - **A session cache**, so a restart needs no cloud call.
76
+ - **Per-model settings from eufy's own code**: each product's settings (values, labels,
77
+ units, how to write and read them) are generated from the thing description and
78
+ handler the eufy app downloads, and ship with the library for 166 products.
79
+ - **Every product the eufy app names**: the model list (223 serial prefixes, with kind
80
+ and cloud device type) is generated from the app's own tables, so a camera is
81
+ recognised as a camera even when nobody has tested it.
82
+ - **Support graded as data**: every model and capability carries *verified* (proven on
83
+ hardware), *declared* (from the eufy app, not proven) or *unknown*, with its source,
84
+ so a consumer can tell what is proven.
85
+
86
+ - **MQTT transport (optional, `mqtt` extra)**: the client certificate, device selection,
87
+ topics, envelope and an asyncio client for the eufy broker the app uses for its Wi-Fi
88
+ locks. Declared from the eufy app, not yet tested against the broker; lock commands are
89
+ not part of it yet.
90
+
91
+ Pure `asyncio` on `aiohttp`, `cryptography`, `firebase-messaging` and `protobuf`: no
92
+ Node.js bridge, no add-on, no threads (the optional MQTT extra's `aiomqtt` runs its
93
+ broker connect step, name lookup to TLS handshake, in the event loop's executor).
94
+
95
+ ## Status
96
+
97
+ | area | state |
98
+ |---|---|
99
+ | HomeBase 3 (T8030) with eufyCam 3 (T8160) | the primary target. Login, local session, status, guard mode, camera settings, live stream, recordings, stills, local and push events are verified on hardware |
100
+ | Battery SoloCam (T8170), standalone | guard mode, status, live stream, pan/tilt presets and control, zoom, and settings (write + read-back) verified on firmware 3.3.5.4. The camera sleeps, so each call first wakes it (seconds). From firmware 3.4.0.0 the eufy app streams most T8170 units over WebRTC (the exception: a serial whose 7th character is `2`), which the library does not implement: live view and pan/tilt are then graded unknown and refused |
101
+ | Motion sensor (T8910) | battery and signal read through the station; of its settings, only the per-mode delays and actions were written |
102
+ | HomeBase 2 (T8010) | local P2P session, recording history, per-camera filtering, pagination, native playback and download verified on HomeBase 2 (firmware 3.4.2.6h) with eufyCam 2C (T8113); other eufyCam 2-series models are *declared* |
103
+ | other HomeBases and cameras | *declared* only: known from the app, never tested. Every product the app names is in the model list; settings files for 166 products ship with the library, generated from eufy's own code; a product without one is listed read-only from the cloud |
104
+ | per-mode actions and delays | readable and writable; the Home, Away and Custom 1 delays are verified by write + read-back, the action flags' names are not checked against the app |
105
+ | firmware updates | reported, never installed |
106
+ | smart locks, garage doors | *declared* only, never tested: lock state and events for every bundled lock model (no lock command yet), garage-door state and open/close for the garage-door cameras (T8452, T8453) |
107
+ | API | not stable: names and signatures may change in any 0.x release |
108
+ | packaging | a pure-Python wheel with typing (`py.typed`) on PyPI |
109
+
110
+ The full picture is in the generated [support matrix](https://github.com/abz2much/anker-eufy-security/blob/main/docs/reference/devices.md) and
111
+ the [hardware verification page](https://github.com/abz2much/anker-eufy-security/blob/main/docs/reference/hardware-verification.md). A setting comes from
112
+ eufy's code, not from a test on hardware: it may be rejected by a device, and the
113
+ page names the ones written and read back.
114
+
115
+ ## Requirements
116
+
117
+ - Python 3.13 or newer.
118
+ - A eufy Security account that can see the station: the owner's, or a member it is
119
+ shared with (commands are sent on the owner's behalf).
120
+ - For local access, the fastest path is a host on the **same L2 network** as the
121
+ station (discovery is a broadcast). A station on another subnet or at another site
122
+ connects through eufy's rendezvous servers instead (outbound UDP 32100 and a cloud
123
+ session for its key). Login and push work from anywhere.
124
+ - If inbound UDP is filtered: a fixed IP and a pinned local port per station.
125
+ `anker-eufy-security network` prints what each station needs.
126
+
127
+ ## Install
128
+
129
+ ```
130
+ uv add anker-eufy-security # the library, in a uv project (or: pip install anker-eufy-security)
131
+ uv add "anker-eufy-security[mqtt]" # with the MQTT transport (aiomqtt), for Wi-Fi locks
132
+ uv tool install anker-eufy-security # the anker-eufy-security CLI on PATH
133
+ uvx --from anker-eufy-security anker-eufy-security --help # run once
134
+ ```
135
+
136
+ The development version: `uv add "anker-eufy-security @ git+https://github.com/abz2much/anker-eufy-security"`,
137
+ or from a checkout `uv sync && uv run anker-eufy-security --help`.
138
+
139
+ ## Usage
140
+
141
+ ### Command line
142
+
143
+ ```
144
+ anker-eufy-security login # asks for the password and the e-mailed code once
145
+ anker-eufy-security status # guard mode, firmware, storage, every paired device
146
+ anker-eufy-security guard set home
147
+ anker-eufy-security settings --model T8160 # a model's settings, keyed by eufy's identifiers
148
+ anker-eufy-security set detection_sensitivity 4 --channel 0
149
+ anker-eufy-security live --channel 0 --seconds 10 --out clip
150
+ anker-eufy-security monitor # print events as they arrive
151
+ ```
152
+
153
+ The password is never a flag: it comes from `$EUFY_PASSWORD`, the session cache or a
154
+ prompt. Every command is in [the CLI reference](https://github.com/abz2much/anker-eufy-security/blob/main/docs/reference/cli.md).
155
+
156
+ ### Library
157
+
158
+ ```python
159
+ import asyncio
160
+
161
+ import aiohttp
162
+
163
+ from anker_eufy_security import EufySecurity, JsonFileStore, LoginChallengeError
164
+
165
+
166
+ async def main() -> None:
167
+ async with aiohttp.ClientSession() as http:
168
+ eufy = EufySecurity(
169
+ http, "you@example.com", "password", store=JsonFileStore("~/.eufy-cache.json")
170
+ )
171
+ try:
172
+ await eufy.async_login()
173
+ except LoginChallengeError as challenge:
174
+ if challenge.kind != "verify_code":
175
+ raise
176
+ await eufy.async_login(verify_code=input("code from the e-mail: "))
177
+
178
+ station = (await eufy.async_discover())[0]
179
+ state = await station.async_update()
180
+ print(station.name, state.guard_mode, state.firmware)
181
+
182
+ await station.async_set_guard_mode("home") # returns once the station confirms
183
+ await eufy.async_close()
184
+
185
+
186
+ asyncio.run(main())
187
+ ```
188
+
189
+ Events from the local session and from push arrive on one stream:
190
+
191
+ ```python
192
+ eufy.subscribe(print)
193
+ await eufy.async_start() # local sessions and cloud push, until async_close()
194
+ ```
195
+
196
+ Arming returns only after the station confirms it; a setting write returns how far it
197
+ got (`CommandOutcome`). A failure raises a typed error from
198
+ `anker_eufy_security.exceptions`.
199
+ The cache file holds the cloud session, the station keys and the account password:
200
+ keep it private.
201
+
202
+ More in [getting started](https://github.com/abz2much/anker-eufy-security/blob/main/docs/getting-started.md) and, for an integration, the
203
+ [Home Assistant guide](https://github.com/abz2much/anker-eufy-security/blob/main/docs/how-to/home-assistant.md).
204
+
205
+ ## Documentation
206
+
207
+ | | |
208
+ |---|---|
209
+ | [Getting started](https://github.com/abz2much/anker-eufy-security/blob/main/docs/getting-started.md) | install, login, arm, settings, events |
210
+ | [Home Assistant integration](https://github.com/abz2much/anker-eufy-security/blob/main/docs/how-to/home-assistant.md) | how an integration uses the library: cache, reauth, ids, network, coordinators, events, entities, stills, streaming, errors |
211
+ | [Command line](https://github.com/abz2much/anker-eufy-security/blob/main/docs/reference/cli.md) | every `anker-eufy-security` command |
212
+ | [Support matrix](https://github.com/abz2much/anker-eufy-security/blob/main/docs/reference/devices.md) · [Hardware verification](https://github.com/abz2much/anker-eufy-security/blob/main/docs/reference/hardware-verification.md) | what is supported, and what is proven on hardware |
213
+ | [Add or verify a device](https://github.com/abz2much/anker-eufy-security/blob/main/docs/how-to/add-a-device.md) | how support is declared and proven |
214
+ | [Regenerate the settings files](https://github.com/abz2much/anker-eufy-security/blob/main/docs/how-to/regenerate-models.md) · [Settings file schema](https://github.com/abz2much/anker-eufy-security/blob/main/docs/reference/models-schema.md) | how the per-model settings are generated, and their format |
215
+ | [Debug logging](https://github.com/abz2much/anker-eufy-security/blob/main/docs/how-to/debug-logging.md) | loggers, wire dumps, redaction |
216
+ | [Testing](https://github.com/abz2much/anker-eufy-security/blob/main/docs/how-to/testing.md) | end-to-end tests with `anker_eufy_security.testing` |
217
+ | [Thing models](https://github.com/abz2much/anker-eufy-security/blob/main/docs/reference/thing-models.md) | the app's per-model descriptions and handler recipes |
218
+ | [Protocol reference](https://github.com/abz2much/anker-eufy-security/blob/main/docs/protocol/README.md) | cloud, P2P transport, session crypto, commands, events, media, lock commands, MQTT |
219
+
220
+ ## Contributing
221
+
222
+ Reports from other hardware help most: `anker-eufy-security status --raw` and
223
+ `anker-eufy-security coverage` show what a station reports, and
224
+ [add a device](https://github.com/abz2much/anker-eufy-security/blob/main/docs/how-to/add-a-device.md) explains how an entry becomes *verified*.
225
+ Never post serials, credentials or captures from your home; see
226
+ [CONTRIBUTING.md](https://github.com/abz2much/anker-eufy-security/blob/main/CONTRIBUTING.md) and [SECURITY.md](https://github.com/abz2much/anker-eufy-security/blob/main/SECURITY.md).
227
+
228
+ ```
229
+ uv sync
230
+ uv run pytest -n auto
231
+ uv run ruff check && uv run ruff format --check
232
+ uv run mypy
233
+ ```
234
+
235
+ ## Support
236
+
237
+ This project is built in spare time and is free to use. If it is useful to you,
238
+ donations are welcome. They are voluntary, buy no support or priority, and are not
239
+ tax-deductible.
240
+
241
+
242
+ Donated eufy hardware helps develop future features; please get in touch first.
243
+
244
+ ## License
245
+
246
+ MIT. eufy and Anker are trademarks of Anker Innovations; this project is not
247
+ affiliated with or endorsed by them.
@@ -0,0 +1,213 @@
1
+ # anker-eufy-security
2
+
3
+ [![PyPI](https://img.shields.io/pypi/v/anker-eufy-security)](https://pypi.org/project/anker-eufy-security/)
4
+ [![Python](https://img.shields.io/pypi/pyversions/anker-eufy-security)](https://pypi.org/project/anker-eufy-security/)
5
+ [![CI](https://github.com/abz2much/anker-eufy-security/actions/workflows/ci.yml/badge.svg)](https://github.com/abz2much/anker-eufy-security/actions/workflows/ci.yml)
6
+
7
+ Asyncio Python library and command-line tool for **eufy Security** systems. It talks
8
+ to the HomeBase and its cameras directly over the local network, and uses eufy's cloud
9
+ only for login, keys and push events. It is written for a Home Assistant integration,
10
+ but it has no Home Assistant dependency and works on its own.
11
+
12
+ **Home Assistant users:** install the
13
+ [Anker eufy Integration](https://github.com/abz2much/anker-eufy-integration) through
14
+ HACS. This package is the Python library that integration uses; Home Assistant installs
15
+ it automatically, so do not add this repository to HACS.
16
+
17
+ **Origin.** This library is based on Alar Aun's
18
+ [eufy-home-security](https://github.com/alaraun/python-eufy-home-security) (MIT), from
19
+ its v0.4.19 release, under its own name (`anker-eufy-security`, import
20
+ `anker_eufy_security`) so both can be installed side by side. What differs from upstream
21
+ is listed in [CHANGES-FROM-UPSTREAM.md](CHANGES-FROM-UPSTREAM.md); see also
22
+ [NOTICE](NOTICE).
23
+
24
+ > **Status: beta, incomplete.** This is a 0.x release. It works day to day on the
25
+ > hardware it was developed against, but device coverage is narrow, much of the
26
+ > device support is unproven, and the API may change in any release. Do not make it
27
+ > the only thing between you and an intruder: keep the eufy app installed.
28
+ > Not affiliated with Anker or eufy.
29
+
30
+ ## What it does
31
+
32
+ - **Local P2P to the station**: guard mode, status (battery, signal, storage,
33
+ firmware), device settings, live video and audio, stored recordings and stills, the
34
+ station's event history, and pan/tilt presets. Once connected, commands and state
35
+ stay on your LAN.
36
+ - **eufy cloud** (the `eufy_mega` backend): login with the e-mailed code or captcha,
37
+ the device list, the per-station keys a local session needs, and firmware-update
38
+ notices.
39
+ - **Push events over FCM**: guard-mode changes made elsewhere (app, keypad, schedule),
40
+ and events when the host is not on the station's LAN.
41
+ - **A session cache**, so a restart needs no cloud call.
42
+ - **Per-model settings from eufy's own code**: each product's settings (values, labels,
43
+ units, how to write and read them) are generated from the thing description and
44
+ handler the eufy app downloads, and ship with the library for 166 products.
45
+ - **Every product the eufy app names**: the model list (223 serial prefixes, with kind
46
+ and cloud device type) is generated from the app's own tables, so a camera is
47
+ recognised as a camera even when nobody has tested it.
48
+ - **Support graded as data**: every model and capability carries *verified* (proven on
49
+ hardware), *declared* (from the eufy app, not proven) or *unknown*, with its source,
50
+ so a consumer can tell what is proven.
51
+
52
+ - **MQTT transport (optional, `mqtt` extra)**: the client certificate, device selection,
53
+ topics, envelope and an asyncio client for the eufy broker the app uses for its Wi-Fi
54
+ locks. Declared from the eufy app, not yet tested against the broker; lock commands are
55
+ not part of it yet.
56
+
57
+ Pure `asyncio` on `aiohttp`, `cryptography`, `firebase-messaging` and `protobuf`: no
58
+ Node.js bridge, no add-on, no threads (the optional MQTT extra's `aiomqtt` runs its
59
+ broker connect step, name lookup to TLS handshake, in the event loop's executor).
60
+
61
+ ## Status
62
+
63
+ | area | state |
64
+ |---|---|
65
+ | HomeBase 3 (T8030) with eufyCam 3 (T8160) | the primary target. Login, local session, status, guard mode, camera settings, live stream, recordings, stills, local and push events are verified on hardware |
66
+ | Battery SoloCam (T8170), standalone | guard mode, status, live stream, pan/tilt presets and control, zoom, and settings (write + read-back) verified on firmware 3.3.5.4. The camera sleeps, so each call first wakes it (seconds). From firmware 3.4.0.0 the eufy app streams most T8170 units over WebRTC (the exception: a serial whose 7th character is `2`), which the library does not implement: live view and pan/tilt are then graded unknown and refused |
67
+ | Motion sensor (T8910) | battery and signal read through the station; of its settings, only the per-mode delays and actions were written |
68
+ | HomeBase 2 (T8010) | local P2P session, recording history, per-camera filtering, pagination, native playback and download verified on HomeBase 2 (firmware 3.4.2.6h) with eufyCam 2C (T8113); other eufyCam 2-series models are *declared* |
69
+ | other HomeBases and cameras | *declared* only: known from the app, never tested. Every product the app names is in the model list; settings files for 166 products ship with the library, generated from eufy's own code; a product without one is listed read-only from the cloud |
70
+ | per-mode actions and delays | readable and writable; the Home, Away and Custom 1 delays are verified by write + read-back, the action flags' names are not checked against the app |
71
+ | firmware updates | reported, never installed |
72
+ | smart locks, garage doors | *declared* only, never tested: lock state and events for every bundled lock model (no lock command yet), garage-door state and open/close for the garage-door cameras (T8452, T8453) |
73
+ | API | not stable: names and signatures may change in any 0.x release |
74
+ | packaging | a pure-Python wheel with typing (`py.typed`) on PyPI |
75
+
76
+ The full picture is in the generated [support matrix](https://github.com/abz2much/anker-eufy-security/blob/main/docs/reference/devices.md) and
77
+ the [hardware verification page](https://github.com/abz2much/anker-eufy-security/blob/main/docs/reference/hardware-verification.md). A setting comes from
78
+ eufy's code, not from a test on hardware: it may be rejected by a device, and the
79
+ page names the ones written and read back.
80
+
81
+ ## Requirements
82
+
83
+ - Python 3.13 or newer.
84
+ - A eufy Security account that can see the station: the owner's, or a member it is
85
+ shared with (commands are sent on the owner's behalf).
86
+ - For local access, the fastest path is a host on the **same L2 network** as the
87
+ station (discovery is a broadcast). A station on another subnet or at another site
88
+ connects through eufy's rendezvous servers instead (outbound UDP 32100 and a cloud
89
+ session for its key). Login and push work from anywhere.
90
+ - If inbound UDP is filtered: a fixed IP and a pinned local port per station.
91
+ `anker-eufy-security network` prints what each station needs.
92
+
93
+ ## Install
94
+
95
+ ```
96
+ uv add anker-eufy-security # the library, in a uv project (or: pip install anker-eufy-security)
97
+ uv add "anker-eufy-security[mqtt]" # with the MQTT transport (aiomqtt), for Wi-Fi locks
98
+ uv tool install anker-eufy-security # the anker-eufy-security CLI on PATH
99
+ uvx --from anker-eufy-security anker-eufy-security --help # run once
100
+ ```
101
+
102
+ The development version: `uv add "anker-eufy-security @ git+https://github.com/abz2much/anker-eufy-security"`,
103
+ or from a checkout `uv sync && uv run anker-eufy-security --help`.
104
+
105
+ ## Usage
106
+
107
+ ### Command line
108
+
109
+ ```
110
+ anker-eufy-security login # asks for the password and the e-mailed code once
111
+ anker-eufy-security status # guard mode, firmware, storage, every paired device
112
+ anker-eufy-security guard set home
113
+ anker-eufy-security settings --model T8160 # a model's settings, keyed by eufy's identifiers
114
+ anker-eufy-security set detection_sensitivity 4 --channel 0
115
+ anker-eufy-security live --channel 0 --seconds 10 --out clip
116
+ anker-eufy-security monitor # print events as they arrive
117
+ ```
118
+
119
+ The password is never a flag: it comes from `$EUFY_PASSWORD`, the session cache or a
120
+ prompt. Every command is in [the CLI reference](https://github.com/abz2much/anker-eufy-security/blob/main/docs/reference/cli.md).
121
+
122
+ ### Library
123
+
124
+ ```python
125
+ import asyncio
126
+
127
+ import aiohttp
128
+
129
+ from anker_eufy_security import EufySecurity, JsonFileStore, LoginChallengeError
130
+
131
+
132
+ async def main() -> None:
133
+ async with aiohttp.ClientSession() as http:
134
+ eufy = EufySecurity(
135
+ http, "you@example.com", "password", store=JsonFileStore("~/.eufy-cache.json")
136
+ )
137
+ try:
138
+ await eufy.async_login()
139
+ except LoginChallengeError as challenge:
140
+ if challenge.kind != "verify_code":
141
+ raise
142
+ await eufy.async_login(verify_code=input("code from the e-mail: "))
143
+
144
+ station = (await eufy.async_discover())[0]
145
+ state = await station.async_update()
146
+ print(station.name, state.guard_mode, state.firmware)
147
+
148
+ await station.async_set_guard_mode("home") # returns once the station confirms
149
+ await eufy.async_close()
150
+
151
+
152
+ asyncio.run(main())
153
+ ```
154
+
155
+ Events from the local session and from push arrive on one stream:
156
+
157
+ ```python
158
+ eufy.subscribe(print)
159
+ await eufy.async_start() # local sessions and cloud push, until async_close()
160
+ ```
161
+
162
+ Arming returns only after the station confirms it; a setting write returns how far it
163
+ got (`CommandOutcome`). A failure raises a typed error from
164
+ `anker_eufy_security.exceptions`.
165
+ The cache file holds the cloud session, the station keys and the account password:
166
+ keep it private.
167
+
168
+ More in [getting started](https://github.com/abz2much/anker-eufy-security/blob/main/docs/getting-started.md) and, for an integration, the
169
+ [Home Assistant guide](https://github.com/abz2much/anker-eufy-security/blob/main/docs/how-to/home-assistant.md).
170
+
171
+ ## Documentation
172
+
173
+ | | |
174
+ |---|---|
175
+ | [Getting started](https://github.com/abz2much/anker-eufy-security/blob/main/docs/getting-started.md) | install, login, arm, settings, events |
176
+ | [Home Assistant integration](https://github.com/abz2much/anker-eufy-security/blob/main/docs/how-to/home-assistant.md) | how an integration uses the library: cache, reauth, ids, network, coordinators, events, entities, stills, streaming, errors |
177
+ | [Command line](https://github.com/abz2much/anker-eufy-security/blob/main/docs/reference/cli.md) | every `anker-eufy-security` command |
178
+ | [Support matrix](https://github.com/abz2much/anker-eufy-security/blob/main/docs/reference/devices.md) · [Hardware verification](https://github.com/abz2much/anker-eufy-security/blob/main/docs/reference/hardware-verification.md) | what is supported, and what is proven on hardware |
179
+ | [Add or verify a device](https://github.com/abz2much/anker-eufy-security/blob/main/docs/how-to/add-a-device.md) | how support is declared and proven |
180
+ | [Regenerate the settings files](https://github.com/abz2much/anker-eufy-security/blob/main/docs/how-to/regenerate-models.md) · [Settings file schema](https://github.com/abz2much/anker-eufy-security/blob/main/docs/reference/models-schema.md) | how the per-model settings are generated, and their format |
181
+ | [Debug logging](https://github.com/abz2much/anker-eufy-security/blob/main/docs/how-to/debug-logging.md) | loggers, wire dumps, redaction |
182
+ | [Testing](https://github.com/abz2much/anker-eufy-security/blob/main/docs/how-to/testing.md) | end-to-end tests with `anker_eufy_security.testing` |
183
+ | [Thing models](https://github.com/abz2much/anker-eufy-security/blob/main/docs/reference/thing-models.md) | the app's per-model descriptions and handler recipes |
184
+ | [Protocol reference](https://github.com/abz2much/anker-eufy-security/blob/main/docs/protocol/README.md) | cloud, P2P transport, session crypto, commands, events, media, lock commands, MQTT |
185
+
186
+ ## Contributing
187
+
188
+ Reports from other hardware help most: `anker-eufy-security status --raw` and
189
+ `anker-eufy-security coverage` show what a station reports, and
190
+ [add a device](https://github.com/abz2much/anker-eufy-security/blob/main/docs/how-to/add-a-device.md) explains how an entry becomes *verified*.
191
+ Never post serials, credentials or captures from your home; see
192
+ [CONTRIBUTING.md](https://github.com/abz2much/anker-eufy-security/blob/main/CONTRIBUTING.md) and [SECURITY.md](https://github.com/abz2much/anker-eufy-security/blob/main/SECURITY.md).
193
+
194
+ ```
195
+ uv sync
196
+ uv run pytest -n auto
197
+ uv run ruff check && uv run ruff format --check
198
+ uv run mypy
199
+ ```
200
+
201
+ ## Support
202
+
203
+ This project is built in spare time and is free to use. If it is useful to you,
204
+ donations are welcome. They are voluntary, buy no support or priority, and are not
205
+ tax-deductible.
206
+
207
+
208
+ Donated eufy hardware helps develop future features; please get in touch first.
209
+
210
+ ## License
211
+
212
+ MIT. eufy and Anker are trademarks of Anker Innovations; this project is not
213
+ affiliated with or endorsed by them.