Page 1 of 1

Plugin stops working after outage

PostPosted: Sun Oct 23, 2016 6:54 pm
by jay (support)
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).

Re: Plugin stops working after outage

PostPosted: Mon Oct 24, 2016 3:11 am
by durosity
Perhaps it's fixed in indigo 7?

*flees!*

Re: Plugin stops working after outage

PostPosted: Mon Oct 24, 2016 3:18 am
by mat
:shock:

crying!

Re: Plugin stops working after outage

PostPosted: Mon Oct 24, 2016 7:49 am
by jalves
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.

Re: Plugin stops working after outage

PostPosted: Wed Nov 09, 2016 11:24 am
by petematheson
Jeff, how do you schedule a plugin restart please?
I think I need to do this twice a day at the moment!

Re: Plugin stops working after outage

PostPosted: Wed Nov 09, 2016 11:25 am
by nlagaros
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!

Re: Plugin stops working after outage

PostPosted: Wed Nov 09, 2016 11:32 am
by petematheson
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 :)

Re: Plugin stops working after outage

PostPosted: Wed Nov 09, 2016 12:49 pm
by jalves
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()

Re: Plugin stops working after outage

PostPosted: Thu Nov 24, 2016 7:56 am
by nlagaros
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.