#Prayer time automation
1 messages · Page 1 of 1 (latest)
what are you using as a trigger now?
I'm using fajr time as a trigger, but the time is not correctly trigger my light
Please share the YAML
To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.
alias: Fajar Prayer Time
description: ""
triggers:
- trigger: state
entity_id:
- sensor.islamic_prayer_times_fajr_prayer
from: null
to: null
conditions: []
actions:
- delay:
hours: 0
minutes: 45
seconds: 0
milliseconds: 0
- action: light.turn_on
metadata: {}
data:
transition: 300
target:
floor_id: aish_bedroom
- action: light.turn_on
metadata: {}
data:
transition: 150
brightness_pct: 100
target:
floor_id: al_bedroom
- if:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
then:
- action: light.turn_on
metadata: {}
data: {}
target:
floor_id: kitchen
entity_id: light.wiz_tunable_white
else:
- action: light.turn_off
metadata: {}
data: {}
target:
floor_id: kitchen
mode: single
please edit your post according to the message just above it (add code tags)
is that correct?
From which integration does sensor.islamic_prayer_times_fajr_prayer come from? And what is the value?
As you now trigger on every change of the sensor but not look at the value at all.
okay, so what is the value? And do you really want to trigger on it changing or do you actually want to do something with it's value?
i want to trigger when it changing as per the prayer time
for example, there are three time attribute for fajr prayer time, and it's trigger on 12.12 am instead of 04.57 am
how to set the trigger on 04.57 am
The value changed on 12:12, but the value indicates 4:57. So do you want t trigger when it changed or on the time of the value?
when the time at the value
If the integration did everything correct, you should be able to add it as entity in a time trigger.
triggers:
- trigger: time
at: sensor.islamic_prayer_times_fajr_prayer
alias: Fajar Prayer Time
description: ""
triggers:
- trigger: time
at: sensor.islamic_prayer_times_fajr_prayer