Define group switch

Hello,

I have these switches:

switch:
  - platform: mqtt
name: "Fire TV"
state_topic:   "harmony-api/hubs/wohnzimmer/activities/fire-tv/state"
command_topic: "harmony-api/hubs/wohnzimmer/activities/fire-tv/command"
payload_on: "on"
payload_off: "off"
  - platform: mqtt
name: "Entertain"
state_topic:   "harmony-api/hubs/wohnzimmer/activities/telekom-dvr/state"
command_topic: "harmony-api/hubs/wohnzimmer/activities/telekom-dvr/command"
payload_on: "on"
payload_off: "off"
  - platform: mqtt
name: "Power Off"
state_topic:   "harmony-api/hubs/wohnzimmer/activities/poweroff/state"
command_topic: "harmony-api/hubs/wohnzimmer/activities/poweroff/command"
payload_on: "on"
payload_off: "off"

which are grouped here:

group:
  Livingroom:
    name: Wohnzimmer
    #view: yes
    entities:
      - switch.entertain
      - switch.fire_tv
      - switch.power_off

How can I set the switch switch.power_off as group switch, which is automatically generated if I use groups.

Basically - Can I find anywhere a full documentation of the YAML language, which is used by HA. I see a lot of examples in the components & getting started section, but looking for something which is more “complete”.

Thanks in Advance!

I have similar switches set up in one group as a card:

- platform: mqtt
  name: "Watch TV"
  state_topic:   "harmony-api/activities/watch-tv/state"
  command_topic: "harmony-api/activities/watch-tv/command"
  payload_on: "on"
  payload_off: "off"
- platform: mqtt
  name: "FireTV/Plex"
  state_topic:   "harmony-api/activities/watch-fire-tv/state"
  command_topic: "harmony-api/activities/watch-fire-tv/command"
  qos: 0
  payload_on: "on"
  payload_off: "off"
- platform: mqtt
  name: "Chromecast"
  state_topic:   "harmony-api/activities/chromecast/state"
  command_topic: "harmony-api/activities/chromecast/command"
  qos: 0
  payload_on: "on"
  payload_off: "off"
- platform: mqtt
  name: "BluRay"
  state_topic:   "harmony-api/activities/watch-a-dvd/state"
  command_topic: "harmony-api/activities/watch-a-dvd/command"
  qos: 0
  payload_on: "on"
  payload_off: "off"

Group setup:

mediaswitches:
   - switch.watch_tv
   - switch.firetvplex
   - switch.chromecast
   - switch.bluray

When I click on the group switch for that group, it turns off any one of the activities. I just tested it again now to make sure.

All of the available service calls can be looked up via the service tab. In the right hand menu in your home assistant instance click the little icon that looks like a remote with a single button and some waves coming out of it.

From there you can pick a domain and service (they are listed on the right side in earlier versions) if you seperate the domain and service with a period you get a service call you can put in a automation.

So…

Domain: homeassistant
Service: turn_off

becomes homeassistant.turn_off

Used in an automation…

  - alias: 'Turn Off HA_Rookie Group'
    trigger:
      platform: sun
      event: suset
      offset: '-00:15:00'
    action:
      service: homeassistant.turn_off
      entity_id: group.wohnzimmer

Thanks for your help. I was able to solve the problem.