Hi I get the following error when my trigger event happens but i dont know why i can find the temp value
INFO:homeassistant.components.automation:Executing Heating
INFO:homeassistant.core:Bus:Handling <Event state_changed[L]: entity_id=sensor.time, old_state=<state sensor.time=13:17; icon=mdi:clock, friendly_name=Time @ 13:17:00 08-04-2016>, new_state=<state sensor.time=13:18; icon=mdi:clock, friendly_name=Time @ 13:18:00 08-04-2016>>
INFO:homeassistant.core:Bus:Handling <Event logbook_entry[L]: name=Heating, domain=automation, message=has been triggered>
INFO:homeassistant.core:Bus:Handling <Event call_service[L]: service_data=entity_id=['thermostat.home'], service=set_temperature, domain=thermostat, service_call_id=1980491696-1>
ERROR:homeassistant.components.thermostat:Received call to set_temperature without attribute temperature
Configuration
alias: Heating
trigger:
platform: time
after: '13:18:00'
weekday:
- mon
- tue
- wed
- thu
- fri
condition:
- platform: numeric_state
entity_id: sensor.1st_floor
below: 30
action:
service: thermostat.set_temperature
entity_id: thermostat.home
target_temp_low: 27
target_temp_high: 28
you need data on your service call
`
alias: Heating
trigger:
platform: time
after: ‘13:18:00’
weekday:
mon
tue
wed
thu
fri
condition:
platform: numeric_state
entity_id: sensor.1st_floor
below: 30
action:
service: thermostat.set_temperature
entity_id: thermostat.home
data:
target_temp_low: 27
target_temp_high: 28
`
try this
Hi
Thanks for this but unfortunately it did not like the data part
here is a the error output
16-04-20 15:22:23 homeassistant.bootstrap: Invalid platform config for [automation]: expected dict for dictionary value @ data[‘action’][‘data’]. OrderedDict([(‘alias’, ‘Heating’), (‘trigger’, [OrderedDict([(‘platform’, ‘numeric_state’), (‘entity_id’, ‘sensor.1st_floor’), (‘below’, 30)])]), (‘action’, OrderedDict([(‘service’, ‘thermostat.set_temperature’), (‘entity_id’, ‘thermostat.home’), (‘data’, None), (‘target_temp_low’, 27), (‘target_temp_high’, 28)]))])
Try formatting it like this:
- alias: Heating
trigger:
platform: time
after: '13:18:00'
condition:
- platform: numeric_state
entity_id: sensor.1st_floor
below: 30
- platform: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
service: thermostat.set_temperature
entity_id: thermostat.home
data:
target_temp_low: 27
target_temp_high: 28
danichispa:
platform: time
weekday:
- mon
- tue
- wed
- thu
- fri
Thanks this has helped alot but the data element doesent appear to be setting the heat_control componets temperature when its triggered.
ive tried different options with no success
action:
service: thermostat.set_temperature
entity_id: thermostat.home
data:
target_temp_low: 27
target_temp_high: 28
action:
service: thermostat.set_temperature
entity_id: thermostat.home
data:
temperature: 27
action:
service: thermostat.set_temperature
entity_id: thermostat.home
data:
state: 27
Sadley no
alias: Heating
trigger:
platform: time
after: ‘11:00:00’
condition:
- platform: numeric_state
entity_id: sensor.1st_floor
below: 30
- platform: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
service: thermostat.set_temperature
entity_id: thermostat.home
data:
target_temp: 27
The data attribute for set_temperature is called temperature. Make sure you format the yaml correctly. When you post it without code markdown here, we can’t judge the formatting.
You can test calling the service from the developer tools, but there you use json formatting for the attributes.
This what i have now bu t im getting an error.
16-04-22 09:00:00 homeassistant.components.automation.numeric_state: Value returned from template is not a number: unknown
alias: Heating
trigger:
platform: time
after: '09:00:00'
condition:
- platform: numeric_state
entity_id: sensor.1st_floor
below: 30
- platform: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
service: thermostat.set_temperature
entity_id: thermostat.home
data:
temperature: 27
Have you been able to get this to work.
I’ve tested the below setup and seems to work and wanted to provide in case it is still needed.
alias: Hot in Bedroom Turn on Action
trigger:
platform: numeric_state
entity_id: sensor.aeotec_multisensor_6_temperature_3
above: 71
condition:
condition: time
after: ‘19:00:00’
before: ‘22:00:00’
action:
service: thermostat.set_temperature
entity_id: thermostat.hallwaywhats_up_fishes
data:
temperature: 70