Modbus - switch relay on/off

based on the switch example earlier

Car1_breaker_write.sendCommand(ON)

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

https://www.openhab.org/docs/ui/components/oh-label-card.html

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:
image

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
config:
  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