Skip to content

Commit

Permalink
Update athom-smart-plug-v2.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
tarontop authored Sep 19, 2024
1 parent f1da7cc commit 6b23658
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions athom-smart-plug-v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ substitutions:
# Enable or disable the use of IPv6 networking on the device
ipv6_enable: "false"
# Hide the ENERGY sensor that shows kWh consumed, but with no time period associated with it. Resets when device restarted and reflashed.
hide_energy_sensor: "true"
hide_energy_sensor: "false"
# Specifies whether pins should be initialised as early as possible to known values. Recommended value is false where switches are involved, as these will toggle when updating the firmware or when restarting the device. Defaults to true.
early_pin_init: "true"

Expand Down Expand Up @@ -210,6 +210,7 @@ sensor:
name: "Energy"
id: energy
unit_of_measurement: kWh
internal: ${hide_energy_sensor}
filters:
- throttle: ${sensor_update_interval}
# Multiplication factor from W to kW is 0.001
Expand All @@ -222,7 +223,7 @@ sensor:
id(total_energy) += current_energy_value - previous_energy_value;
previous_energy_value = current_energy_value;
id(total_energy_sensor).update();
# internal: ${hide_energy_sensor}
apparent_power:
name: "Apparent Power"
Expand Down

0 comments on commit 6b23658

Please sign in to comment.