Code:
2017-09-03 09:15:53 ERROR treppen_led_aus Logic: treppen_led_aus, File: /usr/local/smarthome/logics/treppen_led_aus.py, Line: 3, Method: <module>, Exception: unorderable types: NoneType() > int() Traceback (most recent call last): File "/usr/local/smarthome/lib/scheduler.py", line 382, in _task exec(obj.bytecode) File "/usr/local/smarthome/logics/treppen_led_aus.py", line 3, in <module> if sh.sensor.carport.lux_db.db('min', '10i') > 320: TypeError: unorderable types: NoneType() > int() 2017-09-03 09:15:53 DEBUG sensor.stellplatz.lux_db Triggering bwm_hwr_sperren - by: Item source: sensor.stellplatz.lux_db dest : None value: 968.96
Code:
lux_db: visu_acl: ro type: num knx_dpt: 9 eval_trigger: sensor.stellplatz.lux eval: value sqlite: 'yes'
Code:
#!/usr/bin/env python # Treppen LED on, wenn Helligkeit aussen zu dunkel if (sh.sensor.carport.lux() < 280 and sh.sensor.carport.lux() > 5): sh.szene.flur.treppe(1)
Kommentar