Gauge iOS widget

Gauge Widget Setup on iPhone (Home Assistant + Govee)

I need help with setting up a gauge widget on iPhone.

I have Govee lights and I use a script to turn them on or off based on a counter:

  • 0 → lights off
  • 100 → lights on

I want to create a gauge widget that:

  • shows the current light status
  • runs the script when clicked

Script Logic

If counter value is higher than 0.1
lights off
set counter to 0
else
lights on
set counter to 100

Notes

  • Light usage is based on actions made in the Govee app
  • The gauge can show:
    • On / Off, or
    • 0 or 1 (if needed)

I think you are looking for a switch

I was looking to for the gauge widget configuration and was able to accomplish it with setup below. With some trying and chat gpt it came out how I wanted it.