DewGew/Domoticz-Google-Assistant

Impossible to set the temperature of a waterheater

mealgi opened this issue · 0 comments

mealgi commented

Describe the bug:
Impossible to set the temperature of a waterheater

Expected behavior:
set the temperature of a waterheater correctly

Logs:

Paste the dzga logs here.

Desktop (please complete the following information):
Context :
Version: 2024.2 (build 15866)
Build Hash: d7e442ae0-modified
Compile Date: 2024-01-20 16:18:19
dzVents Version: 3.1.8
Python Version: 3.9.2 (default, Mar 12 2021, 04:06:34) [GCC 10.2.1 20210110]
DZGA version 1.23.12

Smartphone (please complete the following information):
Device : iPhone6

Additional context, screenshot:

Proposed solution:
in smarthome.py insert line 1130:
DeviceState={}
if 'Switch' in entity_id and 'temperature' in devices[entity_id]:
DeviceState[entity_id]={}
DeviceState[entity_id]['temperatureSetpointCelsius']=devices[entity_id]['temperature']
DeviceState[entity_id].update({'online': True})
self.report_state(DeviceState, token)

in trait.py :
Line 647:
Replace :
response = {"temperatureStepCelsius": 1}
by :
response['temperatureStepCelsius']=1