1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Feat/component poller suspend (#5423)

This commit is contained in:
De Cock Xavier
2023-10-02 22:25:13 +02:00
committed by GitHub
parent 589b9e10b2
commit a33b8abce8
5 changed files with 104 additions and 0 deletions

View File

@@ -3566,6 +3566,22 @@ button:
name: Midea Power Inverse
on_press:
midea_ac.power_toggle:
- platform: template
name: Poller component suspend test
on_press:
- component.suspend: myteleinfo
- delay: 20s
- component.update: myteleinfo
- delay: 20s
- component.resume: myteleinfo
- delay: 20s
- component.resume:
id: myteleinfo
update_interval: 2s
- delay: 20s
- component.resume:
id: myteleinfo
update_interval: !lambda return 2500;
- platform: ld2410
factory_reset:
name: "factory reset"