bsileo / hubitat_poolcontroller

Integration from a SmartThings or Hubitat hub to nodejs_poolcontroller
MIT License
8 stars 5 forks source link

Spa Temperature seems wrong #18

Closed davthomaspilot closed 3 years ago

davthomaspilot commented 3 years ago

I'm trying to have Hubitat let me know when my spa is hot enough to enjoy.

image

but the temperature is not correct in the Spa device page:

image

I set up an action to speak via an Echo:

image

But it says spa temperature is 55 degrees.

davthomaspilot commented 3 years ago

Right now, spa is on, not pool. But pool temperature in the device page shows the spa temperature: image

I change the action in Echo Speaks to look at pool temperature instead of spa temperature. Now, the EchoSpeaks action says "pool temperature is now 80 degrees"

davthomaspilot commented 3 years ago

I think a sendEvent for temperature is needed.

I added this code fragment

    if (temps.waterSensor1) {

        logger("Water temperature is ${temps.waterSensor1.value}") 
         sendEvent([name: "temperature", value: temps.waterSensor1.value.toInteger(), unit: state.units, isStateChange:true])
         //logger(temps.waterSensor1.value)
     }

In Pool Controller Body, parseTemps function. Now, Rules and EchoSpeaks actions get triggered when I do a refresh() (and the trigger criteria is met).

Does the driver poll via an api to get temperatures, or can it get notifications when a parameter of interest changes?