jasonacox / tinytuya

Python API for Tuya WiFi smart devices using a direct local area network (LAN) connection or the cloud (TuyaCloud API).
MIT License
868 stars 157 forks source link

Thermostatdevice gives warning message for manual mode #427

Closed erdebe closed 6 months ago

erdebe commented 7 months ago

Received value 'manual' for key '2'/'mode' not in enum list ['auto', 'cool', 'heat', 'emergencyheat', 'off'] ! Perhaps enum list needs to be updated?

This is the message I get, when executing

dps = tstatdev.status()['dps']

Note that I have a wired thermostat with product name "ETOP-HT"

Anyway : thanks for the great interface to tuya AND the great documentation! Works like a charm!

Groeten, Ronald de Bruijn

uzlonewolf commented 7 months ago

Hmm, if it uses the same DP list as https://github.com/rospogrigio/localtuya/issues/1372 then it's going to need more than just the enum list updated. When configured as a generic tinytuya.Device(), does it broadcast temperature updates in DP 122? If not then I think just using the simpler MappedDevice would be better than trying to add support to Contrib.ThermostatDevice.

erdebe commented 7 months ago

I tried Device(), had to add version=3.3 The output for me is the same as with the ThermostatDevice, without warning message. Fine for me. I only want to perform read only polling. In the Tuya app setup, I saw that I have only read permissions, good enough for me.

uzlonewolf commented 6 months ago

Since it sounds like Device() is good enough I'm going to go ahead and close this. Feel free to re-open it if you think we should create/modify a special device type specifically for this thermostat.