#Prayer time automation

1 messages · Page 1 of 1 (latest)

sterile violet
#

is anyone have ever used prayer time as automation trigger. I've tried but the time was not correctly to trigger the automation.

little lake
#

what are you using as a trigger now?

sterile violet
#

I'm using fajr time as a trigger, but the time is not correctly trigger my light

little lake
#

Please share the YAML

fringe jewelBOT
#

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.

sterile violet
#
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
little lake
#

please edit your post according to the message just above it (add code tags)

sterile violet
#

is that correct?

indigo hollow
#

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.

sterile violet
#

islamic parayer time

indigo hollow
#

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?

sterile violet
#

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

indigo hollow
#

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?

sterile violet
#

when the time at the value

indigo hollow
#

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
sterile violet
#
alias: Fajar Prayer Time
description: ""
triggers:
  - trigger: time
    at: sensor.islamic_prayer_times_fajr_prayer