Hey everyone,
I’m new to the Home Assistant (HA) world and I’m really excited to share my journey with you. I recently installed HA on my Raspberry Pi 3 and I’m diving into the world of automation. My goal is to set up an input select for my radio system, which runs on a second Pi with RuneAudio. I want to control it via HTTP commands, and I’ve already set up some shell commands in my configuration.yaml file. Here’s what I have so far:
yaml
play: curl --silent -k “http://runeaudio.hoff.lan/command/?cmd=play”
stop: curl --silent -k “http://runeaudio.hoff.lan/command/?cmd=stop”
… # and other commands
Each command works when I test them individually, but the real challenge is getting them to work seamlessly with HA automations. I’ve created scripts in scripts.yaml and set up an automation in automation.yaml to trigger based on the input select state. However, I’m running into some issues with the configuration. The error logs mention something about an invalid entity ID in the service data, but I’m not entirely sure what’s causing it.
I tested the script manually using the services panel, and it worked once, but now it’s not consistent. I suspect it’s a YAML syntax issue, but I’ve double-checked everything and can’t find the problem. Here’s a snippet of my automation:
yaml
- action:
- service: script.turn_on
data:
entity_id: >
{% if is_state(“input_select.radio”, “Antenne Bayern”) %}
script.abay
{%- elif is_state(“input_select.radio”, “Rock Antenne”) %}
script.rocka
… # and other conditions
{% else %}
none
{% endif %} - service: input_select.select_option
entity_id: input_select.radio
data:
option: Wähle einen Radiosender
alias: Radiosender
hide_entity: true
trigger: - entity_id: input_select.radio
platform: state
from: Wähle einen Radiosender
- service: script.turn_on
I really want to get this working because it would make controlling my radio system so much easier. If anyone has experience with similar setups or can spot where I might be going wrong, I’d be super grateful for your help! Let me know if you need more details about my setup. ![]()