Commit 12b66cb3 authored by Peter-Bernd Otte's avatar Peter-Bernd Otte

changed default behaviour of soem detectors

parent cf19f3be
......@@ -102,8 +102,8 @@ class relais:
elif msg['type'] in ('FRW', 'FHF', 'FSM60B', 'FTK', 'FTKE'): # smoke, window handle, waterleak, magnet, handle bar
if msg['v'] > 0:
self.setV(1, reason="defaultTopics "+msg['type'])
self.setV(0, reason="defaultTopics "+msg['type'])
#else: #if these lines are active, eg the default status msg of smoke sensor will switch off a light
# self.setV(0, reason="defaultTopics "+msg['type'])
elif msg['type'] == "PTM215": # switches
if msg['v'] > 0: self.setV(1, reason="PTM215 pressed down, switch on") # Switch on, if key pressed down
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment