You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get the current temperature from my device and need help with the JSON syntax. Using MQTT Explorer is see the following under gym_ac/stat/RESULT
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm trying to get the current temperature from my device and need help with the JSON syntax. Using MQTT Explorer is see the following under gym_ac/stat/RESULT
{"IRHVAC":{"Vendor":"GREE","Model":1,"Mode":"Auto","Power":"Off","Celsius":"On","Temp":21,"FanSpeed":"Medium","SwingV":"Off","SwingH":"Off","Quiet":"Off","Turbo":"Off","Econo":"Off","Light":"On","Filter":"Off","Clean":"Off","Beep":"On","Sleep":-1}}
I'm trying to get the Temp value using the following command but it doesn't work:
"getCurrentTemperature":
{
"topic": "gym_ac/stat/RESULT",
"apply": "return JSON.parse(message).IRHVAC.Temp;"
}
I'll appreciate help and guidance.
Thanks,
Laurent
Beta Was this translation helpful? Give feedback.
All reactions