Flag for Packet Transport to only send once all values are updated #3502
Replies: 4 comments 6 replies
-
|
🏷️ I've automatically added the |
Beta Was this translation helpful? Give feedback.
-
|
Or alternatively implement |
Beta Was this translation helpful? Give feedback.
-
|
I use This way it only sends the packets when the corresponding sensors update. packet_transport:
- id: temp_sender
platform: ...
update_interval: never
sensors:
- temp_a
- temp_b
- temp_c |
Beta Was this translation helpful? Give feedback.
-
|
oh, I also misunderstood, sorry. Will think about the best way to approach it, but your initial idea sounds reasonable. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Component name
packet_transport
Link to component documentation on our website
https://esphome.io/components/packet_transport/
Describe the enhancement
I would like to have a flag for the packet_transport component, so that its update function will only execute once all mentioned sensors in the providers part were updated.
Currently the packet_transport provider component always sends all data.
A bool flag with a nice name (this is the hardest part i guess) could allow the ESPHome user to let the packet_transport component either send updates on each and every component or only on a final set of data.
Use cases
I am currently building a small ESPHome device with no connections to the outside world but a LoRa Module.
Current the device is using the packet_transport component to send the data to a receiving station to finally ingest the data into my HA.
It seems that the packets are often sent twice, because of me trying to make the battery last as long as possible (future improvements still coming).
Instead of wasting time waiting on the rather slow transport (and to reduce airtime in general) I'd prefer to let it only send data once all sensors in the provider section has been updated once.
Here's a demo config yaml:
Anything else?
Let me know what you think, challenge my approach. Maybe i'm just not getting it how to do it "the right way".
Beta Was this translation helpful? Give feedback.
All reactions