Hello,
can you help me with some automations?
- I tried making an automation that turns on my bedside light 15 minutes before alarm, but it does not work.
Any idea why? It just didn't do anything.
alias: TRETAKT Pre-Alarm Light
description: ""
triggers:
- value_template: >-
{{ (states('sensor.pixel_8_pro_next_alarm') | int(0)) -
(as_timestamp(now()) * 1000) <= 900000 }}
trigger: template
conditions: []
actions:
- target:
device_id: TRETAKT_ID
action: switch.turn_on
data: {}
- delay: "00:02:00"
- target:
device_id: TRETAKT_ID
action: switch.turn_off
data: {}
mode: single
- Also, would it be possible to have a hall light and either with it's built-in motion sensor or using external motion sensor, it would turn on, but:
- only turn on when it's dim (light sensor? or pre-defined timeframe?)
- otherwise during the day stay off
- turn on with lower brightness during the night
- I bought some fingerbots and haven't got them as of yet - I am hoping that I can chain my TRETAKT power switch with the Fingerbot:
- manually press button on my phone
- which turns on TRETAKT
- and Fingerbot clicks with 5 seconds delay after TRETAKT
Thanks a lot