What I would like to have is a Pimatic device which updates some values by requesting a server. Requesting the ESP over HTTP like you do but getting a response with sensor values and with this update some variables.
Might be done with pimatic shell execute plugin and its devices like ShellSensor Device or ShellPresenceSensor Device. But you need an external script and some protocoll definition for the response to get it parsed. Too much for a non-developer.
If someone can support with a script would help.
May be for future it is a candidate for a feature request. Here my idea:
{
"id": "myWebSensor",
"name": "A web sensor",
"class": "WebSensor",
"protocoll": "json",
"request": "192.168.1.100/requestall",
"interval": 30000,
"button": true,
"debug": false,
"attributes": [
{
"name": "temperature",
"type": "float",
"acronym": "T",
"unit": "°C"
},
{
"name": "humidity",
"acronym": "H",
"unit": "%"
},
{
"name": "battery",
"acronym": "Battery",
"unit": "%"
}
],
"xAttributeOptions": [
{
"name": "temperature",
"displaySparkline": false
},
{
"name": "humidity",
"displaySparkline": false
},
{
"name": "battery",
"displaySparkline": false
}
]
}
The refresh button is optional and allows for requesting values on demand if interval is long for battery saving or set to infinite.