tuya/tuya-home-assistant

Support for WiFi Din Rail Switch with meterin, on/off works ok, but power mettering not logged

Open

#880 aperta il 1 dic 2022

Vedi su GitHub
 (7 commenti) (4 reazioni) (0 assegnatari) (206 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (960 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Product Name SP2-C Product Category cz https://es.aliexpress.com/item/1005004731986560.html?spm=a2g0o.order_detail.0.0.3b3439d3168us2&gatewayAdapt=glo2esp

Device info (please complete the following information, which can be found in log): like this: { "endpoint": "https://openapi.tuyaeu.com", "auth_type": 0, "country_code": "34", "app_type": "tuyaSmart", "mqtt_connected": true, "disabled_by": null, "disabled_polling": false, "name": "ICP Conectividad", "model": "AT-Q-SY1-JWT", "category": "dlq", "product_id": "jdj6ccklup7btq3a", "product_name": "WiFi Din Rail Switch with metering", "online": true, "sub": false, "time_zone": "+01:00", "active_time": "2022-11-29T20:27:28+00:00", "create_time": "2022-11-29T20:27:28+00:00", "update_time": "2022-12-01T08:45:20+00:00", "function": { "switch": { "type": "Boolean", "value": {} }, "countdown_1": { "type": "Integer", "value": { "unit": "s", "min": 0, "max": 86400, "scale": 0, "step": 1 } }, "relay_status": { "type": "Enum", "value": { "range": [ "power_off", "power_on", "last" ] } }, "light_mode": { "type": "Enum", "value": { "range": [ "relay", "pos", "none", "on" ] } } }, "status_range": { "switch": { "type": "Boolean", "value": {} }, "countdown_1": { "type": "Integer", "value": { "unit": "s", "min": 0, "max": 86400, "scale": 0, "step": 1 } }, "add_ele": { "type": "Integer", "value": { "min": 0, "max": 50000, "scale": 3, "step": 100 } }, "cur_current": { "type": "Integer", "value": { "unit": "mA", "min": 0, "max": 100000, "scale": 0, "step": 1 } }, "cur_power": { "type": "Integer", "value": { "unit": "W", "min": 0, "max": 99999, "scale": 1, "step": 1 } }, "cur_voltage": { "type": "Integer", "value": { "unit": "V", "min": 0, "max": 5000, "scale": 1, "step": 1 } }, "test_bit": { "type": "Integer", "value": { "min": 0, "max": 5, "scale": 0, "step": 1 } }, "voltage_coe": { "type": "Integer", "value": { "min": 0, "max": 1000000, "scale": 0, "step": 1 } }, "electric_coe": { "type": "Integer", "value": { "min": 0, "max": 1000000, "scale": 0, "step": 1 } }, "power_coe": { "type": "Integer", "value": { "min": 0, "max": 1000000, "scale": 0, "step": 1 } }, "electricity_coe": { "type": "Integer", "value": { "min": 0, "max": 1000000, "scale": 0, "step": 1 } }, "fault": { "type": "Bitmap", "value": { "label": [ "ov_cr", "ov_vol", "ov_pwr", "ls_cr", "ls_vol", "ls_pow" ] } }, "relay_status": { "type": "Enum", "value": { "range": [ "power_off", "power_on", "last" ] } }, "light_mode": { "type": "Enum", "value": { "range": [ "relay", "pos", "none", "on" ] } }, "child_lock": { "type": "Boolean", "value": {} } }, "status": { "switch": true, "countdown_1": 0, "add_ele": 44, "cur_current": 590, "cur_power": 873, "cur_voltage": 2310, "test_bit": 1, "voltage_coe": 0, "electric_coe": 0, "power_coe": 0, "electricity_coe": 0, "fault": 0, "relay_status": "last", "light_mode": "relay", "child_lock": false }, "home_assistant": { "name": "ICP Conectividad", "name_by_user": null, "disabled": false, "disabled_by": null, "entities": [ { "disabled": false, "disabled_by": null, "entity_category": "config", "device_class": null, "original_device_class": null, "icon": null, "original_icon": "mdi:account-lock", "unit_of_measurement": null, "state": { "entity_id": "switch.icp_conectividad_child_lock", "state": "off", "attributes": { "icon": "mdi:account-lock", "friendly_name": "ICP Conectividad Child Lock" }, "last_changed": "2022-12-01T18:42:06.397319+00:00", "last_updated": "2022-12-01T18:42:06.397319+00:00" } }, { "disabled": false, "disabled_by": null, "entity_category": null, "device_class": null, "original_device_class": null, "icon": null, "original_icon": null, "unit_of_measurement": null, "state": { "entity_id": "switch.icp_conectividad_switch", "state": "on", "attributes": { "friendly_name": "ICP Conectividad Switch" }, "last_changed": "2022-12-01T18:42:06.397884+00:00", "last_updated": "2022-12-01T18:42:06.397884+00:00" } } ] } }

Guida contributor