I have a sun heating installation that is being monitored by ReSol VBUS. I have used this to create a web service:
This works great, but then I need to create sensors for all of the entities. I wonder if it is possible to create sensors dynamically based on the JSON array? Otherwise, I will need to manually create all 34 sensors with a sensor template.
[
{
"id": "00_0010_2271_10_0100_000_4_0",
"name": "System date",
"rawValue": 690037497
},
{
"id": "00_0010_2271_10_0100_004_2_0",
"name": "Temperature sensor 1",
"rawValue": 36
},
.
.
.
.
.
{
"id": "00_0010_2271_10_0100_072_1_1",
"name": "Error: Sensor fault",
"rawValue": 0
}
]
I want to create sensor with “name” and assign the measurement from “rawValue”