Blog: Peđina beležnica, 23.Dec.2022, 20:34
ESPHome: Sending sensor data to remote URL
Izvor: https://pedja.supurovic.net/esphome-sending-sensor-data-to-remote-url
It is common need to send data read from sensor or states of device to some remote location, like web site or database. ESPHome allows doing that, and it works pretty well, once you find out how to do it.
For sending data, you can use HTTP GET or POST method. As data usually has some complexity, I prefer using POST and send all info as JSON structure. That is universal way.
First thing you have to use is to include http_request component into code:
http_request:
id: http_request_data
useragent: esphome/device
timeout: 10s
You have to set id for component so you can access it later. […]
[ ... vidi ceo članak ... ]
Related posts:
ESPHome: Showing Project Name and Version as Text Sensors
Example: How to use ESPHome Select Component
Resolving problem flashing ESPHome into Amica NodeMCU with CP2102
Nastavak na Peđina beležnica...










