Hi,
Thank you for your contribution.
Iām looking forward to testing it. Iāll install it over the weekend.
I have the Niko Home push interface behind all the switches in the house, and I would really love to be able to start a flow from these. Same with the virtual flag on Digital Black.
If thatās something youād like to make, Iād be happy to test it.
I donāt have the motor module, but otherwise Iāll go through the rest over the weekend. 
2 Likes
Hey @Andreas_Soll
I donāt have those push buttons myself but they should work if there is an action tied to them (like turning on a light)
I checked the niko API documentation and virtual flags seem quite simple to implement (page 76) so Iāll add it to my list.
If you find any bugs please let me know!
Hi @georgechoustoulakis
Iām not the best at development, but Iām doing my best. Hereās what Iāve found so far ā hopefully itās useful.
I can confirm that the push-button interface doesnāt work ādirectlyā in the sense that I canāt listen for an actual button press via MQTT. I donāt get a dedicated ābutton pressedā event from the push-button interface itself. Instead, I only see the effect of the press ā for example a dimmer changing state ā as a devices.status message (On/Off) on the UUID of the device/action that the button is linked to. So the input can only be detected indirectly through whatever the button controls.
To get a cleaner input signal, I also tested binding the push-button interface directly to a virtual flag in Niko Home Control. That works really well: the button toggles the flag, and then in MQTT you can simply listen to the flagās Status (True/False). So it is possible to use push-buttons as an input, but only if you build it using virtual flags. Itās a bit of a āworkaroundā and adds extra (and slightly confusing) configuration, but we can only work with what we have.
I was hoping to get clear short/long-press events, but I donāt see those as separate events in MQTT in my setup.
I have a really good contact at Niko Home in Denmark, if at some point you find something where it would make sense to get their help.
Hi,
iām very impressed/happy with this App. Ever since Niko stopped the support of IFTTT i was looking for an alternative!
is it in your roadmap to also support āNHC routinesā (like āeverything OFFā). this could be useful to e.g. enable your alarm when the āeverything OFFā routine is enabled.
kind regards,
Floris
Hey Floris, thanks for trying out the app!
Nikoās documentation for the āNHC All Off Actionā is very simple so I will add it to my list. 
1 Like