In home-assistant.log I get this every time I reboot.
2020-03-29 21:51:15 ERROR (MainThread) [homeassistant.components.automation] Error while executing automation automation.match_tv_vol_to_sonos_playbar_when_tv_vol_has_changed. Invalid data for call_service at pos 1: expected float for dictionary value @ data[‘value’]
- alias: 'Match TV Vol to Sonos Playbar when TV Vol has Changed'
trigger:
platform: state
entity_id: media_player.livingroom_tv
condition:
- condition: template
value_template: '{{ states.input_number.living_room_volume.state != states.media_player.livingroom_tv.attributes.volume_level}}'
action:
- service: input_number.set_value
data_template:
entity_id: input_number.living_room_volume
value: "{{ state_attr('media_player.livingroom_tv', 'volume_level') }}"
- service: media_player.volume_set
data_template:
entity_id: media_player.tv_sonos
volume_level: "{{ states.input_number.living_room_volume.state }}"
Hi guys,
I need a little help: I have done a simple automation that keep track of minimum and maximum temperature during the day and reset value it at midnight with another automation.
I have the error in object (Invalid data for … etc.) and I cannot get rid of it. Following my automation code:
alias: Min Max Temperature
description: ''
trigger:
- platform: state
entity_id: sensor.temperature_2
condition: []
action:
- service: input_number.set_value
data_template:
entity_id: input_number.minimum_temperature
value: >
{% if states('sensor.temperature_2')|float <
states('input_number.minimum_temperature')|float
%}{{states('sensor.temperature_2')|float}}{% endif %}
- service: input_number.set_value
data_template:
entity_id: input_number.maximum_temperature
value: >
{% if states('sensor.temperature_2')|float >
states('input_number.maximum_temperature')|float
%}{{states('sensor.temperature_2')|float}}{% endif %}
mode: single