data_template
was deprecated in favor of data
several versions ago.
data
now serves the same function as data_template
did.
No, in fact the double-quotes are required otherwise, without them, the entire line will be reported as an error.
The error message is complaining about volume_level
expecting a float value but it failed to receive one. That’s obvious from here:
- service: media_player.volume_set
data:
volume_level: input_number.google_home_volume. <---- This
entity_id: media_player.google_home_study
m0wlheld had the right idea, just overlooked to wrap the template in double-quotes.
- service: media_player.volume_set
data:
volume_level: "{{ states('input_number.google_home_volume') }}"
entity_id: media_player.google_home_study