Open albertlt opened 1 week ago
Btw, the editor automatically converted - to bullet points :( Maybe better to just refer to attached yaml file :)
Seems like a working filter. It would be great if you could add it as a pull request to the beta blueprint.
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:
To :
filters: name: '# Filters
STEP 3 – EVALUATE CONDITION Add :
To :
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
Frigate Config
No response
Any other information that may be helpful
No response