by chance if you are updating, did you remove the old copy from Matt’s version. First time, I set up Kurt’s github and installed, I had two version of bitbar in my smartapps in IDE. I had to delete the old version.
One can also verify that one has the correct endpointSecret and endpointURL strings in the Smartthings IDE. Click the following order below in the SmartThings IDE:
Top of the Page: Click My Locations
Bottom of the Page: Installed SmartApps List SmartApps
Locate the BitBar Output App link and click it.
Copy & Paste the endpointSecret and endpointURL strings using TextEdit into the the ST_Python_Logic.cfg file without quotes. This file should be located in the BitBar plugins directory.
When watching the Live Logging in the IDE, it looks like you have to save the SmartApp in order for it to log into the IDE, which makes sense. I did that and the info popped up in the logging.
Did have a question, and I was looking the python script and didn’t see anything obvious as to why, but I am not getting the temperature in the menu for the thermostat either when it is cooling or when idle, but it does display ok in the Temp Sensor though. Any idea?
It looks like you have mode set to Heat:Cool right? Perhaps the code doesn’t handle that. If I remember correctly, the attributes in the Nest API for the setpoints are different for Heat:Cool versus Heat and Cool alone. I got that from WebCoRE.
@kurtsanders While we’re on the Nests, an issue persists from the original version of this code in that Last Event is set to the same value for multiple Nests rather than individually. Not sure if that can be fixed?
I have an Ecobee thermostat that correctly displays the temperature in the menubar. I cannot imagine why SmartThings would not provide the current temp for these thermostat API’s?
@Nezmo: I will check into the last event bug. I have two thermostats and this occurs with mine as well!
Nest has Auto (which switches between heat and cool automatically), Heat, Cool and Off. I learned that the setpoint attributes for Auto are physically different from the Heat and Cool setpoints. I’m guessing that’s the issue here, ie, the code is only looking for the ‘standard’ Heat or Cool setopints, not the Auto setpoints. I hope I’m making sense.
AUTO uses coolingSetpoint and heatingSetpoint
HEAT uses thermostatSetpoint
COOL uses thermostatSetpoint
If your Nest is set to Heat or Cool (not Auto) then the setopint temps show correctly.
@Nezmo: The code behind what the Last Event represents is unknown, and appears to be the same time span for each thermostat. I checked the capabilities of the Thermostat device handler and their isn’t any information for that value or any variable that contains a lastEventOperation. I thought that it might represent when the HVACS last active, but that isn’t the case.
I have removed this erroneous value from the BitBar display in the updated python script. You will need to download the updates python script.
I have also set my Ecobee thermostat to Auto Mode and the BitBar menu shows the current temp. I am puzzled why your Nest is not providing a reading?
It may be the issue is unique to the Nest. Thanks for looking in to it. I don’t personally ever use the Auto setting so I don’t see this issue. It was @mtuckman that raised the problem.
Not sure why I have it in Auto mode, it isn’t like there is a chance of needing the Heat in Florida with the exception of maybe 18 days in the middle of what we think of “Winter”!