Need some help: I have a pellet oven that I am trying to improve my integration to. I have a python tool with which I can query status on various elements in the oven controls (through UDP) - and it returns a long text output like the one shown below;
operating_data/time=23/10-20 09:19:28
operating_data/boiler_temp=17.1
operating_data/smoke_temp=165.3
operating_data/return_temp=999.9
operating_data/dhw_temp=177.8
operating_data/external_temp=0.0
operating_data/t6_temp=0.0
operating_data/t7_temp=0.0
operating_data/distance=999
operating_data/photo_level=100
operating_data/shaft_temp=36.8
operating_data/milli_ampere=30
operating_data/oxygen=20.1
operating_data/flow1=0
operating_data/flow2=0
operating_data/flow3=0
operating_data/flow4=0
operating_data/power_pct=0
operating_data/power_kw=0.0
operating_data/oxygen_ref=0.0
operating_data/boiler_ref=20.0
operating_data/mean_out_temp=0.0
operating_data/dhw_ref=0.0
operating_data/forward_ref=0.0
operating_data/sun2_temp=0.0
operating_data/sun_dhw_temp=0.0
operating_data/sun_surplus_temp=0.0
operating_data/pressure=0.00
operating_data/air_flow=0
operating_data/sun_temp=0.0
operating_data/house_valve_state=2
operating_data/chill_out=0.0
operating_data/sun_pumpspeed=0
operating_data/sun_power_kw=0.0
operating_data/cloud_level=0
operating_data/forward_temp=0.0
operating_data/back_pressure=0
operating_data/t1_temp=0
operating_data/air_quality=0
operating_data/feed_low=2000
operating_data/feed_medium=270
operating_data/feed_high=350
operating_data/content=0
operating_data/state=20
operating_data/substate=0
operating_data/boiler_pump_state=0
operating_data/dhw_valve_state=0
operating_data/house_pump_state=0
operating_data/sun_pump_state=0
operating_data/sun_surplus_state=0
operating_data/ashbox_minutes=0.0
operating_data/ashbox_contact=0.0
operating_data/internet_uptime=100
operating_data/off_on_alarm=2
operating_data/contact2=1
operating_data/NA=1
operating_data/NA=0
operating_data/NA=1
operating_data/corr_medium=0
operating_data/NA=0
operating_data/NA=23
operating_data/compressor_clean=0.0
operating_data/fan_speed=0.0
I would like to convert this into JSON or similar - to be able to pick the field data I need and update OpenHab fields accordingly. The shown text output contain much more than what I need - but it is more efficient to get it all in one go - and then do the item handling in OH - instead of calling the UDP-API once for all the fields I need.
Any ideas how to do this in OH ?
When I call the UDP API for the oven (in Python), I simply run a “Thing” in OH which executes the Python command. The text string is the run-output of that.