I have a Device that can be controlled only sending MQTT messages in a specific topic (a rolling shutter - up/down/stop).
I was wondering how i could integrate it in the Companion app. I want my familly members to have access to it through their phone.
I saw that in the app, we can define a new Device, a Scene, an Automation (on/off), and nothing else.
According to you, how this could be achieved? If I use Node-Red, can I create a Flow for each action (up/down/stop) and trigger it from the Companion?
I reply to my own post as I may have found a way. But i’m still open to suggestions in case you have other solutions/workarounds.
I can create a Script for each required state. In the scripts 'Action" section, we can do a “Call Service”/“MQTT Publish”.
Then, scripts are “Devices” we can add in the HA Companion. It displays as “Script name: Trigger”, I would have prefered a button, but it’s better than nothing
Thank you for your advices! But actually, I will use a simple MQTT-2-RTS bridge that I bought; cheaper than Tahoma for Somfy; it doesn’t return state, nor have advanced features such as « open to a rate of xx% ».
It accepts simple commands like « u » for up, « d » for down, etc.