And here is my flow as well:
[{“id”:“f606f7f7.8206f8”,“type”:“tab”,“label”:“weatherflow”,“disabled”:false,“info”:""},{“id”:“3e97bc6f.ce0eb4”,“type”:“udp in”,“z”:“f606f7f7.8206f8”,“name”:“weatherflow”,“iface”:"",“port”:“50222”,“ipv”:“udp4”,“multicast”:“false”,“group”:"",“datatype”:“utf8”,“x”:90,“y”:400,“wires”:[[“6c93301f.1dd0c”]]},{“id”:“6c93301f.1dd0c”,“type”:“json”,“z”:“f606f7f7.8206f8”,“name”:"",“property”:“payload”,“action”:“obj”,“pretty”:false,“x”:230,“y”:400,“wires”:[[“88c44c4.ca9beb”]]},{“id”:“b4daec4.77c721”,“type”:“api-call-service”,“z”:“f606f7f7.8206f8”,“name”:“home assistant”,“server”:“1bbb5a5d.ccfaf6”,“service_domain”:“variable”,“service”:“set_variable”,“data”:"",“mergecontext”:"",“x”:880,“y”:400,“wires”:[[“78d0ec54.a17a34”]]},{“id”:“78d0ec54.a17a34”,“type”:“debug”,“z”:“f606f7f7.8206f8”,“name”:"",“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“payload”,“x”:1050,“y”:400,“wires”:},{“id”:“88c44c4.ca9beb”,“type”:“switch”,“z”:“f606f7f7.8206f8”,“name”:"",“property”:“payload.type”,“propertyType”:“msg”,“rules”:[{“t”:“eq”,“v”:“device_status”,“vt”:“str”},{“t”:“eq”,“v”:“hub_status”,“vt”:“str”},{“t”:“eq”,“v”:“obs_air”,“vt”:“str”},{“t”:“eq”,“v”:“obs_sky”,“vt”:“str”},{“t”:“else”}],“checkall”:“true”,“repair”:false,“outputs”:5,“x”:350,“y”:400,“wires”:[[“875d2fac.df206”],[“875d2fac.df206”],[“e73ca3b2.2eb4c”],[“c442ff16.353ff”],[“a9afd4fa.00de88”]],“outputLabels”:[“device status”,“hub status”,"","",""]},{“id”:“4c429d87.aed5e4”,“type”:“function”,“z”:“f606f7f7.8206f8”,“name”:“device status”,“func”:“var newmsg = { “payload”: { “data”: { “variable”: msg.payload.serial_number.toLowerCase(), “value”: msg.payload.rssi, “attributes”: msg.payload } } };\nreturn newmsg;”,“outputs”:1,“noerr”:0,“x”:670,“y”:340,“wires”:[[“b4daec4.77c721”]]},{“id”:“a9afd4fa.00de88”,“type”:“function”,“z”:“f606f7f7.8206f8”,“name”:“attr template”,“func”:“var newmsg = { “payload”: { “data”: { “variable”: msg.payload.type, “attributes”: msg.payload } } };\nreturn newmsg;”,“outputs”:1,“noerr”:0,“x”:670,“y”:460,“wires”:[[“b4daec4.77c721”]]},{“id”:“e73ca3b2.2eb4c”,“type”:“function”,“z”:“f606f7f7.8206f8”,“name”:“obs air”,“func”:“var newmsg = { “payload”: { “data”: { “variable”: msg.payload.type, “value”: msg.payload.obs[0][2], “attributes”: msg.payload } } };\nreturn newmsg;”,“outputs”:1,“noerr”:0,“x”:650,“y”:380,“wires”:[[“b4daec4.77c721”]]},{“id”:“c442ff16.353ff”,“type”:“function”,“z”:“f606f7f7.8206f8”,“name”:“obs sky”,“func”:“var newmsg = { “payload”: { “data”: { “variable”: msg.payload.type, “value”: msg.payload.obs[0][1], “attributes”: msg.payload } } };\nreturn newmsg;”,“outputs”:1,“noerr”:0,“x”:660,“y”:420,“wires”:[[“b4daec4.77c721”]]},{“id”:“875d2fac.df206”,“type”:“change”,“z”:“f606f7f7.8206f8”,“name”:“set variable”,“rules”:[{“t”:“change”,“p”:“msg.payload.serial_number”,“pt”:“msg”,“from”:"-",“fromt”:“str”,“to”:"_",“tot”:“str”}],“action”:"",“property”:"",“from”:"",“to”:"",“reg”:false,“x”:510,“y”:340,“wires”:[[“4c429d87.aed5e4”]]},{“id”:“1bbb5a5d.ccfaf6”,“type”:“server”,“z”:"",“name”:“Home Assistant”,“url”:“https://**",“pass”:"”}]
Feel free to improve
Rgd’s
Mats