I have some data that I want to get into HA. The input is quite long, so with the RESTfull integration I am over the 256 char limit. When using grep period I get all the data I am looking for see below:
(for the curious people, this is the output of a windturbine in Wh).
How to do this in HA? Any pointers is appreciated.
I have it working for DAY only with the use of curl|grep|awk|sed but it is a bit long commandline and only for 1 sum, not for all.
The common pattern that I use for this sort of thing is to integrate using MQTT entities. I then use some external (python in my case) script tobang against the device and then publish JSON to an MQTT topic.
At that point you can have multiple MQTT sensor subscribing to the topic, each of which picks out the data item of interest. I do this for
Maxim one-sided bus temperature sensors
Weather station
32 channel power measurement
I like using MQTT as the integration technology because you can always just subsibe to the topic to see what’s going on for debugging.
I your case, I imagine there are tools or libraries around to parse the XML message and do stuff with the results that ultimately could be published to MQTT.
This is supposed to give me all the -period and -sum values as attribute and the -actual as a state if I understand it correctly.
If I leave out the line with value_template I get a State max length is 255 characters. error. Unfortunately the above sensor is leaving me with no data at all. What am I doing wrong?
Did you manage the connection with Winddelen? I would like to add this to my Home Assistant setup, but unfortunately I cannot find a lot if info about it. You are my only hope '