maurizio53
(Maurizio Fabiani)
March 27, 2018, 6:43pm
1
“Unable to find service input_number/turn_on“
Where to check why i get this error?
In config file i have these entries about input_number:
input_number:
radio_volume:
name: Volume
icon: mdi:volume-high
min: 0
max: 1
step: 0.05
initial: '0.5'
mode: slider
Where is the automation part?
maurizio53
(Maurizio Fabiani)
March 27, 2018, 7:00pm
3
radio_start:
alias: Radio su Chromecast Audio
sequence:
- service: media_player.volume_set
data_template:
entity_id: >
{% if is_state("input_select.radio_speakers", "Living Room Audio") %} media_player.salotto_audio
{% elif is_state("input_select.radio_speakers", "Chromecast Salotto") %} media_player.salotto
{% elif is_state("input_select.radio_speakers", "Chromecast Camera Letto") %} media_player.camera_da_letto
{% elif is_state("input_select.radio_speakers", "Gruppo Media Player") %} group.media_player
{% endif %}
volume_level: '{{ states.input_number.radio_volume.state | float }}'
- service: media_player.play_media
data_template:
entity_id: >
{% if is_state("input_select.radio_speakers", "Living Room Audio") %} media_player.salotto_audio
{% elif is_state("input_select.radio_speakers", "Chromecast Salotto") %} media_player.salotto
{% elif is_state("input_select.radio_speakers", "Chromecast Camera Letto") %} media_player.camera_da_letto
{% elif is_state("input_select.radio_speakers", "Gruppo Media Player") %} group.media_player
{% endif %}
media_content_id: >
{% if is_state("input_select.radio_station", "Q-Music") %} http://icecast-qmusic.cdp.triple-it.nl/Qmusic_nl_live_96.mp3
{% elif is_state("input_select.radio_station", "3FM") %} http://icecast.omroep.nl/3fm-bb-mp3
{% elif is_state("input_select.radio_station", "100% NL") %} http://stream.100p.nl/100pctnl.mp3
{% elif is_state("input_select.radio_station", "Sky Radio") %} http://19993.live.streamtheworld.com:80/SKYRADIO_SC6
{% elif is_state("input_select.radio_station", "Arrow Classic Rock") %} http://91.221.151.155/listen.mp3
{% elif is_state("input_select.radio_station", "Classic FM") %} http://19143.live.streamtheworld.com/CLASSICFM_SC
{% elif is_state("input_select.radio_station", "BNR Nieuwsradio") %} http://icecast-bnr.cdp.triple-it.nl/bnr_mp3_96_03
{% elif is_state("input_select.radio_station", "Hot 108") %} http://jbmedia-edge1.cdnstream.com:80/hot108
{% elif is_state("input_select.radio_station", "The Beat") %} http://live.leanstream.co/CKBTFM-MP3
{% elif is_state("input_select.radio_station", "Alt Rock") %} http://149.56.23.7:20254/stream
{% elif is_state("input_select.radio_station", "Hit Remixes") %} http://149.56.23.7:20252/stream
{% elif is_state("input_select.radio_station", "Play Radio") %} http://176.9.31.78:8222
{% elif is_state("input_select.radio_station", "Elium-Rock") %} http://listen.radionomy.com/Elium-Rock
{% elif is_state("input_select.radio_station", "Classic Rock Florida") %} http://listen.shoutcast.com/Classic-RockFlorida
{% elif is_state("input_select.radio_station", "181FM Power (Todays Hits)") %} http://listen.181fm.com/181-power_128k.mp3?
{% elif is_state("input_select.radio_station", "181FM 90's Dance") %} http://listen.181fm.com/181-90sdance_128k.mp3
{% elif is_state("input_select.radio_station", "181FM Star 90's") %} http://listen.181fm.com/181-star90s_128k.mp3
{% elif is_state("input_select.radio_station", "181FM The Breeze") %} http://listen.181fm.com/181-breeze_128k.mp3
{% elif is_state("input_select.radio_station", "Heat Radio (RnB)") %} http://174.37.159.206:8106/stream
{% elif is_state("input_select.radio_station", "Fresh 92-7") %} http://live.fresh927.com.au/freshmp3
{% elif is_state("input_select.radio_station", "DI Chill & Tropical House") %} http://pub1.diforfree.org:8000/di_chillntropicalhouse_hi
{% elif is_state("input_select.radio_station", "DI Disco House") %} http://pub1.diforfree.org:8000/di_discohouse_hi
{% elif is_state("input_select.radio_station", "DI Liquid D&B") %} http://pub1.diforfree.org:8000/di_liquiddnb_hi
{% elif is_state("input_select.radio_station", "Jazz Blues") %} http://icepe5.infomaniak.ch/jazzblues-high.mp3
{% elif is_state("input_select.radio_station", "TSF Jazz") %} http://broadcast.infomaniak.net/tsfjazz-high.mp3
{% elif is_state("input_select.radio_station", "Jazz FM") %} http://tx.sharp-stream.com/icecast.php?i=jazzfmmobile.mp3
{% elif is_state("input_select.radio_station", "ABC Classic 2") %} http://live-radio02.mediahubaustralia.com/FM2W/mp3/
{% elif is_state("input_select.radio_station", "Boston Baroque Radio") %} http://peridot.streamguys.com:7010/bblive-sgplayer
{% endif %}
media_content_type: 'audio/mp4'
radio_stop:
alias: Stop Radio su Chromecast Audio
sequence:
- service: media_player.media_stop
data_template:
entity_id: >
{% if is_state("input_select.radio_speakers", "Living Room Audio") %} media_player.salotto_audio
{% elif is_state("input_select.radio_speakers", "Chromecast Salotto") %} media_player.salotto
{% elif is_state("input_select.radio_speakers", "Chromecast Camera Letto") %} media_player.camera_da_letto
{% elif is_state("input_select.radio_speakers", "Gruppo Media Player") %} group.media_player
{% endif %}
radio_change_speakers:
alias: Cambia Radio Speakers
sequence:
- service: media_player.media_stop
data_template:
entity_id: >
{% if previous_speakers == "Living Room Audio" %} media_player.salotto_audio
{% elif previous_speakers == "Chromecast Salotto" %} media_player.salotto
{% elif previous_speakers == "Chromecast Camera Letto" %} media_player.camera_da_letto
{% elif previous_speakers == "Gruppo Media Player" %} group.media_player
{% endif %}
- service: input_boolean.turn_off
entity_id: input_boolean.radio_play
This…
maurizio53
(Maurizio Fabiani)
March 27, 2018, 7:02pm
4
Unable to find service input_select/turn_on
Unable to find service input_number/turn_on
These are the errors
petro
(Petro)
March 27, 2018, 7:26pm
5
none of those automations contain the service home assistant is referencing. I think you are looking at the wrong automations. I only see 1 input_number in all that, and you are using it properly. I see 40 input_selects and none of them are used as a service.
What other automations do you have?
maurizio53
(Maurizio Fabiani)
March 27, 2018, 7:28pm
6
maybe these:
- action:
- service: media_player.volume_set
data_template:
entity_id: '{% if is_state("input_select.radio_speakers", "Living Room Audio") %} media_player.salotto_audio
{% elif is_state("input_select.radio_speakers", "Chromecast Salotto") %} media_player.salotto
{% elif is_state("input_select.radio_speakers", "Chromecast Camera Letto") %} media_player.camera_da_letto
{% elif is_state("input_select.radio_speakers", "Gruppo Media Player") %} group.media_player
{% endif %}'
volume_level: '{{ states.input_number.radio_volume.state | float }}'
alias: Radio Volume
condition: []
id: radio_volume
trigger:
- entity_id: input_number.radio_volume
platform: state
- action:
- service: script.radio_start
alias: Radio On
condition: []
id: radio_on
trigger:
- entity_id: input_boolean.radio_play
platform: state
to: 'on'
- action:
- service: script.radio_stop
alias: Radio Off
condition: []
id: radio_off
trigger:
- entity_id: input_boolean.radio_play
platform: state
to: 'off'
- action:
- service: script.radio_start
alias: Radio Channel Change
condition:
- condition: state
entity_id: input_boolean.radio_play
state: 'on'
id: radio_channel_change
trigger:
- entity_id: input_select.radio_station
platform: state
- action:
- service: script.radio_change_speakers
data_template:
previous_speakers: '{{ trigger.from_state.state }}'
alias: Radio Speaker Change
condition:
- condition: state
entity_id: input_boolean.radio_play
state: 'on'
id: radio_speaker_change
trigger:
- entity_id: input_select.radio_speakers
platform: state
Somewhere you are turning on/off a group that contains an input_number and an input_select.
When you turn the group on, it cycles through all its children and turns them on, obviously those two things don’t have a turn on service, so you get the error.
Edit…
{% elif is_state("input_select.radio_speakers", "Gruppo Media Player") %} group.media_player
{% endif %}
My guess is that your group media_player has an input select and input number in it?
petro
(Petro)
March 27, 2018, 7:31pm
8
Na, search your files for input_number.turn_on or input_select.turn_on.
If you are using a service_template anywhere, look there as well.
maurizio53
(Maurizio Fabiani)
March 27, 2018, 7:51pm
9
No i do not find any of those in my config files… and also inside my services i do not have any of them…
petro
(Petro)
March 27, 2018, 8:34pm
10
Well, yes. THey won’t be in services because they don’t exist. That’s why you are getting those errors. Are you using any python packages or appdeamon? Anything external? And have you looked to verify that you don’t use a service_template anywhere?
Did you look at my post about groups?
maurizio53
(Maurizio Fabiani)
March 28, 2018, 1:34pm
14
This is the only group which contains them:
radio:
name: Radio
icon: mdi:radio
control: hidden
entities:
- input_select.radio_station
- input_select.radio_speakers
- input_number.radio_volume
- input_boolean.radio_play
- script.radio_start
- script.radio_stop
And this
- service: media_player.volume_set
data_template:
entity_id: >
{% if is_state("input_select.radio_speakers", "Living Room Audio") %} media_player.salotto_audio
{% elif is_state("input_select.radio_speakers", "Chromecast Salotto") %} media_player.salotto
{% elif is_state("input_select.radio_speakers", "Chromecast Camera Letto") %} media_player.camera_da_letto
{% elif is_state("input_select.radio_speakers", "Gruppo Media Player") %} group.media_player
{% endif %}
So, what to do?
petro
(Petro)
March 28, 2018, 1:57pm
15
@anon43302295 is probably right here. What are you doing in this script: script.radio_start? Are you calling a turn_on for the group.radio?