Plugin stops working after outage

Posted on
Sun Oct 23, 2016 6:54 pm
jay (support) offline
Site Admin
User avatar
Posts: 18185
Joined: Mar 19, 2008
Location: Austin, Texas

Plugin stops working after outage

I've noticed on quite a few occasions since installing the thermostat and plugin that whenever the Honeywell site becomes unavailable for a time (which happens all to frequently IMO), the plugin never recovers without a restart. Whenever Indigo tries to do anything it shows this in the event log:

Code: Select all
   Honeywell Error                 [Sun Oct 23 19:44:43 2016] Cannot read device data for: Living Room Thermostat


Even with debug turned on, that's all I get. The plugin restart takes a while (which implies that it's got an open network connection) and Indigo finally kills it. After a restart, I get:

Code: Select all
   Honeywell                       Your plugin version, v0.4.6, is current.
   Honeywell Debug                 [Sun Oct 23 19:48:26 2016] Thermostat: Living Room Thermostat, Enabled: True
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: temperatureInput1, Value: 0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: humidityInput1, Value: 0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: fanAllowedModes, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: fanMode, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: indoorHumidityStatus, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: indoorTemperatureStatus, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: macID, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: maxCoolSetpoint, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: maxHeatSetpoint, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: minCoolSetpoint, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: minHeatSetpoint, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: name, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: nextTime, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: outdoorHumidity, Value: 0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: outdoorHumidityAvailable, Value: False
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: outdoorHumidityStatus, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: scheduleCapable, Value: False
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: scheduleCoolSp, Value: 0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: scheduleHeatSp, Value: 0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: setpointStatus, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: thermostatAllowedModes, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: thermostatMode, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: thermostatModelType, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: thermostatVersion, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: lastUpdate, Value:
   Honeywell Debug                 Initializing thermostat device: Living Room Thermostat
   Honeywell                       [Sun Oct 23 19:48:26 2016] Processed plugin preferences.
   Honeywell Debug                 [Sun Oct 23 19:48:26 2016] Thermostat: Living Room Thermostat, Enabled: True
   Honeywell Debug                 Initializing thermostat device: Living Room Thermostat
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: lastUpdate, Value: 1477270106.76
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: macID, Value: 00D02D745E3E
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: name, Value: FIRST FLOOR
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: thermostatModelType, Value: MANHATTAN
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: thermostatVersion, Value: 02.09.02.00
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: hvacCoolerIsOn, Value: 1
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: thermostatAllowedModes, Value: AutoCool,AutoHeat,Cool,Heat,Off
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: thermostatMode, Value: AutoCool
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: setpointHeat, Value: 65.0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: setpointCool, Value: 74.0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: setpointStatus, Value: Temporary
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: nextTime, Value: 2000-01-01T19:30:00
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: temperatureInput1, Value: 74.0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: indoorTemperatureStatus, Value: Measured
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: humidityInput1, Value: 50.0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: indoorHumidityStatus, Value: Measured
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: fanAllowedModes, Value: Auto,On,Circulate
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: fanMode, Value: Auto
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: fanRunning, Value: True
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: maxCoolSetpoint, Value: 99.0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: maxHeatSetpoint, Value: 90.0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: minCoolSetpoint, Value: 50.0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: minHeatSetpoint, Value: 40.0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: outdoorHumidity, Value: 44.0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: outdoorHumidityStatus, Value: Measured
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: outdoorHumidityAvailable, Value: True
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: outdoorTemperature, Value: 76.0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: scheduleCapable, Value: True
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: scheduleCoolSp, Value: 76.0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: scheduleHeatSp, Value: 65.0
   Honeywell Debug                 Starting device: Living Room Thermostat
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: temperatureInput1, Value: 0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: humidityInput1, Value: 0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: fanAllowedModes, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: fanMode, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: fanRunning, Value: False
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: indoorHumidityStatus, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: indoorTemperatureStatus, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: macID, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: maxCoolSetpoint, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: maxHeatSetpoint, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: minCoolSetpoint, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: minHeatSetpoint, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: name, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: nextTime, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: outdoorHumidity, Value: 0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: outdoorHumidityAvailable, Value: False
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: outdoorHumidityStatus, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: scheduleCapable, Value: False
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: scheduleCoolSp, Value: 0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: scheduleHeatSp, Value: 0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: setpointStatus, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: thermostatAllowedModes, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: thermostatMode, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: thermostatModelType, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: thermostatVersion, Value:
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: lastUpdate, Value:
   Honeywell Debug                 Initializing thermostat device: Living Room Thermostat
   Honeywell Debug                 Method: runConcurrentThread
   Honeywell Debug                 Running Concurrent Thread

Oct 23, 2016, 7:48:57 PM
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: lastUpdate, Value: 1477270137.32
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: macID, Value: 00D02D745E3E
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: name, Value: FIRST FLOOR
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: thermostatModelType, Value: MANHATTAN
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: thermostatVersion, Value: 02.09.02.00
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: thermostatAllowedModes, Value: AutoCool,AutoHeat,Cool,Heat,Off
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: thermostatMode, Value: AutoCool
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: setpointStatus, Value: Temporary
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: nextTime, Value: 2000-01-01T19:30:00
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: temperatureInput1, Value: 74.0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: indoorTemperatureStatus, Value: Measured
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: humidityInput1, Value: 50.0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: indoorHumidityStatus, Value: Measured
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: fanAllowedModes, Value: Auto,On,Circulate
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: fanMode, Value: Auto
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: fanRunning, Value: True
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: maxCoolSetpoint, Value: 99.0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: maxHeatSetpoint, Value: 90.0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: minCoolSetpoint, Value: 50.0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: minHeatSetpoint, Value: 40.0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: outdoorHumidity, Value: 44.0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: outdoorHumidityStatus, Value: Measured
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: outdoorHumidityAvailable, Value: True
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: scheduleCapable, Value: True
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: scheduleCoolSp, Value: 76.0
   Honeywell Debug                 Updating Device: Living Room Thermostat, State: scheduleHeatSp, Value: 65.0


and eventually everything gets back to normal. Any idea what's causing it to wig out and require a restart? This is triggered whenever the plugin has trouble communicating with Honeywell - be it an outage on their site or something else (like my Spectrum Cable going out). At least it seems like it happens every time.

Oh, and during this time the thermostat seems to be working fine and communicating with the Honeywell site (i.e. outside temps updated, no warning that the wifi is down).

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Oct 24, 2016 3:11 am
durosity offline
User avatar
Posts: 4319
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Plugin stops working after outage

Perhaps it's fixed in indigo 7?

*flees!*

Computer says no.

Posted on
Mon Oct 24, 2016 3:18 am
mat offline
Posts: 769
Joined: Nov 25, 2010
Location: Cambridgeshire - UK

Re: Plugin stops working after outage

:shock:

crying!

Late 2018 mini 10.14

Posted on
Mon Oct 24, 2016 7:49 am
jalves offline
Posts: 744
Joined: Jun 16, 2013

Re: Plugin stops working after outage

I've seen the same thing. Since I've been having some difficulty with my wifi/internet connection recently I've resorted to using a schedule that restarts the plugin periodically.

Running Indigo 2023.2 on a 24" iMac M1), OS X 14.4
Jeff

Posted on
Wed Nov 09, 2016 11:24 am
petematheson offline
Posts: 847
Joined: Sep 14, 2014
Location: Southampton, UK

Re: Plugin stops working after outage

Jeff, how do you schedule a plugin restart please?
I think I need to do this twice a day at the moment!

Posted on
Wed Nov 09, 2016 11:25 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Plugin stops working after outage

There should be some log entries when the plugin craps out. Can you post or send them to me. Thanks.

petematheson wrote:
Jeff, how do you schedule a plugin restart please?
I think I need to do this twice a day at the moment!

Posted on
Wed Nov 09, 2016 11:32 am
petematheson offline
Posts: 847
Joined: Sep 14, 2014
Location: Southampton, UK

Re: Plugin stops working after outage

I don't normally see anything, but i've got debugging disabled.

Enabled it now so I'll wait for the plugin to crap out again :)

Posted on
Wed Nov 09, 2016 12:49 pm
jalves offline
Posts: 744
Joined: Jun 16, 2013

Re: Plugin stops working after outage

petematheson wrote:
Jeff, how do you schedule a plugin restart please?
I think I need to do this twice a day at the moment!


I use a python script that was supplied by another member of this board who's name escapes me at the moment. Anyway, simply create a repeating scheduled action for some period of time (I use 8 hours, but once a day is probably enough) and in the Actions tab use the following code:

Code: Select all
plugin = indigo.server.getPlugin("com.ssi.indigoplugin.Honeywell")
if plugin.isEnabled():
   plugin.restart()

Running Indigo 2023.2 on a 24" iMac M1), OS X 14.4
Jeff

Posted on
Thu Nov 24, 2016 7:56 am
nlagaros offline
Posts: 1646
Joined: Dec 20, 2010

Re: Plugin stops working after outage

I just posted an update -- Indigo 7 only -- that has some enhanced logic to deal with Honeywell website outages. Hopefully this alleviates the need for plugin restarts.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests