Skip to content

Commit

Permalink
Update IR Candles
Browse files Browse the repository at this point in the history
  • Loading branch information
untergeek committed Oct 18, 2024
1 parent 036cab6 commit 4de07ef
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 4 deletions.
30 changes: 30 additions & 0 deletions template/IR/older_candles.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
# Older-style Candles (no dancing wick) IR Control
switch:
- platform: template
name: "Older Candles"
id: older
optimistic: True
# pronto older_candles already have 15 code repeats built-in
turn_on_action:
- <<: !include pronto/older_candles/on.yaml
turn_off_action:
- <<: !include pronto/older_candles/off.yaml

button:
- platform: template
name: Forcibly Send OFF
on_press:
then:
- <<: !include pronto/older_candles/off.yaml
- switch.template.publish: # Also turn OFF the associated switch
id: older
state: OFF
- platform: template
name: Forcibly Send ON
on_press:
then:
- <<: !include pronto/older_candles/on.yaml
- switch.template.publish: # Also turn ON the associated switch
id: older
state: ON
26 changes: 22 additions & 4 deletions template/IR/sterno_smart_ir_candles.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
# Sterno Smart Candles IR Control
# vars:
# candle_name:
# smart_candle_name:

substitutions:
candle_name: Sterno Smart Candles
smart_candle_name: Sterno Smart Candles

switch:
- platform: template
name: "${candle_name}"
name: "${smart_candle_name}"
id: sterno_candles
optimistic: True
turn_on_action:
Expand Down Expand Up @@ -46,7 +46,7 @@ switch:
id: sterno_candles
state: OFF
- platform: template
name: "${candle_name} - Hi/Lo Dimmer"
name: "${smart_candle_name} - Hi/Lo Dimmer"
# Counterintuitive, perhaps. But when the dimmer is ON, the lights are dim.
id: sterno_dimmer
turn_on_action: # If not on, turn ON the candles, then turn ON dimming
Expand All @@ -73,3 +73,21 @@ switch:
repeat:
times: 3
wait_time: 0ms

button:
- platform: template
name: Forcibly Send OFF
on_press:
then:
- <<: !include pronto/sterno_candles/off.yaml
- switch.template.publish: # Also turn OFF the associated switch
id: sterno_candles
state: OFF
- platform: template
name: Forcibly Send ON
on_press:
then:
- <<: !include pronto/sterno_candles/on.yaml
- switch.template.publish: # Also turn ON the associated switch
id: sterno_candles
state: ON

0 comments on commit 4de07ef

Please sign in to comment.