tuya/tuya-home-assistant

WIFI TH&Smoke sensor Model - 228WTH add 2 sensors Temperature and humidity sensor

Open

#1.015 aberto em 22 de jan. de 2025

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees) (206 forks)github user discovery
enhancementhelp wanted

Métricas do repositório

Stars
 (960 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

I have bouth this device installed it in the tuya app works fine, then i intergrate it with home assistant and i miss 2 sensors there Temperature and humidity sensor in the tuya app they all work but in home assistant only smoke detection and battery, i have also a cabon monoxide detector with display for ppm but that work in home assistant, so is it possible to add these two sensors Temperature and humidity sensor that is why i buy them 1 component and see 3 things at once.

Device normal info

  • WIFI TH&Smoke sensor
  • Model - 228WTH

2025-01-22 10:49:20.120 DEBUG (Thread-4 (_thread_main)) [homeassistant.components.tuya] Received update for device bf399f04b71fece29ay359: {'smoke_sensor_status': 'normal', 'battery_percentage': 100, 'muffling': False} (updated properties: None) 2025-01-22 10:49:22.361 DEBUG (Thread-4 (_thread_main)) [homeassistant.components.tuya] Received update for device bf399f04b71fece29ay359: {'smoke_sensor_status': 'alarm', 'battery_percentage': 100, 'muffling': False} (updated properties: ['smoke_sensor_status']) 2025-01-22 10:50:22.353 DEBUG (Thread-4 (_thread_main)) [homeassistant.components.tuya] Received update for device bf399f04b71fece29ay359: {'smoke_sensor_status': 'alarm', 'battery_percentage': 100, 'muffling': False} (updated properties: ['battery_percentage']) 2025-01-22 10:50:30.290 DEBUG (Thread-4 (_thread_main)) [homeassistant.components.tuya] Received update for device bf399f04b71fece29ay359: {'smoke_sensor_status': 'normal', 'battery_percentage': 100, 'muffling': False} (updated properties: ['smoke_sensor_status']) 2025-01-22 10:50:48.249 DEBUG (Thread-4 (_thread_main)) [homeassistant.components.tuya] Received update for device bf399f04b71fece29ay359: {'smoke_sensor_status': 'normal', 'battery_percentage': 100, 'muffling': False} (updated properties: None)

{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2025.1.3", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.13.1", "docker": true, "arch": "x86_64", "timezone": "Europe/Brussels", "os_name": "Linux", "os_version": "6.6.66-haos", "supervisor": "2024.12.3", "host_os": "Home Assistant OS 14.1", "docker_version": "27.2.0", "chassis": "embedded", "run_as_root": true }, "custom_components": { "frigate": { "documentation": "https://github.com/blakeblackshear/frigate", "version": "5.7.0", "requirements": [ "hass-web-proxy-lib==0.0.7" ] }, "browser_mod": { "documentation": "https://github.com/thomasloven/hass-browser_mod/blob/master/README.md", "version": "2.3.3", "requirements": [] }, "hacs": { "documentation": "https://hacs.xyz/docs/use/", "version": "2.0.3", "requirements": [ "aiogithubapi>=22.10.1" ] }, "sonoff": { "documentation": "https://github.com/AlexxIT/SonoffLAN", "version": "3.8.2", "requirements": [ "pycryptodome>=3.6.6" ] }, "webrtc": { "documentation": "https://github.com/AlexxIT/WebRTC", "version": "v3.6.0", "requirements": [] }, "toon_climate": { "documentation": "https://github.com/cyberjunky/home-assistant-toon_climate", "version": "1.0.15", "requirements": [] }, "toon_smartmeter": { "documentation": "https://github.com/cyberjunky/home-assistant-toon_smartmeter", "version": "1.0.38", "requirements": [] } }, "integration_manifest": { "domain": "tuya", "name": "Tuya", "codeowners": [ "Tuya", "zlinoliver", "frenck" ], "config_flow": true, "dependencies": [ "ffmpeg" ], "dhcp": [ { "macaddress": "105A17*" }, { "macaddress": "10D561*" }, { "macaddress": "1869D8*" }, { "macaddress": "381F8D*" }, { "macaddress": "508A06*" }, { "macaddress": "68572D*" }, { "macaddress": "708976*" }, { "macaddress": "7CF666*" }, { "macaddress": "84E342*" }, { "macaddress": "D4A651*" }, { "macaddress": "D81F12*" } ], "documentation": "https://www.home-assistant.io/integrations/tuya", "integration_type": "hub", "iot_class": "cloud_push", "loggers": [ "tuya_iot" ], "requirements": [ "tuya-device-sharing-sdk==0.2.1" ], "is_built_in": true, "overwrites_built_in": false }, "setup_times": { "null": { "setup": 6.134400609880686e-05 }, "01JJ4GV9GDFQ372WQ0XYTA4WJK": { "wait_import_platforms": -1.5406983069842681, "wait_base_component": -0.001811773981899023, "config_entry_setup": 2.124097208958119 } }, "data": { "endpoint": "https://apigw.tuyaeu.com", "terminal_id": "1737466160438RAfkN8", "mqtt_connected": true, "disabled_by": null, "disabled_polling": false, "id": "bf399f04b71fece29ay359", "name": "WIFI TH&Smoke sensor", "category": "ywbj", "product_id": "fzb5up2iehjcrnqy", "product_name": "WIFI TH&Smoke sensor", "online": true, "sub": false, "time_zone": "+01:00", "active_time": "2025-01-21T13:26:48+00:00", "create_time": "2025-01-21T13:26:48+00:00", "update_time": "2025-01-21T13:26:48+00:00", "function": { "muffling": { "type": "Boolean", "value": {} } }, "status_range": { "smoke_sensor_status": { "type": "Enum", "value": { "range": [ "alarm", "normal" ] } }, "battery_percentage": { "type": "Integer", "value": { "unit": "%", "min": 0, "max": 100, "scale": 0, "step": 1 } }, "muffling": { "type": "Boolean", "value": {} } }, "status": { "smoke_sensor_status": "normal", "battery_percentage": 100, "muffling": false }, "home_assistant": { "name": "WIFI TH&Smoke sensor", "name_by_user": null, "disabled": false, "disabled_by": null, "entities": [ { "disabled": false, "disabled_by": null, "entity_category": null, "device_class": null, "original_device_class": "smoke", "icon": null, "original_icon": null, "unit_of_measurement": null, "state": { "entity_id": "binary_sensor.wifi_th_smoke_sensor_rook", "state": "off", "attributes": { "device_class": "smoke", "friendly_name": "WIFI TH&Smoke sensor Rook" }, "last_changed": "2025-01-22T09:50:30.291433+00:00", "last_reported": "2025-01-22T09:50:30.291433+00:00", "last_updated": "2025-01-22T09:50:30.291433+00:00" } }, { "disabled": false, "disabled_by": null, "entity_category": "diagnostic", "device_class": null, "original_device_class": "battery", "icon": null, "original_icon": null, "unit_of_measurement": "%", "state": { "entity_id": "sensor.wifi_th_smoke_sensor_batterij", "state": "100.0", "attributes": { "state_class": "measurement", "unit_of_measurement": "%", "device_class": "battery", "friendly_name": "WIFI TH&Smoke sensor Batterij" }, "last_changed": "2025-01-22T09:11:31.183949+00:00", "last_reported": "2025-01-22T09:11:31.183949+00:00", "last_updated": "2025-01-22T09:11:31.183949+00:00" } } ] }, "set_up": true, "support_local": true } }

Guia do colaborador