rospogrigio / localtuya

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

floor heating thermostat controller #341

Open hros opened 3 years ago

hros commented 3 years ago

I am trying to add floor heating thermostats that are sold with the WarmMe app Apparently (thanks to this post) this app is a front for the smart-life/tuya app. So the thermostats can be controlled by the tuya app, and hopefully integrated with the localtuya integration

I have figured out most of the DP parameters (outlined in the table below)

As you can see I need to enter strings and numeric values. What are the appropriate supported entities?

Controlling the thermostat from the app (smartlife) enables setting a daily schedule (wake up / Leave room / Return / Sleep daily times with associated temperatures). Perhaps the DPs 104,108 which I have not figured out their function are somehow related to the schedule setting.

However it would seem that setting a "day/event/temperature" combination would require a sequence of DP commands

  1. Is that common?
  2. How would you go about testing it?
  3. My assumption is that the schedule is stored locally on the device. If so, how is that schedule usually retrieved? (I recently added an irrigation controller, which the tuyadebug/test.py showed only the irrigation zone on/off switches but nothing that would hint on getting a stored schedule)
DP    
101 State on/off Boolean (on=true)
102 Set temperature in 1/10 degree Write value
103 Mode selection: ‘smart’/’holiday’/’hold’ read/write string
104 0 (unknown) Needs further study
105 Room temperature in 1/10 degree requires verification
106 Floor temperature in 1/10 degree requires verification
107 Temperature units true=°F, false=°C
108 False (unknown) Needs further study
109 Holiday days left (in holiday mode) read/write
110 Adaptive mode & Schedule mode Adaptive = off & "7 day schedule" -  0
Adaptive = off & :5+1+1 schdule" - 1
Adaptive on = on & "7 day schedule"- 2
Adaptaive = on & "5+1+1 schedule" - 3
111 Active sensors 0-room, 1-floor, 2-both
112 Room temperature calibration (in 1/10 degree) read/write
113 Floor temperature calibration (in 1/10 degree) read/write:
114 Temperature tolerance (‘0_5’,’1’,’2’,’3’) read/write
116 Power set / energy use (in units of DP-117 Watt-hr) read/write
117 158 (Watt-hr) read
118 ‘warming’ Read only
121 Floor temperature limit (in 1/10 degree) read/write
hros commented 3 years ago

In the supported devices section of the readme file, it states: Climates (soon)

I guess this relates to my question of integrating the floor heating thermostat I'd be happy to help in working on this I see a climate.py file in the climate_platform branch

What is the status of this branch? Is there any testing harness, or similar unit test for other types of devices?

coleburg commented 1 year ago

Only 12 months old, but I would also like my UFH to display on Tuya local