Select scenes with command_line switches

— edit—
of course i had to add the definition of my switches being a switch. duh…

- name: Opstaan
  entities:
    switch.sw_espresso_keuken_cl:
      state: on

- name: Aan de slag
  entities:
    switch.sw_office_cl:
      state: on

etc.

Still, i need some pro advice here, regarding checking the initial state of the switches, and how to smoothly switch between scenes. or other useful suggestions of course :wink:

— end edit—

HI, please send me in the right direction with this, i can’t figure out where to start, since all separate files give a green Yamllint, but various errors in the log, stating the switches aren’t allowed in scenes. Which is kind of troublesome, cause they’re the only switches i have …

2017-11-24 17:21:52 ERROR (MainThread) [homeassistant.config] Invalid config for [scene]: [sw_espresso_keuken_cl] is an invalid option for [scene]. Check: scene->states->0->entities->sw_espresso_keuken_cl.

switches are defined as follows and working perfectly, as a switch that is, not yet in the automations:
sw_office_cl:
friendly_name: 6 - Office
command_on: >-
curl -X POST -d ‘{“seq”:1, “method”:“object_prop_set”, “arguments”:{“oid”:“430ba8cf”, “prop”:“command”, “value”:“on”}}’ http://ip/iungo/api_request
command_off: >-
curl -X POST -d ‘{“seq”:1, “method”:“object_prop_set”, “arguments”:{“oid”:“430ba8cf”, “prop”:“command”, “value”:“off”}}’ http://ip/iungo/api_request
command_state: >-
curl -X POST -d ‘{“seq”:1, “method”:“object_prop_get”, “arguments”:{“oid”:“430ba8cf”, “prop”:“state”}}’ http://ip/iungo/api_request
value_template: >-
{%- if value_json.rv.value == ‘on’ -%}
{{ true }}
{%- else -%}
{{ false }}
{%- endif -%}

i then follow with some scenes:

##########################################################################################

Scenes

##########################################################################################

- name: Opstaan
  entities:
    sw_espresso_keuken_cl:
      state: on

- name: Aan de slag
  entities:
    sw_office_cl:
      state: on

- name: Tv kijken
  entities:
    sw_audio_auditorium_cl:
      state: on
    sw_office_cl:
      state: off

- name: Uit huis
  entities:
    sw_espresso_keuken_cl:
      state: off
    sw_office_cl:
      state: off
    sw_audio_auditorium_cl:
      state: off

- name: Naar Bed
  entities:
    sw_espresso_keuken_cl:
      state: off
    sw_office_cl:
      state: off
    sw_audio_auditorium_cl:
      state: off

a selector in an !include file:

scenes:
  name: Scenes
  options:
    - Opstaan
    - Aan de slag
    - Uit Huis
    - Tv Kijken
    - Naar Bed
  initial: Naar bed
  icon: mdi:home

and the automations:

- alias: Opstaan
  trigger:
    platform: state
    entity_id: input_select.scenes
    to: "Opstaan"
  action:
    service: scene.turn_on
    entity_id: scene.opstaan

- alias: Aan de slag
  trigger:
    platform: state
    entity_id: input_select.scenes
    to: "Aan de slag"
  action:
    service: scene.turn_on
    entity_id: scene.aan_de_slag

- alias: Tv kijken
  trigger:
    platform: state
    entity_id: input_select.scenes
    to: "Tv kijken"
  action:
    service: scene.turn_on
    entity_id: scene.tv_kijken

- alias: Uit huis
  trigger:
    platform: state
    entity_id: input_select.scenes
    to: "Uit huis"
  action:
    service: scene.turn_on
    entity_id: scene.uit_huis

- alias: Naar bed
  trigger:
    platform: state
    entity_id: input_select.scenes
    to: "Naar bed"
  action:
    service: scene.turn_on
    entity_id: scene.naar_bed