Multi Mode Switch

Does anyone now if you can make a shelley 1 give multi switching options? Here is the is idea . .

Switch On - do not switch the mains power, only send a MQTT to the bulbs to ramp up
Switch Off - do not switch the mains power, only send a MQTT to the bulbs to ramp down

From Switch on state
Switch On/Off - dim down 25%
Switch On/Off - dim down another 25%
Switch On/Off - dim down another 25%

From Switch off state
Switch On/Off - dim up 25%
Switch On/Off - dim up another 25%
Switch On/Off - dim up another 25%

Oh and last bit On/Off/On to toggle the mains switch (for if the HA/MQTT goes down)

You can set the switch to detached mode via the web UI, turn MQTT on and do the heavy lifting in HA.

Thanks Troon. I forgot the last part. If the network, HA or mqtt etc go down then finally it will be allowed to complete a physical mains switching with a triple latching like On/Off/On or Off/On/Off

I think you’re getting a bit beyond what the Shelly firmware can do there. I’ve flashed mine with ESPHome which would allow for this level of flexibility.