Hello!
I have a sensor next_candle_lighting that returns 2024-04-19T23:16:00+00:00
I would like to make a sensor with a true false based on if next_candle_lighting is after 7pm. How do I do that?
Thank you in advance!
Hello!
I have a sensor next_candle_lighting that returns 2024-04-19T23:16:00+00:00
I would like to make a sensor with a true false based on if next_candle_lighting is after 7pm. How do I do that?
Thank you in advance!
Try this:
configuration.yaml
template:
- binary_sensor:
- name: Next Candle After 7pm
icon: mdi:candle
state: "{{ states('sensor.next_candle_lighting')|as_datetime > today_at('19:00:00') }}"
That did the trick! Thank You!