Skip to content

Commit 2873361

Browse files
swoboda1337claude
andcommitted
[cookbook] Fix power_meter action and sensor ID references
- Change `pulse_counter.set_total_pulses` to `pulse_meter.set_total_pulses` (the cookbook uses pulse_meter, not pulse_counter) - Change `power_id: sensor_energy_pulse_meter` to `power_id: sensor_pulse_meter` (matches the sensor ID defined earlier in the cookbook) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f5986ca commit 2873361

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/cookbook/power_meter.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ api:
130130
variables:
131131
new_total: int
132132
then:
133-
- pulse_counter.set_total_pulses:
133+
- pulse_meter.set_total_pulses:
134134
id: sensor_pulse_meter
135135
value: !lambda 'return new_total * 1000;'
136136
```
@@ -146,7 +146,7 @@ sensor:
146146
- platform: total_daily_energy
147147
name: 'Total Daily Energy'
148148
id: sensor_total_daily_energy
149-
power_id: sensor_energy_pulse_meter
149+
power_id: sensor_pulse_meter
150150
unit_of_measurement: 'kWh'
151151
state_class: total_increasing
152152
device_class: energy

0 commit comments

Comments
 (0)