I have followed the example above and changed up the logic for the names of my cameras and ip address. I can take the media content and paste it into my browser and view my live camera feeds. I have no errors when i check configuration.
My issue is the input option does not come up on my
HA overview section.
Here is my code but i put them in their respective .yaml files
“Configuration.yaml” i put in the “input select:”
input_select:
camera_dropdown:
name: Cast camera
options:
- CAM01
- CAM02
- CAM03
- Cycle Cameras
- All Cameras
initial: All Cameras
icon: mdi:camera
cast_to_screen_dropdown:
name: To Screen
options:
- Google Smart Display
- Chromecast
- Android TV
initial: Google Smart Display
icon: mdi:cast
For the “Script.yaml” file i put the logic
execute_cast_dropdown:
alias: Press to execute
sequence:
- service: media_player.play_media
data_template:
entity_id: >
{% if is_state("input_select.cast_to_screen_dropdown", "Google Smart Display") %}
media_player.great_room_display
{% elif is_state("input_select.cast_to_screen_dropdown", "Chromecast") %}
media_player.great_room_display
{% elif is_state("input_select.cast_to_screen_dropdown", "Android TV") %}
media_player.great_room_display
{% endif %}
media_content_id: >
{% if is_state("input_select.camera_dropdown", "CAM01") %}
http://192.168.1.133:8085/mjpg/CAM01/video.mjpg
{% elif is_state("input_select.camera_dropdown", "CAM02") %}
http://192.168.1.133:8085/mjpg/CAM02/video.mjpg
{% elif is_state("input_select.camera_dropdown", "CAM03") %}
http://192.168.1.133:8085/mjpg/CAM03/video.mjpg
{% elif is_state("input_select.camera_dropdown", "Cycle Cameras") %}
http://192.168.1.133:8085/mjpg/@index?/video.mjpg
{% elif is_state("input_select.camera_dropdown", "All Cameras") %}
http://192.168.1.133:8085/mjpg/index?/video.mjpg
{% endif %}
media_content_type: 'image/jpg'
For the “group.yaml” I put the following logic.
Cast_Cameras_Group:
name: Cast Camera to Screen
view: no
entities:
- input_select.camera_dropdown
- input_select.cast_to_screen_dropdown
- script.execute_cast_dropdown
Can anyone tell me why i am not getting the group displayed on the overview of HA 0.86.4