hello here.
i found good project localtuya https://github.com/rospogrigio/localtuya
at this moment localtuya doesn’t support “climate”. but exist branch with “climate” support https://github.com/rospogrigio/localtuya/tree/climate_platform . unfortunately it in development and doesn’t work for BHT-002.
i did some changes for supporting BHT-002. supporting of other climate devices may be broken. here is release https://github.com/ArtistAOP/localtuya/releases/tag/climate-v.1.1.1
it checked with my thermostat Moes BHT-002GBLW
example of installation:
- you must have HomeAssistant on Hass.io with installed HACS
- in HACS add custom repository “Integration” https://github.com/ArtistAOP/localtuya/releases/tag/climate-v.1.1.1 select release “climate-v.1.1.1”
- restart HA
- settings / integrations / add interation / LocalTuya Integration
- select your thermostat BHT-002 in popup
- fill name and local_key. instruction for getting local_key https://github.com/codetheweb/tuyapi/blob/d30ef9a1b2c51a016b3a2864cbe0b226071482c3/docs/SETUP.md
- add platform “climate”
- fill fields like to image:
- in the default lovelace it look like to
- enjoy!
PS: full instruciton of localtuya https://github.com/rospogrigio/localtuya/blob/master/README.md
full list of “dp”
- 1 - enable-disable
- 2 - doubled target temperature
- 3 - doubled current temperature (internal or external sensor it regard to your settings on device)
- 4 - 0 - auto mode; 1 - hand mode
- 5 - eco mode
- 6 - input blocking
- 102 - doubled current temperature of external sensor
- 104 - dont know. always “true” for me