Skip to content

Commit

Permalink
Update get_devices_url.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pzim-devdata authored Nov 22, 2023
1 parent 387c5e4 commit 5ec6adb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions get_devices_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@ async def main() -> None:
print("States for "+device.label+" added to : "+ list_of_tahoma_states)
if str(get_state[i].name) != 'io:TargetHeatingLevelState' :
if str(get_state[i].name) != 'core:OnOffState':
if str(get_state[i].value) == 'eco' or str(get_state[i].value) =='comfort' or str(get_state[i].value) =='frostprotection' or str(get_state[i].value) =='off':
f11.write(device.label+","+device.id+","+device.widget+",get_state["+str(i)+"].value,['eco','comfort','frostprotection','off'],"+str(get_state[i].value)+"\n")
print("States for "+device.label+" added to : "+ list_of_tahoma_states)
if device.widget != 'TSKAlarmController':
if str(get_state[i].value) == 'eco' or str(get_state[i].value) =='comfort' or str(get_state[i].value) =='frostprotection' or str(get_state[i].value) =='off':
f11.write(device.label+","+device.id+","+device.widget+",get_state["+str(i)+"].value,['eco','comfort','frostprotection','off'],"+str(get_state[i].value)+"\n")
print("States for "+device.label+" added to : "+ list_of_tahoma_states)
if 'TemperatureSensor' == device.widget :
try:
if str(get_state[i].name) == 'core:TemperatureState':
Expand Down Expand Up @@ -197,4 +198,3 @@ async def main() -> None:
print("\nYou didn't specified any USERNAME or PASSWORD.\nExecute tahoma --config or provide a temporary USERNAME and PASSWORD by executing tahoma -u <USERNAME> -p <PASSWORD> command")
exit(1)


0 comments on commit 5ec6adb

Please sign in to comment.