Skip to content

Commit

Permalink
Move pulse meter flash trigger to total sensor
Browse files Browse the repository at this point in the history
Fixes #135
  • Loading branch information
gapple committed Dec 29, 2024
1 parent a0eebef commit fa901b0
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions components/pulse_meter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,6 @@ sensor:
icon: mdi:flash-outline
accuracy_decimals: 0
pin: ${pulse_pin}
on_raw_value:
then:
- light.turn_on:
id: led_red
- delay: 0.2s
- light.turn_off:
id: led_red
filters:
# multiply value = (60 / imp value) * 1000
# - multiply: 60
Expand All @@ -78,6 +71,11 @@ sensor:
# multiply value = 1 / imp value
# - multiply: 0.001
- lambda: return x * (1.0 / id(select_pulse_rate).state);
on_raw_value:
then:
- light.turn_on:
id: led_red
flash_length: 100ms

# Total day usage
- platform: total_daily_energy
Expand Down

0 comments on commit fa901b0

Please sign in to comment.