GuillaumeWaignier / fibaro

Some fibaro quickApp
Apache License 2.0
13 stars 4 forks source link

Can you support cooler for nest thermostate #3

Closed Kimhy75 closed 1 year ago

Kimhy75 commented 2 years ago

Hello

Can you support cooler for nest thermostate ?

Thanks.

GuillaumeWaignier commented 2 years ago

Hello

I have not the device with cooler, so I will be unable to perform any test.

In this version, the available modes are hardcoded (Off, Heat, Eco). I can first retrieve the available modes from the Google API.

Then, if you can provide the response of the API (with a cooler device), I will be able to implement the cooler feature. You can do this by uncommented the debug log:

function NestThermostat:updateDevice(body)
    --self:debug("updateDevice " .. self.id .. " with body " .. json.encode(body))

You will have a response like this in the log:

Do not send the field that contains private information, that contains "enterprises/XYZ/..."

{
  "devices": [
   {
      "name": "enterprises/XYZ/devices/123",
      "type": "THERMOSTAT",
      "assignee": "enterprises/XYZ/structures/ABC/rooms/123",
      "traits": {
           "sdm.devices.traits.ThermostatMode" : {
               "availableModes" : ["HEAT",  "OFF"],
               "mode" : "HEAT"
           },
           "sdm.devices.traits.ThermostatTemperatureSetpoint" : {
             "heatCelsius" : 20.0,
           }
      },
      "parentRelations": [
        {
           "parent": "enterprises/XYZ/structures/ABC",
           "displayName": ""
        }
      ]
    } 
  ]
}

Thanks

GuillaumeWaignier commented 1 year ago

Hello,

The version 1.1.0 add the support for cooler.

Regards,

Sjekke commented 1 year ago

Boiler support?

GuillaumeWaignier commented 1 year ago

The version 1.1.0 of the quickApp integrate all functionalities provided by the Google Nest API:

These following functionalities can not be supported since Google do not provide any API on these features:

Sjekke commented 1 year ago

Thx for the feedback!

PeterV989 commented 1 year ago

I had no luck connecting my Z-Box hub over this past weekend. But when I saw a new version yesterday, I tried again and it worked perfectly. Not positive about whether it was the new version or if I did something right. I want to build on your work to get my Chamberlain garage door working. Probably not until Friday but I hope that's alright with you. I will give you full credit for your work..

Thank you.

Peter R Vermilye

Sent from my Samsung Galaxy S20 FE 5G

On Tue, Jan 24, 2023, 10:43 Sjekke @.***> wrote:

Thx for the feedback!

— Reply to this email directly, view it on GitHub https://github.com/GuillaumeWaignier/fibaro/issues/3#issuecomment-1402253766, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASAXT2TEZZF4MFDHPGVIPWDWUABD7ANCNFSM5MW3TEDQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

GuillaumeWaignier commented 1 year ago

In version 1.1.0, I modified the line where the quickApp crashes with the Z-Box hub (the problem was presented in https://marketplace.fibaro.com/items/nest-thermostat). There was a possibility that this could solve the problem.

PeterV989 commented 1 year ago

Thanks for that info. I have a few more issues but I haven't put issues on Github before. I am based in the US where we use Fahrenheit. I see that the setpoint traits are in Celsius but the trace message shows my settings with the number in the units I entered. Everything is displaying in Fahrenheit. I was poking around trying to see how to determine what units are being used with my goal being to convert to Celsius when updating the Nest API. I also see that one of the setpoints is not being rounded.

I am at work on my phone so the screens are a bit funky but I am attaching screenshots just the same. Hope this helps.

Peter

Sent from my Samsung Galaxy S20 FE 5G

On Thu, Jan 26, 2023, 02:58 Guillaume Waignier @.***> wrote:

In version 1.1.0, I modified the line where the quickApp crashes with the Z-Box hub (the problem was presented in https://marketplace.fibaro.com/items/nest-thermostat). There was a possibility that this could solve the problem.

— Reply to this email directly, view it on GitHub https://github.com/GuillaumeWaignier/fibaro/issues/3#issuecomment-1404711008, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASAXT2SYJMC3QLTEZYEKPKTWUI4DNANCNFSM5MW3TEDQ . You are receiving this because you commented.Message ID: @.***>