Generate a device with json data

Hello,
I have a device sending this json data: (http://192.168.180.134/data.json)

{"software_version": "NRZ-2020-133", "age":"54", "sensordatavalues":[{"value_type":"SDS_P1","value":"0.90"},{"value_type":"SDS_P2","value":"0.70"},{"value_type":"BME280_temperature","value":"22.82"},{"value_type":"BME280_pressure","value":"98221.00"},{"value_type":"BME280_humidity","value":"52.27"},{"value_type":"samples","value":"4958986"},{"value_type":"min_micro","value":"28"},{"value_type":"max_micro","value":"20065"},{"value_type":"interval","value":"145000"},{"value_type":"signal","value":"-80"}]}

How can I get most of this data into one device, without generating a flow for each and every data entry, please?

Regards, Metatron

With http request app you can get these dat into individual variables.

Some examples;

1 Like

Hello,

thank you for your quick reply!
But doesn’t this procedure exactly mean, that I have to generate a flow for every single value?

Regards, Metatron

No you can do this with 1 flow, just put several http requests after another at the THEN part for every item you wish. In my example with the weather you see about 18 requests after another, which filled 18 variables

Hello,

I got your point! Thanks for the help, it is working now!

Regards, Metatron

So, please, what is the smoothest way, to get a better logic variable in a virtual device?
Copy it into a normal logic variable, first?

Regards, Metatron

Just like Homey Logics NumVars, you can select a BL NumVar as value of a VD

1 Like