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

Change how dummy switch is displayed in Lovelace

$
0
0

@cmartens wrote:

Hi,

I want to display the status of a NodeRED flow in Lovelace. So in NodeRED this “dummy switch” will be switched on and off when the flow is running.

To make this happen, I have added the following code to configuration.yaml:

input_boolean:
  aanwezigheidssimulatie_status:
    name: Status Aanwezigheidssimulatie
    initial: off
    icon: mdi:shield-home

This entity is displayed in Lovelace like a normal switch, like this:


However, I am looking for a solution to display it with “on” and “off”, so that it is not possible to change the status, but that the status is displayed in Lovelace. See the example below which I found on internet:

616e4c7fb64698f02206351f464645cb749d9c73
Does anybody have a solution for this? Thanks in advance for your support!

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95925

Trending Articles



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