rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.82k stars 544 forks source link

Moes BHT-002 Thermostat Eco Mode #1218

Open doneko opened 1 year ago

doneko commented 1 year ago

Hello.

This kind of device is working well with "climate" type and that configuration:

Target Temperature DP - 2
Current Temperature DP  - 3
Temperature Step - 0.5
Precision - 0.5
HVAC Mode DP - 4
HVAC Mode Set - 1/0
HVAC Current Action DP - 1
HVAC Current Action Set- True/False
Temperature Unit - celsius
Target Precision - 0.5

Except Eco mode. I tried to configure that mode, but it works only for turning on - I cant turn it off from HA.

In this device ECO mode working regardless of Preset DP. In your code( https://github.com/rospogrigio/localtuya/blob/master/custom_components/localtuya/climate.py#L334 ) I found, that after turning Eco mode off, it doesn't change on device.

Could you please add optional "Eco mode off value" input in entity configuration and make to reset device Eco mode status, if Eco mode off value defined.

esalgado commented 11 months ago

Hello, I can confirm I have the same issue. I can turn on eco mode, but not turn off.