Think, something like this could work:
Although the test for the power is not necessary. But nice to have …
It’s also possible with a standard-flow and the homey bridge:
My first tests were fine …