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 Aug 30, 2024
1 parent 63cf215 commit c242bac
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions athom-smart-plug-v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,25 +119,6 @@ globals:
restore_value: yes
initial_value: "3"

select:
- platform: template
name: "Power On State"
id: "power_mode"
optimistic: true
options:
- Always Off
- Always On
- Restore Power Off State
on_value:
then:
- lambda: |-
id(restore_mode)=i+1;
- id: restore_mode
type: int
restore_value: yes
initial_value: "3"

select:
- platform: template
name: "Power On State"
Expand Down Expand Up @@ -399,4 +380,4 @@ time:
then:
- text_sensor.template.publish:
id: device_last_restart
state: !lambda 'return id(sntp_time).now().strftime("%a %d %b %Y - %I:%M:%S %p");'
state: !lambda 'return id(sntp_time).now().strftime("%a %d %b %Y - %I:%M:%S %p");'

0 comments on commit c242bac

Please sign in to comment.