I recently setup zwave2mqtt and my values for my thermostat Mode coming now like
“Cool” and “Heat”
Which is fine, however, I seem to have run in to an issue with the visibility in my sitemap. I am trying to have the temperature value for CoolSet only when the HVAC_Mode=“Cool”
Currently configured with the above, but that doesn’t work. If i do ==“Cool” that doesn’t seem to do it either. Wondering if there is an issue with escaping quotes in the visibility?
I am wondering if i should just use a js transform. That way I can strip off the quotes. Also going going to open an issue on the zwave2mqtt to see if there is a reason that the values have to come across with quotes.
In the zwave2mqtt config, there are a couple options.
So it seems that when it sends any string it will come across with the quotes. Which I guess makes sense as we have all done our programming and know strings for the most part get wrapped in " or '.
Soo. with that being said. If it’s switched to json timed value. I wonder if it would still come in with quotes… guess im testing that next. If that doesn’t work. Maybe the best option will be to just do a js transform that strips the quotes and returns the raw value.
Seems like alot to get a sitemap items to show lol
Ok, so quick update. I did switch to doing the JSON-TimeValue combination. added the following transform to all things coming in from the zwave2mqtt.
,transformationPattern="JSONPATH:$.value"
Everything seems good now. I updated my site maps to take out the extra quotes. Added my visibility thing in. Now my temperature set value is only shown when the AC is on.