New NEST Plugin ready for general use

Plugins that users have built. NOTE: plugins that were developed for Indigo versions older than 2022.1 will have to be updated to work with Indigo 2022.1 (Python 3 - see this blog post for details). If the plugin listed here is not in the Plugin Store (which will show updated plugins) then you will need to ask on the appropriate thread below if it has been updated and where you get get the update.
Cheezmo
Posts: 24
Joined: Sun Dec 30, 2012 10:19 am

Re: New NEST Plugin ready for general use

Post by Cheezmo »

I'm not seeing the Fan mode being updated. I have two nests and while currently one has the Fan "Always On" according to the Nest website, both show "Auto On" in indigo. Changing them also has no effect and Indigo switches right back to "Auto On" when I try to change it without actually changing the setting on the Nest.
Autobot
Posts: 24
Joined: Wed Jul 30, 2014 4:55 pm

Re: New NEST Plugin ready for general use

Post by Autobot »

Hello,

Can someone please advise what is the Python reference for this plugin, so that I can incorporate it in a script?
The info.plist says it is org.mlamoureux.nestplugin but that doesn't seem to work.

Thanks!
User avatar
DaveL17
Posts: 7323
Joined: Tue Aug 20, 2013 11:02 am
Location: Chicago, IL, USA
Contact:

Re: New NEST Plugin ready for general use

Post by DaveL17 »

That's a good question. I reference the device states directly and not via the bundle identifier.

You might try:
org.mlamoureux.indigoplugin.nestplugin

but that might also not work since it doesn't match the plist.

Good luck,
Dave
I came here to drink milk and kick ass....and I've just finished my milk.

My Plugins and Scripts
vtmikel
Posts: 717
Joined: Fri Aug 31, 2012 12:45 pm
Location: Boston, MA
Contact:

Re: New NEST Plugin ready for general use

Post by vtmikel »

Yes that's right.
Autobot
Posts: 24
Joined: Wed Jul 30, 2014 4:55 pm

Re: New NEST Plugin ready for general use

Post by Autobot »

Thank you Dave.

Will try that.
Autobot
Posts: 24
Joined: Wed Jul 30, 2014 4:55 pm

Re: New NEST Plugin ready for general use

Post by Autobot »

Oh and thanks Mike for confirming the reference.

Couple of things - I not sure if I'm doing something wrong but:

1. The plugin seems to "hang" periodically and no longer updates until I reload it

2. Set point changes in Indigo do not update the thermostat

Any advice would be much appreciated as I'm new to Indigo.
TheTechnoPilot
Posts: 46
Joined: Mon Mar 31, 2014 9:16 pm
Location: Montreal, QC, Canada
Contact:

Re: New NEST Plugin ready for general use

Post by TheTechnoPilot »

Agreed, I also find that setpoint changes fail to update the thermostat and role back to what is on the Nest website upon the next update.
Android's Tasker, to a person who does home automation...is like walking up to a Crack Treatment facility with a truck full of 3lb bags of crack. Then for each person that walks in and out smack them in the face with an open bag.
vtmikel
Posts: 717
Joined: Fri Aug 31, 2012 12:45 pm
Location: Boston, MA
Contact:

Re: New NEST Plugin ready for general use

Post by vtmikel »

Would the two of you please turn on debug in the plugin menu and send me your log during the time of the problem? Also, let me know if you have any kind of unique setup with your NEST.

It's the first time I've heard about a problem with the plugin hanging, might be hard to debug on your system but we can try.
Autobot
Posts: 24
Joined: Wed Jul 30, 2014 4:55 pm

Re: New NEST Plugin ready for general use

Post by Autobot »

Hey Mike,

Funny you should mention unusual Nest setup...
I think it's possible that this is the source of the issues:
I'm in Australia and I've had to enact a hack to obtain local weather and time zone data for the Nest.
Requests for weather and location data is redirected via DNS rerouting to a local server, which then runs a php script to obtain the correct data for my location.
I'll turn on debug and collect that data anyway, just to see what that shows.
Will keep you posted.

Thanks a lot!
Autobot
Posts: 24
Joined: Wed Jul 30, 2014 4:55 pm

Re: New NEST Plugin ready for general use

Post by Autobot »

So for starters, this is what the event log shows when the plugin "hangs" or fails:


>>>
Yet Another Nest Thermostat Plugin Error Trouble connecting to the NEST proxy, restarting it.
Yet Another Nest Thermostat Plugin stopping NEST listener thread...
Yet Another Nest Thermostat Plugin launching NEST listener thread and Nest.com proxy...
Yet Another Nest Thermostat Plugin Invalid message:

Yet Another Nest Thermostat Plugin Invalid message: ntents/Server Plugin/nest_api.js:185

Yet Another Nest Thermostat Plugin Invalid message: ion.urls.transport_url.hostname,

Yet Another Nest Thermostat Plugin Invalid message: ^

Yet Another Nest Thermostat Plugin Invalid message: ort_url' of undefined

Yet Another Nest Thermostat Plugin Invalid message: /Library/Application Support/Perceptive Automation/Indigo 6/Plugins/IndigoNestPlugin.indigoPlugin/Co host:nestSess TypeError: Cannot read property 'transp at nestGet (/Library/Application Support/Per:185:34)

Yet Another Nest Thermostat Plugin Invalid message: ceptive Automation/Indigo 6/Plugins/IndigoNestPlugin.indigoPlugin/Contents/Server Plugin/nest_api.js at Object.fetchCurrenNestPlugin.indigoPlugin/Contentjs:223:9)

Yet Another Nest Thermostat Plugin Invalid message: est (/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/IndigoNestPlugin.indigoPlugjs:86:7)

Yet Another Nest Thermostat Plugin Invalid message: )

Yet Another Nest Thermostat Plugin Invalid message: tStatus [as fetchStatus] (/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Indigos/Server Plugin/nest_api. at Server.processIndigoRequin/Contents/Server Plugin/nest_monitor. at Server.EventEmitter.emit (events.js:98:17 at HTTPParser.parser.onIncoming (http.js:2108:12)

Yet Another Nest Thermostat Plugin Invalid message: at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:121:23)

Yet Another Nest Thermostat Plugin Invalid message: at Socket.socket.ondata (http.js:1966:22)

Yet Another Nest Thermostat Plugin Invalid message: at TCP.onread (net.js:527:27)

<<<

Thanks!
User avatar
DaveL17
Posts: 7323
Joined: Tue Aug 20, 2013 11:02 am
Location: Chicago, IL, USA
Contact:

Re: New NEST Plugin ready for general use

Post by DaveL17 »

I have seen similar messages in the past--where there are leading characters of certain lines that appear to be cut off. Like this:

Code: Select all

Yet Another Nest Thermostat Plugin Invalid message: ntents/Server Plugin/nest_api.js:185
Dave
I came here to drink milk and kick ass....and I've just finished my milk.

My Plugins and Scripts
Autobot
Posts: 24
Joined: Wed Jul 30, 2014 4:55 pm

Re: New NEST Plugin ready for general use

Post by Autobot »

Another instance where it begins to send invalid messages:

Code: Select all

 Yet Another Nest Thermostat Plugin Invalid message: 

  Yet Another Nest Thermostat Plugin Invalid message: events.js:72

  Yet Another Nest Thermostat Plugin Invalid message:         throw er; // Unhandled 'error' event

  Yet Another Nest Thermostat Plugin Invalid message:               ^

  Yet Another Nest Thermostat Plugin Invalid message: Error: socket hang up

  Yet Another Nest Thermostat Plugin Invalid message:     at SecurePair.error (tls.js:1013:23)

  Yet Another Nest Thermostat Plugin Invalid message:     at EncryptedStream.CryptoStream._done (tls.js:705:22)

  Yet Another Nest Thermostat Plugin Invalid message:     at CleartextStream.read [as _read] (tls.js:496:24)

  Yet Another Nest Thermostat Plugin Invalid message:     at CleartextStream.Readable.read (_stream_readable.js:320:10)

  Yet Another Nest Thermostat Plugin Invalid message:     at EncryptedStream.onCryptoStreamFinish (tls.js:301:47)

  Yet Another Nest Thermostat Plugin Invalid message:     at EncryptedStream.g (events.js:180:16)

  Yet Another Nest Thermostat Plugin Invalid message:     at EncryptedStream.EventEmitter.emit (events.js:117:20)

  Yet Another Nest Thermostat Plugin Invalid message:     at finishMaybe (_stream_writable.js:360:12)

  Yet Another Nest Thermostat Plugin Invalid message:     at endWritable (_stream_writable.js:367:3)

  Yet Another Nest Thermostat Plugin Invalid message:     at EncryptedStream.Writable.end (_stream_writable.js:345:5)

  Yet Another Nest Thermostat Plugin Invalid message:     at EncryptedStream.CryptoStream.end (tls.js:643:31)

  Yet Another Nest Thermostat Plugin Invalid message:     at Socket.onend (_stream_readable.js:483:10)

This happens probably about 1-2x per day.

Cheers.
Alphaman
Posts: 38
Joined: Sat Jun 07, 2014 11:10 pm

Re: New NEST Plugin ready for general use

Post by Alphaman »

My Nest occasionally (once or twice a week, or sometimes not for a couple or three weeks) will drop off the wifi network. Sometimes I won't notice that it's gone offline for 20 hours or more. (And yes, I've gone through all of Nest's troubleshooting recommendations and also contacted support, but the stupid thermostat simply won't connect to the wifi network that it was previously connected to without me telling it to do so by hand. Dumb programming, Nest.)
I'd like to create a trigger that would send me a notification (email/sms/voice) when the thermostat couldn't be communicated with, but I can't find anything in this plugin that will trigger such a trigger. Am I missing something simple?
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: New NEST Plugin ready for general use

Post by kw123 »

Alphaman: try FINGSCAN... you can setup a trigger for any IP device(home or away condition).

for your situation:
Setup an "away" EVENT#2 (in this screen shot example) in FINGSCAN/plugin/config for the NEST device, use timeout ~ 15 minutes to avoid false positives.. see attached image for a configuration for my SamsungTV (make sure event is enabled , in the screen shot its OFF)
I get an away event if its down for more than 15 minutes.
Then setup a trigger on a FINGSCAN event and pick AWAY-EVENT# 2 (in this example), and as action do an email etc. see other screen shot.


Install:
here the FINGSCAN plugin page: http://forums.indigodomo.com/viewtopic. ... &start=240
download FINGSCAN plugin and FING from http://overlooksoft.com/getfing4mac.
first install FING (don't start it), then FINGSCAN. Installation is straight forward, just double click the plugin
Go into FINGSCAN plugin config, set your MAC password (FING needs it to run properly) and setup the EVENT as described above

you also get a complete listing of all IP devices and can set triggers on e.g. IP number changes or a new device connected to your network.


Karl

PS:
if you have "findMyiDevices" you could also use proximity as and AND or OR for the EVENTS. If you have an ASUS router, you also get information on the WiFi state of your devices.


attached also a very preliminary how to install, configure FINGSCAN.PDF.zip ... still working on it: https://www.dropbox.com/s/1zpl142jq10kow1/FINGSCAN.pdf
Attachments
Screen Shot 2014-08-03 at 11.23.07 PM.png
Screen Shot 2014-08-03 at 11.23.07 PM.png (38.03 KiB) Viewed 4826 times
Screen Shot 2014-08-03 at 11.16.34 PM.png
Screen Shot 2014-08-03 at 11.16.34 PM.png (87.41 KiB) Viewed 4826 times
Alphaman
Posts: 38
Joined: Sat Jun 07, 2014 11:10 pm

Re: New NEST Plugin ready for general use

Post by Alphaman »

Thanks Karl -- fingscan seems to be working for me, though my Nest hasn't gone offline since.

On the base topic, I'm seeing the same truncated text resulting in "Invalid message:" errors from my Nest, too. Here's a sample of an "Away = False" transaction:

Code: Select all

  Yet Another Nest Thermostat Plugin [Downstairs thermostat] away mode was changed to False
  Yet Another Nest Thermostat Plugin About to request: http://127.0.0.1:13243/?deviceSerial=02AA01ACxxxxxxLS&operation=set&propertyName=away&setValue=False
  Yet Another Nest Thermostat Plugin About to request: http://127.0.0.1:13243/?deviceSerial=02AA01ACxxxxxxLS&operation=set&propertyName=away&setValue=False
  Yet Another Nest Thermostat Plugin ion_time":1386119165966,"num_thermostats":"2","structure_area":232.258,"away_setter":0,"user":"user.** Set away to false

  Yet Another Nest Thermostat Plugin Invalid message: ion_time":1386119165966,"num_thermostats":"2","structure_area":232.258,"away_setter":0,"user":"user.** Set away to false

  Yet Another Nest Thermostat Plugin .02AA01ACxxxxxxLS"],"fabric_ids":[],"clutches":[],"$version":"1836886836","$timestamp":"140769367083{"touched_by":{"touched_b["device.02AA01ACxxxxxxLS"],"sw{"touched_by":{"touched_by":6,"touched_":232.258,"user":"user.xxxxxx","devices":["devic{"touched_by":{"touched_by":6,"touched_id":"myPhone"},"dr_re:1386119165966,"num_thermostats":"2","structure_area":232.258,"away_setter"y":6,"touched_id":"myPhone"},"dr_reminder_enabled":false,"renovation_date":"2010","country_coded":false,"name":"207","postal_code":"35xxx","creation_time":1386119165966,"num_thermostats":"2","structure_area":232.,"serial":"408a6db0-5c80-11e3-90e5-12313xxxxxxx"}

  Yet Another Nest Thermostat Plugin Invalid message: .02AA01ACxxxxxxLS"],"fabric_ids":[],"clutches":[],"$version":"1836886836","$timestamp":"140769367083{"touched_by":{"touched_b["device.02AA01ACxxxxxxLS"],"sw{"touched_by":{"touched_by":6,"touched_":232.258,"user":"user.xxxxxx","devices":["devic{"touched_by":{"touched_by":6,"touched_id":"myPhone"},"dr_re:1386119165966,"num_thermostats":"2","structure_area":232.258,"away_setter"y":6,"touched_id":"myPhone"},"dr_reminder_enabled":false,"renovation_date":"2010","country_coded":false,"name":"207","postal_code":"35xxx","creation_time":1386119165966,"num_thermostats":"2","structure_area":232.,"serial":"408a6db0-5c80-11e3-90e5-12313xxxxxxx"}

  Yet Another Nest Thermostat Plugin ype":"family","topaz_enhanced_auto_away_enabled":false,"name":"207","postal_code":"35xxx","num_therm90e5-12313xxxxxxx"}

  Yet Another Nest Thermostat Plugin Invalid message: ype":"family","topaz_enhanced_auto_away_enabled":false,"name":"207","postal_code":"35xxx","num_therm90e5-12313xxxxxxx"}
Post Reply

Return to “User Plugins”