Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106277

Using Input_select in automation - action

$
0
0

I am trying to use input select to choose which camera i pan…cant figure this out…

without the input_select, for individual camera, this works. it will pan ‘camone’ accordingly ;

panright:
  sequence:
  - service: onvif.ptz
    entity_id: camera.camone
    data:
      pan: RIGHT
      zoom: ZOOM_IN
      distance: 0.1
      speed: 0.5
      continuous_duration: 0.5
      preset: 1
      move_mode: ContinuousMove

So i wanna be able to select which camera that i pan (either camone or camtwo). input_select.cctvlist is either ‘camone’ or ‘camtwo’.
But the one below doesnt work. How can i achieve this?

cctvlist:
  name: CCTV List
  options:
    - camera.camone
    - camera.camtwo
  initial: camera.camone
panright:
  sequence:
  - service: onvif.ptz
    entity_id: input_select.cctvlist
    data:
      pan: RIGHT
      zoom: ZOOM_IN
      distance: 0.1
      speed: 0.5
      continuous_duration: 0.5
      preset: 1
      move_mode: ContinuousMove

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106277

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>