tuya / tuya-home-assistant

Home Assistant integration for controlling Powered by Tuya (PBT) devices using Tuya Open API, maintained by the Home Assistant Community and Tuya Developer Team.
MIT License
879 stars 207 forks source link

antela f1s202-eu don't report power/voltage/current #854

Open ramarro123 opened 2 years ago

ramarro123 commented 2 years ago

power monitor doens't work for device antela smart plug f1s202-eu.

none of current/power/voltage are reported

home assistant log

{ "home_assistant": { "installation_type": "Home Assistant Container", "version": "2022.9.7", "dev": false, "hassio": false, "virtualenv": false, "python_version": "3.10.5", "docker": true, "arch": "x86_64", "timezone": "Europe/Rome", "os_name": "Linux", "os_version": "3.10.105", "run_as_root": true }, "custom_components": { "localtuya": { "version": "4.1.0", "requirements": [] } }, "integration_manifest": { "domain": "tuya", "name": "Tuya", "documentation": "https://www.home-assistant.io/integrations/tuya", "requirements": [ "tuya-iot-py-sdk==0.6.6" ], "dependencies": [ "ffmpeg" ], "codeowners": [ "@Tuya", "@zlinoliver", "@frenck" ], "config_flow": true, "iot_class": "cloud_push", "dhcp": [ { "macaddress": "105A17*" }, { "macaddress": "10D561*" }, { "macaddress": "1869D8*" }, { "macaddress": "381F8D*" }, { "macaddress": "508A06*" }, { "macaddress": "68572D*" }, { "macaddress": "708976*" }, { "macaddress": "7CF666*" }, { "macaddress": "84E342*" }, { "macaddress": "D4A651*" }, { "macaddress": "D81F12*" } ], "loggers": [ "tuya_iot" ], "is_built_in": true }, "data": { "endpoint": "https://openapi.tuyaeu.com", "auth_type": 0, "country_code": "39", "app_type": "smartlife", "mqtt_connected": true, "disabled_by": null, "disabled_polling": false, "name": "Riscaldatore", "model": "F1s202-EU", "category": "cz", "product_id": "bhqkxecq6o5qkc52", "product_name": "", "online": true, "sub": false, "time_zone": "+02:00", "active_time": "2022-10-05T13:32:03+00:00", "create_time": "2022-10-05T13:32:03+00:00", "update_time": "2022-10-05T13:48:07+00:00", "function": { "switch_1": { "type": "Boolean", "value": {} } }, "status_range": { "switch_1": { "type": "Boolean", "value": {} } }, "status": { "switch_1": true }, "home_assistant": { "name": "Riscaldatore", "name_by_user": null, "disabled": false, "disabled_by": null, "entities": [ { "disabled": false, "disabled_by": null, "entity_category": null, "device_class": null, "original_device_class": "outlet", "icon": null, "original_icon": null, "unit_of_measurement": null, "state": { "entity_id": "switch.riscaldatore_socket_1", "state": "on", "attributes": { "device_class": "outlet", "friendly_name": "Riscaldatore Socket 1" }, "last_changed": "2022-10-05T15:42:36.102148+00:00", "last_updated": "2022-10-05T15:42:36.102148+00:00" } } ] } } }

device info

{ "result": { "active_time": 1664976723, "category": "cz", "category_name": "Socket", "create_time": 1664976723, "gateway_id": "", "icon": "smart/icon/bay1603247053327gtRW/f0615f7985374fe0bb0504e3f34bfb42.png", "id": "xxx", "ip": "xxx", "lat": "45.5707", "local_key": "xxx", "lon": "8.0538", "model": "F1s202-EU", "name": "Riscaldatore", "online": true, "owner_id": "67485276", "product_id": "bhqkxecq6o5qkc52", "product_name": "Antela Smart Plug", "sub": false, "time_zone": "+02:00", "update_time": 1664977687, "uuid": "72774fcb10540742" }, "success": true, "t": 1664988918480, "tid": "7ddfafd744ce11edb88bca0f69d78a9e" }

ramarro123 commented 2 years ago

the only things that i was able to get from IOT platform was this log, but i dont' understand what json call make them pop out :)

2022-10-05 18:59:19 Report Current 1428mA device itself  
2022-10-05 18:59:19 Report Power 335.60W device itself  
2022-10-05 18:59:19 Report Voltage 234.30V device itself  
2022-10-05 18:46:34 Report Add Electricity 0.10kwh device itself  
2022-10-05 18:33:45 Device semaphore Device semaphore signal intensity:-57||Remaining memory:54176||UTC:1664987625||DST:1664991225
ByteBrewerJB commented 2 years ago

I have the same

ramarro123 commented 2 years ago

i got it fixed i raise a ticket on iot.tuya specifying the device id and model and they added the missing params.

i think they did for all device family as all my plugs started to work,you should check on your side @JiBo87

ByteBrewerJB commented 2 years ago

Lol i was playing all day with my homeassistant en yaml files en custom integration and it just started working. I think i know the reason now ;-)

I think it is solved by the ticket you raised.