Update. With 2 sensors. ALMOST works...
Hardware:
- Shelly1 (s1) with local light, local taster and Motion Sensor (m1) on the first floor. Taster area is covered by (m1).
- Shelly1 (s2) with 2x lights, local taster and Motion Sensor (m2) on the ground floor. The taster area is not covered by (m2) (and should not). Extra taster wired to (s1) near the entrance door, its area is covered by (m2).
Scenarios which work:
- during day light motion does not activate the light. Any taster can activate all lights for 90seconds, prolonged by motions in covered areas
- during dark time tasters or motions in covered areas activate the light, prolonged by motions in covered areas
Still doesn't work:
- in case the light is switched off by tasters, but motion was already detected, the light will be switched on again after motion dead time (for 30 seconds)
- not possible to unconditionally (for long period) switch on the light in case used taster is in covered by motion area and it is dark (so (m1) or (m2) are in Dead timer). An attempt is not in correct configuration.
And so, (4) how to shut-up this sensor if it is in "dead time" so it doesn't call "end of movement"?
Complete current configuration:
(s1) momentary, "Auto OFF": 90. Following actions defined:
- Button short pressed: (s2)/relay/0?turn=toggle
- Output switched on: (m1)/settings?motion_operating_mode=0
- Output switched off: (m1)/settings?motion_operating_mode=1
(s2) momentary, "Auto OFF": 90. Following actions defined:
- Button short pressed: (s1)/relay/0?turn=toggle
- Output switched on: (m2)/settings?motion_operating_mode=0
- Output switched off: (m2)/settings?motion_operating_mode=1
(m1) mode: "Dark", blind time: 1. Following actions defined:
- Motion detected:
- (m2)/settings?sleep_time=3600
- (s1)/relay/0?turn=on&timer=3600
- (s2)/relay/0?turn=on&timer=3600
- End of motion:
- (s1)/relay/0?turn=on&timer=30
- (s2)/relay/0?turn=on&timer=30
- (m2)/settings?sleep_time=0
(m2) mode: "Dark", blind time: 1. Following actions defined:
- Motion detected:
- (m1)/settings?sleep_time=3600
- (s1)/relay/0?turn=on&timer=3600
- (s2)/relay/0?turn=on&timer=3600
- End of motion:
- (s1)/relay/0?turn=on&timer=30
- (s2)/relay/0?turn=on&timer=30
- (m1)/settings?sleep_time=0
Explanation
I use toggle sync, without detached button. Once in a while connection is lost or router is down. I want to be sure I can switch the light on manually.
I use timers everywhere. In case the connection is down / command was lost / etc., I prefer to have "self healing" configuration (up to 1h to recover is better then nothing). I don't live in the corridor/stairs area.
Shellys switch Motion detection mode to Any once they have switched on corresponding light. Motions will not be detected otherwise.
Activated Motion sensor deactivate another one for own Dead time. Afterwards it allows another sensor to take the lead (f.e. someone has moved from the first floor to the ground floor and he/she is staying here for a while).
I will not mark the topic as "solved" for now. I am going to test current configuration for several days first.