Using indoor dew-point and node-red to control temperature/relative humidity

OK I just looked at the most recent InfluxDb-Logger code in Github, there isn't any writing of a 'valueState' in there.

Yes, I saw that. I wanted a quick and dirty ( since I don't have much stamina and am not familiar with Go and Hubitat nuances), so I cane up with the additions below based on how I saw valueBinary being set:

String valueState = ''

...

valueState = ('heating' == evt.value) ? '100i' : valueState

valueState = ('pending heat' == evt.value) ? '85i' : valueState

valueState = ('vent economizer' == evt.value) ? '65i' : valueState

valueState = ('idle' == evt.value) ? '50i' : valueState

valueState = ('fan only' == evt.value) ? '35i' : valueState

valueState = ('pending cool' == evt.value) ? '15i' : valueState

valueState = ('cooling' == evt.value) ? '0i' : valueState

data += ",unit=${unit} value=${value},valueBinary=${valueBinary},valueState=${valueState}"

...

These of course reflect my preferences. So. I guess I am all set.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.