Skip to content

Commit

Permalink
Add output
Browse files Browse the repository at this point in the history
  • Loading branch information
EverythingSmartHome committed Feb 20, 2024
1 parent 6453dc8 commit 0d34691
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
19 changes: 19 additions & 0 deletions common/everything-presence-one-sen0395-beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,25 @@ light:
output: mmwave_led_output
entity_category: config
disabled_by_default: True

output:
- platform: template
id: mmwave_led_output
type: binary
write_action:
- switch.turn_off: mmwave_sensor
- delay: 1s
- if:
condition:
lambda: !lambda return state;
then:
- uart.write: "setLedMode 1 0"
else:
- uart.write: "setLedMode 1 1"
- delay: 1s
- uart.write: "saveConfig"
- delay: 3s
- switch.turn_on: mmwave_sensor

number:
- platform: template
Expand Down
19 changes: 19 additions & 0 deletions common/everything-presence-one-sen0395-stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,25 @@ light:
entity_category: config
disabled_by_default: True

output:
- platform: template
id: mmwave_led_output
type: binary
write_action:
- switch.turn_off: mmwave_sensor
- delay: 1s
- if:
condition:
lambda: !lambda return state;
then:
- uart.write: "setLedMode 1 0"
else:
- uart.write: "setLedMode 1 1"
- delay: 1s
- uart.write: "saveConfig"
- delay: 3s
- switch.turn_on: mmwave_sensor

binary_sensor:
- platform: gpio
name: mmWave
Expand Down

0 comments on commit 0d34691

Please sign in to comment.