Event handlers now return arrays - new ST platform's issue?


(Yves Racine) #1

Hello,

I wonder if anybody is experiencing this issue while executing smartapps in the past hours.

I have a new smartapp that subscribes to event handlers for getting many device attributes’s values at runtime.

For example:

def heatTemp = ecobee.currentHeatingSetpoint
def coolTemp = ecobee.currentCoolingSetpoint
def ecobeeHumidity = ecobee.currentHumidity

def outdoorHumidity = outdoorSensor.currentHumidity
def outdoorTemp = outdoorSensor.currentTemperature
String ecobeeMode = ecobee.currentThermostatMode

Before, I used to get the values directly. Now I get them as arrays. I had to modify my code recently to

def heatTemp = ecobee.currentHeatingSetpoint[0]
def coolTemp = ecobee.currentCoolingSetpoint[0]
def ecobeeHumidity = ecobee.currentHumidity[0]

def outdoorHumidity = outdoorSensor.currentHumidity
def outdoorTemp = outdoorSensor.currentTemperature
String ecobeeMode = ecobee.currentThermostatMode[0]

In order to get the same values as before.

It seems that my old smartapps are not having the same issue.

Is it related to a ST platform change in their platform?

Regards.