Add ability to set hub light level via a service

The Sure Petcare integration provides a binary sensor for the hub, which has an attribute led_mode. This is settable via the sure app, but is probably exposeable within home assistant as a service like set_pet_location

Values seem to be:
0 Off
1 Dim
4 Full

(2 and 3 may be intermediate states not exposed by the manufacturer, but I have no way to test.)

It would be useful for me tor the ability to toggle this attribute could be added via a set_hub_led_brightness service. The hub has to be in our living room, and the ability to turn the lights off while watching a film is useful, but for diagnostic purposes it’s best in general if they are on.

What values does that have when you set different levels in the app?

The values that are recorded above. That’s how I got them.

Then set up a template light Template Light - Home Assistant and switch it like any other light.