Is it possible to show a light status without the controls to change it in HADashboard? That includes tapping on the icon itself. In other words, I want to be able to see if a light is on, but not allow anyone to change it.
Sure. A light entity has a state of off
and on
, so you could use a switch widget, and add
enable: 0
to disable clicking:
light:
widget_type: switch
entity: light.my_light
title: "my lamp"
icon_on: mdi-lamp
icon_off: mdi-lamp
enable: 0
I think the enable
key is still undocumented but you can use it for switch
and input_boolean
widgets.
1 Like