Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions athom-smart-plug-v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ substitutions:
relay_restore_mode: RESTORE_DEFAULT_ON
# Current Limit in Amps. AU Plug = 10. IL, BR, EU, UK, US Plug = 16.
current_limit : "16"
# Minimum Voltage before turning off the switch output.
minimum_voltage: "90"
# Define a domain for this device to use. i.e. iot.home.lan (so device will appear as athom-smart-plug-v2.iot.home.lan in DNS/DHCP logs)
dns_domain: ""
# Set timezone of the smart plug. Useful if the plug is in a location different to the HA server. Can be entered in unix Country/Area format (i.e. "Australia/Sydney")
Expand Down Expand Up @@ -201,6 +203,10 @@ sensor:
name: "Voltage"
filters:
- throttle_average: ${sensor_update_interval}
on_value_range:
- below: ${minimum_voltage}
then:
- switch.turn_off: relay

power:
name: "Power"
Expand Down
6 changes: 6 additions & 0 deletions athom-smart-plug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ substitutions:
sensor_update_interval: 10s
# Current Limit in Amps. AU Plug = 10. IL, BR, EU, UK, US Plug = 16.
current_limit : "10"
# Minimum Voltage before turning off the switch output.
minimum_voltage: "90"
# Define a domain for this device to use. i.e. iot.home.lan (so device will appear as athom-smart-plug-v2.iot.home.lan in DNS/DHCP logs)
dns_domain: ""
# Set timezone of the smart plug. Useful if the plug is in a location different to the HA server. Can be entered in unix Country/Area format (i.e. "Australia/Sydney")
Expand Down Expand Up @@ -216,6 +218,10 @@ sensor:
accuracy_decimals: 1
filters:
- skip_initial: 2
on_value_range:
- below: ${minimum_voltage}
then:
- switch.turn_off: relay

power:
name: "Power"
Expand Down
6 changes: 6 additions & 0 deletions athom-wall-outlet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ substitutions:
relay_restore_mode: RESTORE_DEFAULT_OFF
# Current Limit in Amps. AU Plug = 10. IL, BR, EU, UK, US Plug = 16.
current_limit : "16"
# Minimum Voltage before turning off the switch output.
minimum_voltage: "90"
# Define a domain for this device to use. i.e. iot.home.lan (so device will appear as athom-smart-plug-v2.iot.home.lan in DNS/DHCP logs)
dns_domain: ""
# Set timezone of the smart plug. Useful if the plug is in a location different to the HA server. Can be entered in unix Country/Area format (i.e. "Australia/Sydney")
Expand Down Expand Up @@ -191,6 +193,10 @@ sensor:
name: "Voltage"
filters:
- throttle_average: ${sensor_update_interval}
on_value_range:
- below: ${minimum_voltage}
then:
- switch.turn_off: relay

power:
name: "Power"
Expand Down