I am attempting to use a state attribute to set a ozw.set_config_parameter. I am currently getting the following error Failed to call service ozw/set_config_parameter. '>' not supported between instances of 'str' and 'int'.
Below is my sample service data and a screenshot of the corresponding sensor data it’s referencing.
That part I’ve got. I’m unclear how to convert the string to an int in HomeAssistant. I’ve tried wrapping it in int(), removing the single quotes, played with brackets etc. The value seems to be a int and based on the script that is populating the data, it looks like this value is an int and also not a string.
I am able to manually execute the service with a “hardcoded” int. Sounds like I’ll be unable use this as desired until the bug is fixed in ozw. Do you know the proper place to file the bug? Is it in the QT5 Wrapper for OpenZWave github repo or the main OpenZWave repo?
Can I assume you are testing this using Dev Tools? If you put the service call in an automation with the template, it should work fine. It looks like it’s just a problem using Dev Tools.
Hmm, it wasn’t working with my automation, so I flipped over to DevTools to figure it out. I’ll give it another shot in the automations. I just setup Node-Red so I’ll give it a shot there as well.
Looks like everything is working! I originally tried the automation with the size data attribute which OZW didn’t like, then I went to troubleshooting in the Dev Tools. Once I removed the size element from the Automation, everything is working. I also got the Node-Red flow working!
Agreed. I would have thought the Dev Tools would have been the spot to play around with the templates… I distinctly remember giving up on a template, I think it may have been because of this.