Modbus - switch relay on/off

based on the switch example earlier


thanks, working. Is there any default widget with simple bulb for on/off indication ?

this will allow to represent that switch however you like try it and post if you have further questions

My idea was somethink like this:

to make it look like that you will have to fiddle around with images but i cannot help you. but another simple option Wich i use is

component: oh-label-cell
  color: "(Car1_breaker_write.state == 'ON') ? 'green' : 'grey'"
  expandable: false
  footer: whatever you like
  icon: oh:lightbulb
  item: Car1_breaker_write
  on: true

1 Like