Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95479

Switch without a real device

$
0
0

@Nordin-010 wrote:

Hello guys,

To better understand how Home Assistant work, I’d like to create an Entity, which is just an On/Off switch that I can control from the UI. So, it’s not a real device, but actually a UI control. If the switch is turned on, it sends a turn-on signal to Home Assistant. I want to have a another UI view that listens for the switch change to make a lamp on or off, or send an email or whatever.

So first, I want simply create a UI control with a on/off switch.
Second, another view that listens to the on/off switch.

How can I achieve that?

What I know until now is that I can add a switch in Configuration.yaml something like this:
switch:
platform: view_control
entity id: switch.view.manual.control

But I guess it’s too naive to think like that.

I hope you can help.

Posts: 5

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95479

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>