Flick the switch rapidly for Philips LED Sceneswitch

I have several bulbs from Philips LED Sceneswitch. These are bulbs with a small controller built in to dim the output light. This the dim function is used by flicking the switch from on to off-on in a rapid maner.

For every on–>off-on (flick/toggle) it will switch between 100%, 40% and 10%. Doing Another toggle just starts the cycle over again on 100%.

Is there anyone that have made a hass logic and/or tested any switches that would be capable to do this?
I have tested doing this over zwave with a fibaro switch, but it takes too long time to press -on-off-on in the panel manually. Therefore im looking to see if theres any logic existing to do this type of toggle.

And if the switch-device can report Power consumption it would also be possible to make a template showing the state of the lamp (100/40/10) based on its consumption.

Heres a link to Youtube showing off the Product if it was unclear:

Hello,

I would have made a new topic but then i saw yours and decided to reply though it’s been 2 years :slight_smile:

I recently bought some E27/GU10 3-step dimming bulbs/spots and i managed to make it work using a script that does something rather simple.

When i set it to 40% it switches off for 5 seconds (that’s the time my bulb takes to reset) and then follows the sequence to dim to 40% e.g. on -> off -> on.

For 10% it obviously is on -> off -> on -> off -> on.

I am using it with a sonoff basic so i don’t have power metering plus i usually do 100% so the 40%/10% is a bonus.

The script is as follows for 50%.
Do a copy for 10%

step_dimming_bedroom_50:
  alias: Bedroom Floor Lamp 50%
  sequence:
    - service: light.turn_off
      data:
        entity_id: light.bedroom_floor_lamp
    - delay:
        seconds: 5
    - service: light.turn_on
      data:
        entity_id: light.bedroom_floor_lamp
    - delay:
        milliseconds: 200
    - service: light.turn_off
      data:
        entity_id: light.bedroom_floor_lamp
    - delay:
        milliseconds: 200
    - service: light.turn_on
      data:
        entity_id: light.bedroom_floor_lamp
    - delay:
        milliseconds: 200