Hi.
I’m trying to use the Jewish calendar integration.
I’ve tried to do or state and it works on Fridays but not on the other state.
this is the automation I’ve built:
alias: Turn on Shabat Lights mode
trigger:
- platform: sun
event: sunset
offset: -00:45:00
condition:
- condition: or
conditions:
- condition: time
weekday:
- fri
- condition: state
entity_id: sensor.jewish_calendar_holiday_2
state: '2'
attribute: type_id
action:
- service: input_boolean.turn_on
data:
entity_id: input_boolean.shabat_mode
mode: single
so i think i didn’t understand the state correctly. maybe something like this will work?
alias: Turn on Shabat Lights mode
trigger:
- platform: sun
event: sunset
offset: -00:45:00
condition:
- condition: or
conditions:
- condition: time
weekday:
- fri
- condition: state
entity_id: sensor.jewish_calendar_holiday_2
state: "EREV_YOM_TOV"
attribute: type
action:
- service: input_boolean.turn_on
data:
entity_id: input_boolean.shabat_mode
mode: single
thanks in advance