This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.

The Homey Community has been moved to https://community.athom.com.

This forum is now read-only for archive purposes.

How can I trigger a flow by the powerstate of Enigma2 (ZGemma set-top box)?

Hi Experts,

I'm trying to create a flow for the lights in the living room. It would be great if this flow can check if the Enigma2 box is in use by checking the power state of the box. 

When using the webapi I can check this state by sending <ipaddress box>/web/powerstate

When the box is turned of the box returns:

<e2powerstate>
<e2instandby>true</e2instandby>
</e2powerstate>

When the box is turned on the box returns:

<e2powerstate>
<e2instandby>false</e2instandby>
</e2powerstate>

My idea is to trigger the flow as soon as the lux value in my living room reaches a certain point using the value that is read from the Fibaro Multi Sensor but I could use some help in creating the part where Homey reaches out to the enigma2 box for it's status. Any thoughts are welcome.

Comments

Sign In or Register to comment.