marconfus / ha-nefit-ng

Rewrite of the „nefit“ component. Still in development!
11 stars 4 forks source link

Compatability with Google Assistant #10

Open tomlevels opened 5 years ago

tomlevels commented 5 years ago

Would it be possible to make the component states compatible with Google Assistant? Guidelines are in: https://developers.google.com/actions/smarthome/traits/temperaturesetting

marconfus commented 5 years ago

The two modes supported by the component are "auto" and "manual". The mode "auto" is also in the Google documentation. I guess "manual" is "heatcool" in Google Assistant terms. As I don't have Google Assistant, I cannot test this. You could replace the line OPERATION_MANUAL = "manual" with OPERATION_MANUAL = "heatcool" and see if that works. I could then add a "Google Assistant compatibility switch".

rvsit commented 5 years ago

Not OP, but I also had this problem in the past and used the OPERATION_MANUAL = "heat" successfully (and forgot to submit a issue/PR 🙄 ). I just checked if heatcool is also valid, but it does not seem to let me control the temperature either, same behavior as with manual

ANDTHEWINNER commented 5 years ago

royvs33 is right, changing OPERATION_MANUAL = "manual" to OPERATION_MANUAL = "heat" works.

Thank you