Microwave Light - Numeric Value

I have an LG microwave that exposes a light via the official LG integration:

The light shows a value of 0 1 or 2 for off, low, and high. How can I use a light template to set the level?

First things first - confirming that setting a number value actually works:
This looks like a screenshot from the Developer Tool - States, correct?

When you click on the URL ‘number.martha_light’ you should get something like this:
image

I assume the ‘State*’ field currently shows 0.

If so, enter 2 into the fiels and hit the State button:
image

Does it actually change the light?

If i doesn’t - sorry, game over.

If it does, you can use the number.set_value action in an automation or script to change the value of number.martha_light, e.g.

action: number.set_value
data:
  value: "1"
target:
  entity_id: number.martha_light

Thanks! I am able to set the state via the developer tab, and the light responds accordingly.

That makes sense for automations or scripts. Is there a way to make it look like a switch in a dashboard? It currently shows as this:
image

Not sure, I understand.

How do you want to switch between 0, 1, and 2 with a simple on & off switch?

0 (off) and 2 (high) would be fine.

I am thinking of trying to use a helper switch and an automation to update the state based on the switch (and the reverse if someone turns on light with the button on the microwave), but I feel like that would be over complicating it.

Realistically, I would probably never turn it on via a dashboard, but could easily include it in my automations for turning lights off at night or when everyone leaves the house.

Might be best to just leave it off the dashboard.

Thanks for your help!

I agree, it sounds like an overkill.

Does the microwave light stay on when its not being used? :confounded:
Sounds strange.

It’s an over the range microwave. The light is on the bottom.

OK - that totally makes sense :+1:
Guess the light settings are something like ‘off’, ‘night’, ‘full’ - similar to my not-so-smart 20yo stove vent hood :wink: