I figured how to use the RESTful sensor integration to fill one sensor with data including attributes under it. However, there’s an API i’m using which could be quite interesting in the amount of sensors and attributes.
Is it possible to use the below JSON template to make separate sensors out of “player1”, “player2” and “player3” and make “status” their value, while the rank and title is an attribute?
I can imagine a sensor being “sensor.gameinfo.player1”, but I don’t know how to achieve that, since the ‘name’ is hardcoded in the configuration at this moment.
{
"sensors": {
"player1": {
"status": "online",
"rank": 46,
"title": "Gold"
},
"player2": {
"status": "offline",
"rank": 22,
"title": "Bronze"
},
"player3": {
"status": "online",
"rank": 21,
"title": "Bronze"
}
}
}