I know this thread is a little old but I only just joined this forum. I have an idea from a logic point of view but am unsure of the implementation (or if its possible)
Could you format the json response as a single string with some sort of a separator or separators (I use , and ; a lot with PowerShell) then return this “string” as a value and split the values back out in a script on the HA side?
Hi,
I finally decided to go the other way around: made a python script that manages the data and send commands/events to HA.
The problem with your solution, if I understand it correctly, is that it isn’t possible to assign those values to attributes of entities in HA, unless through a custom sensor, as previously mentioned.
But I may be wrong…
I was trying to interface with Telegram: that was before I started modifying hass-telebot, that’s the script. I will share my version as soon as it gets a little tidier…