Switches in HA

bowlingbeeg's Avatar Topic Author
User User
  • Posts: 248
  • Thanks: 33

Switches in HA

2 years 6 months ago
#1445
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.

Please Log in or Create an account to join the conversation.

davep's Avatar
Admin Admin
  • Posts: 371
  • Thanks: 98

Re: Switches in HA

2 years 6 months ago
#1449
From the HAGateway driver run the SendDevices commands. That will email a copy of your current device registry to me. I can then import your registries here and find what I need to add to the driver to get all the devices.
 

Please Log in or Create an account to join the conversation.

bowlingbeeg's Avatar Topic Author
User User
  • Posts: 248
  • Thanks: 33

Re: Switches in HA

2 years 6 months ago
#1450
From the HAGateway driver run the SendDevices commands. That will email a copy of your current device registry to me. I can then import your registries here and find what I need to add to the driver to get all the devices.

 
Done, thanks!

Please Log in or Create an account to join the conversation.

Mark Guebert's Avatar
User User
  • Posts: 34
  • Thanks: 0

Re: Switches in HA

2 years 5 months ago
#2050
Dave,

I have sent my devices registry, I have a number of switches that aren't being imported.

Also I was wondering if scenes will be supported in the future?

Thanks

Please Log in or Create an account to join the conversation.

davep's Avatar
Admin Admin
  • Posts: 371
  • Thanks: 98

Re: Switches in HA

2 years 5 months ago
#2051
I did get a registry the other day. Have not been able to work on it yet. Goal is to get to it over the weekend.  I can look for scenes and grab them but I'll have to do some research on how Home Assistant works with them.

Please Log in or Create an account to join the conversation.

Mark Guebert's Avatar
User User
  • Posts: 34
  • Thanks: 0

Re: Switches in HA

2 years 4 months ago
#2376
Any progress on Scenes, These will be helpful to control lighting when changing status of a media player such as play pause stop end movie etc.

Please Log in or Create an account to join the conversation.

Time to create page: 0.429 seconds