Two IKEA Vallhorn ZHA movement sensor logic

I needed a logic to control a light which turns on using two IKEA VALLHORN sensors.

This basic blueprint (my first) turns on when one of both movement sensors recognizes movement, but checks both sensors to be free in order to turn the light back off, which is more suitable for bigger rooms in which you need multiple sensors to cover movement in the whole room.

For now it’s two sensors, as I don’t have situations where I’d need more than two.

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

Make sure you use 1.2 V rechargeable batteries in VALLHORN sensors and set your battery warnings to recharge to 40% !

Regular batteries or rechargeable batteries below 40% charge will produce frequent false-positive readings of the sensor.

Github: ha-blueprints/vallhorn.yaml at main · paradonym/ha-blueprints · GitHub

1 Like

Is this any different from putting the motion sensors in a group helper and respond on the group helper with the lights?

Depends on what logic is applied in group helpers:
I assumed group helpers are always an AND combination, which wasn’t what I wanted to have to turn the light on.

When I get technical turning the light on is “A XOR B”, turning it of is “A AND B” for 10 seconds.

Might be easier to do with group helpers, my first thought has been a blueprint.

No, a group helper is default or, but has an option to switch to and. Normally a group turns on if any is on and off if all are off. Just like jou desctibe.You can use as many sensors as you like and use a regular motion blueprint or this automation: