The bottom line is I want to be able to edit delays on some binary sensors. I’ve looked over the docs on delayed_off
and that tells how to set it at compile time. I’ve looked at the API info on Binary Sensors and I can’t find what I want there, either, for use in a lambda. I realize that it’s a filter, and there is the function add_filter() in the API, but there is no apparent way to remove a filter or edit one.
From what I can tell, it seems the only way to change the delay value is at compile time. (It looks to me like the entire purpose is to debounce a switch, so I can understand why it would not seem to be needed to be editable.) So I don’t expect a way to edit this value later. (I want to use a Number Template so I can change the value as needed. I’m using this to control vent fans and other devices that would need to stay on for a limited time after an entity is switched off.)