Hi all, very new here, managed to get my RF sockets working via the card, now want to automate
Not sure about the action for my switched socket, could somebody let me know what I have missed?
Re Dave
automation:
- alias: 'Send notification when sun rises'
hide_entity: False
trigger:
platform: sun
event: sunrise
offset: '+00:00:00'
action:
service: notify.smtp_gmail
data:
title: 'PI Sender Sunrise'
message: 'Sunrise'
- alias: 'Send notification when sun sets'
trigger:
platform: sun
event: sunset
offset: '+00:00:00'
action:
service: notify.smtp_gmail
data:
title: 'PI Sender Sunset'
message: 'Sunset'
- alias: 'Turn On Socket after 21:00'
hide_entity: False
trigger:
platform: time
after: '21:30:00'
condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- service: switch.socket_1.turn_on
switch:
platform: rpi_rf
gpio: 17
switches:
Socket_1:
protocol: 1
pulselength: 184
code_on: 349491
code_off: 349500