You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem you are having or the outcome you are trying to achieve.
Hello. First of all, thank you for the great blueprint. I added filter to run the automation based on certain days (Monday, Tuesday, ...). So far it worked correctly but I am not sure if my approach is right. I will explain the changes below and please let me know if the implementation is correct.
By the way, I also need to check state from multiple entity in the state filter but I don't know how to do that. Can you please add that functionality to next release?
Something like: run the automation if input_boolean.HomeAlarm is ON AND input_boolean.MasterSwitch is ON.
Basically, I need all entities evaluation to be true before executing the notification.
Anyway, back to topic, here is my modification:
STEP 1 - REGISTER NEW VARIABLE Add :
input_day_filter: !input day_filter
day_filter: '{{ input_day_filter | list }}'
Describe the problem you are having or the outcome you are trying to achieve.
Hello. First of all, thank you for the great blueprint. I added filter to run the automation based on certain days (Monday, Tuesday, ...). So far it worked correctly but I am not sure if my approach is right. I will explain the changes below and please let me know if the implementation is correct.
By the way, I also need to check state from multiple entity in the state filter but I don't know how to do that. Can you please add that functionality to next release?
Something like: run the automation if input_boolean.HomeAlarm is ON AND input_boolean.MasterSwitch is ON.
Basically, I need all entities evaluation to be true before executing the notification.
Anyway, back to topic, here is my modification:
STEP 1 - REGISTER NEW VARIABLE
Add :
input_day_filter: !input day_filter
day_filter: '{{ input_day_filter | list }}'
To :
variables:
input_camera: !input camera
camera: '{{ input_camera | regex_replace(''^camera.'', '''') }}'
…
STEP 2 - CREATE NEW INPUT SECTION
Add :
day_filter:
name: Day Filter (Optional)
description: Select days to receive notifications
default: []
selector:
select:
options:
- label: Monday
value: "0"
- label: Tuesday
value: "1"
- label: Wednesday
value: "2"
- label: Thursday
value: "3"
- label: Friday
value: "4"
- label: Saturday
value: "5"
- label: Sunday
value: "6"
multiple: true
custom_value: false
To :
filters:
name: '# Filters
STEP 3 – EVALUATE CONDITION
Add :
value_template: >
{{ day_filter | length == 0 or now().weekday() | string in day_filter }}
To :
conditions:
id: frigate-event
….
Attached is full modified yaml file renamed to txt extension so I can upload it here. Please kindly have a look. Thank you.
Stable - 0.12.0.4e - Added Day Filter.yaml.txt
Version
0.12.0.4e
Automation config
none
Frigate Config
No response
Any other information that may be helpful
No response
The text was updated successfully, but these errors were encountered: