Geetings fellow OpenHAB’ers!
I am interested in setting an Item to
NULL using the REST API but it does not look like this is an option. I wanted to confirm my findings before I make larger changes.
The MCU backstory is that I was using the HTTP Binding and there were a few things that I didn’t like about that approach, so I instead switched to using a
bash script that fetches the content that I need using
curl, then I massage the data with
jq, and POST it to the OpenHAB REST API. I have several rules that I’ve written checking for
NULL values for Items and act accordingly. I could certainly rewrite the rules to handle different values to align with my changes. It’s preferable for me to set
NULL values for Items using the REST API if possible. In addition, I’d prefer
NULL for historical metrics of said Items.
To be clear, I don’t want to set a string value of “null”, I want
NULL. Some of these Items are Number types and I can’t set them to “null”.
The help is appreciated, as always. Thanks!