martijnvwezel / watermeter-esphome

18 stars 7 forks source link

Create custom interval polling #2

Closed martijnvwezel closed 6 months ago

martijnvwezel commented 10 months ago

Using a yaml config changing the update time. Because you do not want so sent updates faster than a second. The yaml file only needs seconds and not seconds.

How yaml should look:


globals:
  - id: polling_time_sec
    type: int
     # 5*60 = 5min
    initial_value: "300"
martijnvwezel commented 6 months ago

Done with merge wen we went to yaml