Skip to content

Commit

Permalink
Added changes by Didier @hercules115
Browse files Browse the repository at this point in the history
...For outdoor temp on boiler
  • Loading branch information
mrwiwi authored Feb 27, 2021
1 parent 2d1eaae commit 6d940ce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tydomMessagehandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ async def parse_config_data(self, parsed):
device_type[i["id_device"]] = i["last_usage"]
device_endpoint[i["id_device"]] = i["id_endpoint"]


if i["last_usage"] == 'boiler' or i["last_usage"] == 'conso':
# print('{} {}'.format(i["id_endpoint"],i["name"]))
device_name[i["id_device"]] = i["name"]
Expand All @@ -202,6 +203,14 @@ async def parse_config_data(self, parsed):
device_name[i["id_device"]] = "Tyxal Alarm"
device_type[i["id_device"]] = 'alarm'
device_endpoint[i["id_device"]] = i["id_endpoint"]


if i["last_usage"] == 'electric':
device_name[i["id_device"]] = i["name"]
device_type[i["id_device"]] = 'boiler'
device_endpoint[i["id_device"]] = i["id_endpoint"]


print('Configuration updated')

async def parse_devices_data(self, parsed):
Expand Down

0 comments on commit 6d940ce

Please sign in to comment.