I have figured out how to create a button to toggle the Duux Threesixty 2 Heater on and off from the dashboard.
This may not be the most elegant way to handle this - but this seems do the trick.
- I used an iPhone to Intercept the API calls traffic from the Duxx App to the Duux server. You could probably do the same thing on the Andriod.
- capture the URI endpoint / auth token / headers and the POST data
I am not sure if the auth token will be expired but it works so far for a day.
-
Setup Node Red to create a flow to turn on and off the Duux heater.
-
Install the NodeRed Companion Component from the HACS
-
Create the Lovelace UI for the button
How to trigger a flow in node-red from HA lovelace ui? - #4 by Kermit
Hope this helps.