Nest plugin on UI7: observations and fixes

Hello,

I think that the current v1.7 of the Nest plugin will fail to start up on UI7 owing to a stupid and minor bug in the plugin. If the plugin complains that you aren’t running the minimum required Vera firmware (1.5.408), please then try to use the attached file by going to Apps → Develop Apps → Luup files, uploading the file and choosing Restart after upload (or if this UI has changed in UI7, the equivalent).

I don’t expect to be running UI7 as soon as it comes out, so I rely on plugin users to tell me if there are any problems. Thanks for your help!

Regards,
watou

Thanks, This made the message go away on my unit. So far so good.

My problem was it wouldn’t set my username or password in addition to the above issue. However, it may have not been allowed to run based on the firmware version error. I’m back at ui5 now so I’ll have to wait to see what the deal was

I’m running UI7 (bleeding edge and all that), saw the version error, and modified the code also to get around it. The V1.7 Nest app will now set a username and password and polling time, but (so far) no devices created…

anyone else getting false alarms after the plugin install for CO alarms and Protect. Smoke in the Kitchen alarms are not much fun at 3 in the morning.

Thanks

David

Is this on UI7? Are false positives coming from Vera only or from Nest as well? Please provide more information. I would be astonished to learn of a causal relationship between installing the plugin and false smoke alarms.

Thanks,

actually on the latest UI5. False alarms are being sent by the unit itself however the official NEST app has shown no alerts. May be a defective unit however these have been installed for well over 6 months with 0 false alarms. I usually go back to the last thing that has changed when diagnosing false alarms or any other trouble shooting. Was running 1.6 without issue and upgraded to 1.7 to allow for the addition of 3 PROTECTS into my system however these really aren’t needed per say.

Sorry to hijack the thread but knew you would be seeing responses to the recent plugin release of 1.7 here.

I have since uninstalled to see if any false alarms continue and if so I can rule out the recent upgrade as the culprit.

Thanks,

David

Thank you watou, I installed the latest I_* file and my nest and protects showed up! For some strange reason, I can’t assign anything to a room… hmmm.

Also, please take a look at the temperature controls. You can’t seem to make an adjustment because the temperature numbers are not displayed.

Thank you watou, I installed the latest I_* file and my nest and protects showed up! For some strange reason, I can’t assign anything to a room… hmmm.[/quote]

Once I figured out the numbers for each existing room (some by trial and error, some by just checking an existing device that was already in the room), I could go into “Advanced” on each “No Room” device (the room variable will be set to “0” for some reason) and assign it to a room number. Not quite what Vera wanted (I suspect), but it works.

It worked for me.

The UI7 display for Nest smoke sensors shows the “Armed”/“Bypass” switch different than the CO sensor “Armed”/“Bypass”.

Is there a way to change the CO sensor look and feel to match the smoke sensor?

[quote=“hmspain, post:12, topic:182372”]The UI7 display for Nest smoke sensors shows the “Armed”/“Bypass” switch different than the CO sensor “Armed”/“Bypass”.

Is there a way to change the CO sensor look and feel to match the smoke sensor?[/quote]

The smoke sensor device uses the provided device type and JSON file in Vera. In 1.5.622 (the version I’m using), there is no equivalent built-in device type XML and JSON file for carbon monoxide sensor devices, so I copied the built-in smoke sensor device’s XML and JSON files in 1.5.622 to make the device type for the carbon monoxide sensor device.

It may be that Vera has changed the JSON file in UI7 for the smoke sensor device, making the two devices now appear differently. Ideally, Vera would provide a built-in device type XML and JSON for carbon monoxide detectors as well as smoke detectors, so that these devices would appear similarly in the UI (after I scrapped the versions I added). I don’t think I can make the two devices look similarly in both UI5 and UI7 simultaneously. However, you are free to hack your own D_NestCOSensor1.json file so that it more closely mimics the built-in D_SmokeSensor1.json file in UI7. Or, if UI7 now provides a built-in carbon monoxide sensor XML and JSON file, you could hack the I_Nest1.xml to reference those built-in files instead of the D_NestCOSensor1.* files I provided. At some point in the future, when most people seem to be using UI7 and UI5 is largely obsoleted, I will most likely change the plugin along these lines.

watou

[quote=“watou, post:13, topic:182372”][quote=“hmspain, post:12, topic:182372”]The UI7 display for Nest smoke sensors shows the “Armed”/“Bypass” switch different than the CO sensor “Armed”/“Bypass”.

Is there a way to change the CO sensor look and feel to match the smoke sensor?[/quote]

The smoke sensor device uses the provided device type and JSON file in Vera. In 1.5.622 (the version I’m using), there is no equivalent built-in device type XML and JSON file for carbon monoxide sensor devices, so I copied the built-in smoke sensor device’s XML and JSON files in 1.5.622 to make the device type for the carbon monoxide sensor device.

It may be that Vera has changed the JSON file in UI7 for the smoke sensor device, making the two devices now appear differently. Ideally, Vera would provide a built-in device type XML and JSON for carbon monoxide detectors as well as smoke detectors, so that these devices would appear similarly in the UI (after I scrapped the versions I added). I don’t think I can make the two devices look similarly in both UI5 and UI7 simultaneously. However, you are free to hack your own D_NestCOSensor1.json file so that it more closely mimics the built-in D_SmokeSensor1.json file in UI7. Or, if UI7 now provides a built-in carbon monoxide sensor XML and JSON file, you could hack the I_Nest1.xml to reference those built-in files instead of the D_NestCOSensor1.* files I provided. At some point in the future, when most people seem to be using UI7 and UI5 is largely obsoleted, I will most likely change the plugin along these lines.

watou[/quote]

Thank you watou, your support on this app is greatly appreciated!

Just installed plug-in on UI7 and added the patch file. It never creates the devices so there is no way to add username and password. I did not have this installed prior to UI7 upgrade.

Thanks

Andy

[quote=“aschwalb”]Just installed plug-in on UI7 and added the patch file. It never creates the devices so there is no way to add username and password. I did not have this installed prior to UI7 upgrade.

Thanks

Andy[/quote]
I suspect the version checking bug tripped up the phase where the plugin installation should have created the initial parent device. I am out of position to list the steps to manually create the main Nest device but maybe someone here could provide those steps?

[quote=“aschwalb, post:15, topic:182372”]Just installed plug-in on UI7 and added the patch file. It never creates the devices so there is no way to add username and password. I did not have this installed prior to UI7 upgrade.

Thanks

Andy[/quote]

Hmmm. It won’t create the Thermostat/Protect devices until you enter your Nest username and password into the first simple “Nest” device (no parent). It then logs into nest.com and determines what you have. Are you saying that NO initial “Nest” device was created? Check the Nest app to see if a device number was used…

[quote=“aschwalb, post:15, topic:182372”]Just installed plug-in on UI7 and added the patch file. It never creates the devices so there is no way to add username and password. I did not have this installed prior to UI7 upgrade.

Thanks

Andy[/quote]

just got my second vera today for ui7 testing
nest installed just fine for me
i have all devices on screen and working (including protect)

the temp sliders are a little buggy but it works

[quote=“charettepa, post:18, topic:182372”][quote=“aschwalb, post:15, topic:182372”]Just installed plug-in on UI7 and added the patch file. It never creates the devices so there is no way to add username and password. I did not have this installed prior to UI7 upgrade.

Thanks

Andy[/quote]

just got my second vera today for ui7 testing
nest installed just fine for me
i have all devices on screen and working (including protect)

the temp sliders are a little buggy but it works[/quote]

Please share how you got the Nest temperature sliders to work under UI7. Mine just shows sliders with no “Heat” or “Cool” labels or temperatures.

make sure your precision scale is 1 and not 5 or 10
also the label heat cool is not there
heat on left cool on right
it does work
but as previously noted the sliders are buggy
clicking on the right arrow gives the settings menu
selecting the control tab gives the plugin displayed ui5 style
it functions a bit better