esphome / esphome/feature-requests

Array of objects feature

Open
#986 1 comment 1 reaction 0 assignees View on GitHub
component: web_server
Dominant language
No language data
Stars
450
Forks
29
PR merge metrics
No merged PRs in 30d

Description

I was looking for any way to create an array of jsons to send as body of a http post.
In the case where a device is running more than one sensor I think that would be the cleanest solution
body: [
{
id: 'mytemp',
value:50
},
{
id: 'myhum',
value:60
}
]

I tried to build this json using the actual api but is it not possible without a custom lambda

**Additional context**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.