Closed LHommeQuAVuLOurs closed 1 month ago
A couple of idea.
Try with lower case absent and nuit
If that still doesnt work, try the english terms, away and night.
Thank you for your answer I already tried in lowercase without success, and just to be sure I tried the english version but as expected it's still the same.
The input_select is a "helper" created by myself with custom values :
Ahh Interesting.
I force the states to be lower case for the test because normally entities produce lower case states. Let me try something and give you a new version
Please manually update your blueprint to this version and try it https://github.com/SgtBatten/HA_blueprints/blob/d661611fc8f925a625b787686f8dec636a262081/Frigate_Camera_Notifications/Stable.yaml
Ok I think I understand what you mean : you test (current entity state = lowercase(parameter)) ? If so, it can't work because I've configured my states with an uppercase.
As a workaround, I try updating my input_select values to "absent" instead of "Absent" and the filter works now. However, I think that for safety you should lowercase each side of the test (and it's prettier in a dashboard :D).
Thank you for your help understanding the priblem !
I have done lowercase on both sides in the version above. You can try it with capital states for your helper
Ok just saw your fix, however I'm kind of new with blueprints, how do I manually update ? I just copy-paste the new Yaml in the blueprint file ?
yes paste it over the top and then go to developer tools and reload automations
Perfect ! It's doing the job now :) Thank you !
Description
Hello @SgtBatten and thank you very much for this wonderful blueprint !
I may have misunderstood the "state filter" feature so I don't know if the following behavior is a bug or the result of a misusage.
I've configured my automation with a state filter based on an input select. It should notify my if the input_select is in state "Absent" or "Nuit" (away or night) but the debug shows "TEST: FAIL" :
State Filter: state filter toggle on: True, state filter entity: input_select.mode_de_surveillance, required states: ['Absent', 'Nuit'], TEST: FAIL
The same automation with the state filter disabled works just fine. I've tried with a single value but the test still fails I've tried in lowercase but the test still fails.
Am I missing something obvious ?
Have a good day !
Version
0.12.0.4d
Automation Config
Frigate Config
No response
Any other relevant information
No response