I finally figured out how to make a working automation of this, the problem now is that when it triggers it does so like 15 times instead of just one time… thus lowering my climate way to much… feels like its stuck in a loop… anyone got any ideas?
Automation looks like this:
- alias: MANUAL - Climate Decrement
initial_state: 'off'
trigger:
platform: time
hours: '/1'
minutes: 41
condition:
- condition: numeric_state
entity_id: 'sensor.vardagsrum_temperature'
above: 23
action:
service: climate.set_temperature
entity_id: climate.fujitsu
data_template:
temperature: "{{ states.climate.fujitsu.attributes.temperature|int - 1 }}"
I also get a number of errors in the log:
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/local/lib/python3.6/configparser.py”, line 789, in get
value = d[option]
File “/usr/local/lib/python3.6/collections/init.py”, line 883, in getitem
return self.missing(key) # support subclasses that define missing
File “/usr/local/lib/python3.6/collections/init.py”, line 875, in missing
raise KeyError(key)
KeyError: ‘high_15’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/service.py”, line 288, in _handle_service_platform_call
await func(entity, data)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/climate/init.py”, line 574, in async_service_temperature_set
await entity.async_set_temperature(**kwargs)
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/climate/broadlink.py”, line 281, in set_temperature
self.send_ir()
File “/config/custom_components/climate/broadlink.py”, line 166, in send_ir
command = self._commands_ini.get(section, value)
File “/usr/local/lib/python3.6/configparser.py”, line 792, in get
raise NoOptionError(option, section)
configparser.NoOptionError: No option ‘high_15’ in section: ‘heat’