- Posts: 248
- Thank you received: 33
Switches in HA
- bowlingbeeg
- Topic Author
- Offline
- User
-
Less
More
2 years 5 months ago #1445
by bowlingbeeg
Switches in HA was created by bowlingbeeg
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:
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.
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 to join the conversation.
- davep
- Offline
- Admin
-
Less
More
- Posts: 367
- Thank you received: 96
2 years 5 months ago #1449
by davep
Replied by davep on topic Switches in HA
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 to join the conversation.
- bowlingbeeg
- Topic Author
- Offline
- User
-
Less
More
- Posts: 248
- Thank you received: 33
2 years 5 months ago #1450
by bowlingbeeg
Replied by bowlingbeeg on topic Switches in HA
Done, thanks!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 to join the conversation.
- Mark Guebert
- Offline
- User
-
Less
More
- Posts: 34
- Thank you received: 0
2 years 4 months ago #2050
by Mark Guebert
Replied by Mark Guebert on topic Switches in HA
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
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 to join the conversation.
- davep
- Offline
- Admin
-
Less
More
- Posts: 367
- Thank you received: 96
2 years 4 months ago #2051
by davep
Replied by davep on topic Switches in HA
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 to join the conversation.
- Mark Guebert
- Offline
- User
-
Less
More
- Posts: 34
- Thank you received: 0
2 years 3 months ago #2376
by Mark Guebert
Replied by Mark Guebert on topic Switches in HA
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 to join the conversation.
Time to create page: 0.200 seconds