Just delete the device_class line. It will then show all device classes. Should work in the meantime. I do believe there is a way to filter multiple device_classes.
Hi im having a problem. The helper state is not changing. Im not sure if im creating the correct one. Im creating it from de UI as a toggle helper with the entity ID as input_boolean.room_occupancy. Im not sure if this is the right way or if im doing something wrong. Im mainly using it with a motion sensor and a espresense device. If there were a a video guide or something to help me i would appreciate it so much.Thanks for your help. Btw cool blueprint
Hi @kreene1987
I use your blueprint and am really happy with it.
I also have modified it to turn occupancy ON if a door OPENS (e.g. occupancy backyard on if the gardendoor is opened).
Unfortunately the occupancy is not turned off again.
What is the easiest way to modify this to switch OFF the occupancy if the door does not change for input_number.motion_occupancy_timeout
?
- conditions:
- '{{ not is_motion }}'
- '{{ motion_is_timed_out }}'
- "{% set t = (time_now - media_timeout) * 60 %} {% set ns = namespace(not_playing=[])\
\ %} {% for player in media_players %}\n {% for state in media_states %}\n\
\ {% if states[player].last_changed is defined %}\n {% set timed_out\
\ = states[player].last_changed.timestamp() < t %}\n {% else %}\n {%\
\ set timed_out = true %}\n {% endif %}\n {% if states(player) != state\
\ and timed_out %}\n {% set ns.not_playing = ns.not_playing + [ player.entity_id\
\ ] %}\n {% endif %}\n {% endfor %}\n{% endfor %} {{ ns.not_playing | length\
\ >= media_players | length }}\n"
- '{{ not in_room }}'
This Blueprint is a great start for Room Presence based automations. It should be integrated in HA with some additional options. Apparently it is not maintained. Is there a similar solution somewhere?
I hope this Blueprint does follow the wasp in the box idea when using door sensors and motion sensors. The documentation is not clear about it.
It would also be nice if we could configure the sensors for occupied and unoccupied separate. My wife always shuts the bathroom doors when passing by. This would trigger occupancy in the room without somenone being in it.