I’ve got another related question if you can spare a few minutes. I’ve used the information you have shared and have been able to read the temperature and humidity from my sensor. (Thank you again)
I’ve been playing around with trying to get both values from a single command line call but I just can’t seem to crack the right syntax. Using your help, the code below works fine but I wondered if it was possible, as a learning experience, to do this more efficiently? I’ve found samples on this but they all use JSON formatting and my data is a simple string, not JSON.
As far as I know it is not possible to do this in a more efficient way. The only option I see to change things on the sensor side, so that it reports in JSON and then you can use json_attributes.