I have an automation, that increases the counter whenever it sees a binary_sensor
swith to on
.
alias: Dujų Skaitliuko Skaičiuoklė
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.pulse_detected
from: "off"
to: "on"
condition: []
action:
- service: counter.increment
data: {}
target:
entity_id: counter.duju_skaitliukas
mode: single
Most of the time this works fine. However sometimes the counter is increased by 9
.
For example here the binary_sensor.pulse_detected
changed to on
three times:
But the counter first increased by 9 and then two times by 1:
The automation was triggered correctly three times:
And the counter is defined with step: 1
Anyone experienced something similar?