I've got a number of switches in HA but only a few of them show up in MyServer6. For example, here is a virtual switch(in yaml) I created that allows me to keep track of which source is currently selected in MyServer6 which does not show up in MyServer6. I'm using the input_text.theater_source value to store the current source and the switch is used to toggle between the sources:
Code:
switch:
- platform: template
switches:
theater_source_atv:
value_template: "{{ is_state('input_text.theater_source', 'atv') }}"
turn_on:
service: input_text.set_value
target:
entity_id: input_text.theater_source
data:
value: "atv"
turn_off:
service: input_text.set_value
target:
entity_id: input_text.theater_source
data:
value: "poweroff"
theater_source_plex:
value_template: "{{ is_state('input_text.theater_source', 'plex') }}"
turn_on:
service: input_text.set_value
target:
entity_id: input_text.theater_source
data:
value: "plex"
turn_off:
service: input_text.set_value
target:
entity_id: input_text.theater_source
data:
value: "poweroff"
It would be nice if these types of switches showed up in MyServer6 so we could call the turn_on/turn_off services on them. But that brings me to my next question/request. Is it possible today to actually call those services for switch entities? I have some Tasmota outlets that show up in MyServer6 as a sensor but they also have a switch entity. Unfortunately, I haven't been able to figure out how to actually call the services on the switch.