Where can i find documentation that explains how some of this stuff works? Or can anyone advise on where this is going wrong?
Any help appreciated. (I know the test tag is not correct but what is the result of the get request, i’m missing some basic knowledge here.
1st of all the virtual device card is not used correctly.
At the ‘sensor’ field, you’re supposed to enter the capability you’d like.
Now it uses the value of the [Battery] tag, which can change!
So, in the ‘Sensor’ field, for the expected “battery” value, you’re supposed to enter the line measure_battery
Never use tags in there!
Then, the [Result] tag you used writes the battery level.
The valid range probably is 0 - 1 instead of 0 - 100
Idk why you used [Battery] for ‘watt_hours_day’, I think you should use measure_power as capability.
All official capabilities can be found here:
.
2nd, use timeline notification cards to make the data visible.
Connect one to each of the cards and pick the tag which shows the results.
To parse a part of a JSON result, you can use online tools like json formatter to find out https://jsonbeautifier.org/json-formatter/
Thanks, I was really looking for help the LOGIC Get card, i guess it should be returning a JSON object but how is that passed to the next card, to be parsed?
You selected the card for standard flows. Replace it with the one which has the tag symbol on it, to use it in advanced flow.
This card provides for a local tag called [Result] or something similar. That tag you can use in the “parse” card.
This tag will pass the complete JSON to the “parse” card.
Thanks Peter, i totally missed the distinction!
1 Like