waaren wrote: ↑Wednesday 22 April 2020 1:14
RobbieT wrote: ↑Wednesday 22 April 2020 0:11
Here is the logging;
the only relevant result from the script is
Code: Select all
2020-04-21 23:50:26.424 Status: dzVents: Info: -=#Livingroom Lights | Lux#=-: ------ Start internal script: Lampen woonkamer - Lux - test: Device: "Modus (Dummy Switches)", Index: 313
2020-04-21 23:50:26.424 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Bewegiginssensor Woonkamer | Lux: Lux device adapter
2020-04-21 23:50:26.424 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Bewegingssensor Woonkamer | Beweging: Switch device adapter
2020-04-21 23:50:26.424 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Modus.lastUpdate.minutesAgo: 1045
2020-04-21 23:50:26.424 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Modus.state: Alles uit
There must have been more then this. The other loglines are from other scripts.
This is everything that happens when I push the button when I go to bed.
Code: Select all
2020-04-21 23:49:56.339 Status: dzVents: Info: Lampen woonkamer geschakeld: ------ Start internal script: Lampen woonkamer via knop: Device: "Xiaomi Switch (Xiaomi Gateway)", Index: 92
2020-04-21 23:49:56.339 Status: dzVents: Info: Lampen woonkamer geschakeld: De lampen zijn uitgeschakeld
2020-04-21 23:49:56.339 Status: dzVents: Info: Lampen woonkamer geschakeld: ------ Finished Lampen woonkamer via knop
2020-04-21 23:49:56.340 Status: EventSystem: Script event triggered: /usr/local/domoticz/dzVents/runtime/dzVents.lua
2020-04-21 23:49:56.341 EventSystem: Event triggered: Switch naar off_1
2020-04-21 23:49:56.385 (Milight Hub DIY - MQTT) 007/Lampen | Eettafel alles - MQTT: Command: 'Off', Level: 0, Color:
2020-04-21 23:49:56.385 (Milight Hub DIY - MQTT) 018/Lampen | Keuken - Ledstrip - MQTT: Command: 'Off', Level: 0, Color:
2020-04-21 23:49:56.686 (Milight Hub DIY - MQTT) 007/Lampen | Eettafel alles - MQTT: State change: '{'state': 'OFF'}
2020-04-21 23:49:57.806 (Milight Hub DIY - MQTT) 018/Lampen | Keuken - Ledstrip - MQTT: State change: '{'state': 'OFF'}
2020-04-21 23:50:01.353 (Xiaomi Gateway) Light/Switch (Xiaomi Switch)
2020-04-21 23:50:01.372 Status: dzVents: Info: Lampen woonkamer geschakeld: ------ Start internal script: Lampen woonkamer via knop: Device: "Xiaomi Switch (Xiaomi Gateway)", Index: 92
2020-04-21 23:50:01.373 Status: dzVents: Info: Lampen woonkamer geschakeld: ------ Finished Lampen woonkamer via knop
2020-04-21 23:50:06.372 (Milight Hub DIY - MQTT) 004/Lampen | Bank alles - MQTT: Command: 'Off', Level: 0, Color:
2020-04-21 23:50:06.773 (Milight Hub DIY - MQTT) 004/Lampen | Bank alles - MQTT: State change: '{'state': 'OFF'}
2020-04-21 23:50:11.528 (Xiaomi Gateway) Light/Switch (Smartplug - Lamp naast TV)
2020-04-21 23:50:11.974 Status: {"cmd":"report","model":"plug","sid":"158d00028ac7ab","short_id":44587,"data":"{\"status\":\"off\"}"}
2020-04-21 23:50:16.393 (Milight Hub DIY - MQTT) 001/Lampen | Dressoir - MQTT: Command: 'Off', Level: 0, Color:
2020-04-21 23:50:16.694 (Milight Hub DIY - MQTT) 001/Lampen | Dressoir - MQTT: State change: '{'state': 'OFF'}
2020-04-21 23:50:26.363 (Dummy Switches) Light/Switch (Algemeen uit)
2020-04-21 23:50:26.383 Status: dzVents: Info: -=#Switch mode#=-: ------ Start internal script: Modus aanpassen: Device: "Algemeen uit (Dummy Switches)", Index: 243
2020-04-21 23:50:26.383 Status: dzVents: Info: -=#Switch mode#=-: ------ Finished Modus aanpassen
2020-04-21 23:50:26.383 Status: EventSystem: Script event triggered: /usr/local/domoticz/dzVents/runtime/dzVents.lua
2020-04-21 23:50:26.404 (Dummy Switches) Light/Switch (Modus)
2020-04-21 23:50:26.424 Status: dzVents: Info: ------ Start internal script: Automatische vakantiemodus: Device: "Modus (Dummy Switches)", Index: 313
2020-04-21 23:50:26.424 Status: dzVents: Info: ------ Finished Automatische vakantiemodus
2020-04-21 23:50:26.424 Status: dzVents: Info: -=#Livingroom Lights | Lux#=-: ------ Start internal script: Lampen woonkamer - Lux - test: Device: "Modus (Dummy Switches)", Index: 313
2020-04-21 23:50:26.424 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Bewegiginssensor Woonkamer | Lux: Lux device adapter
2020-04-21 23:50:26.424 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Bewegingssensor Woonkamer | Beweging: Switch device adapter
2020-04-21 23:50:26.424 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Modus.lastUpdate.minutesAgo: 1045
2020-04-21 23:50:26.424 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Modus.state: Alles uit
2020-04-21 23:50:26.424 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Modus state: Alles uit
2020-04-21 23:50:26.424 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Bewegingssensor Woonkamer | Beweging active: true
2020-04-21 23:50:26.424 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Lampen | Dressoir - MQTT: RGB(W) device adapter
2020-04-21 23:50:26.424 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Lampen | Dressoir - MQTT: Switch device adapter
2020-04-21 23:50:26.424 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Constructed timed-command: Off
2020-04-21 23:50:26.425 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Lampen | Eettafel alles - MQTT: RGB(W) device adapter
2020-04-21 23:50:26.425 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Lampen | Eettafel alles - MQTT: Switch device adapter
2020-04-21 23:50:26.425 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Constructed timed-command: Set Level 15
2020-04-21 23:50:26.425 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Lampen | Bank alles - MQTT: RGB(W) device adapter
2020-04-21 23:50:26.425 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Lampen | Bank alles - MQTT: Switch device adapter
2020-04-21 23:50:26.425 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Constructed timed-command: Set Level 15
2020-04-21 23:50:26.425 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Constructed timed-command: Off
2020-04-21 23:50:26.425 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Constructed timed-command: Off AFTER 150 SECONDS
2020-04-21 23:50:26.425 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Constructed timed-command: Off
2020-04-21 23:50:26.425 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Constructed timed-command: Off AFTER 150 SECONDS
2020-04-21 23:50:26.425 Status: dzVents: Info: -=#Livingroom Lights | Lux#=-: ------ Finished Lampen woonkamer - Lux - test
2020-04-21 23:50:26.425 Status: EventSystem: Script event triggered: /usr/local/domoticz/dzVents/runtime/dzVents.lua
2020-04-21 23:50:26.472 (Milight Hub DIY - MQTT) 007/Lampen | Eettafel alles - MQTT: Command: 'Set Level', Level: 15, Color:
2020-04-21 23:50:26.472 (Milight Hub DIY - MQTT) 004/Lampen | Bank alles - MQTT: Command: 'Set Level', Level: 15, Color:
2020-04-21 23:50:26.823 (Milight Hub DIY - MQTT) 007/Lampen | Eettafel alles - MQTT: State change: '{'state': 'ON'}
2020-04-21 23:50:27.075 (Milight Hub DIY - MQTT) 007/Lampen | Eettafel alles - MQTT: State change: '{'brightness': 38}
2020-04-21 23:50:27.326 (Milight Hub DIY - MQTT) 004/Lampen | Bank alles - MQTT: State change: '{'state': 'ON'}
2020-04-21 23:50:27.578 (Milight Hub DIY - MQTT) 004/Lampen | Bank alles - MQTT: State change: '{'brightness': 38}
2020-04-21 23:51:10.280 (Xiaomi Gateway) Light/Switch (Bewegingssensor Woonkamer | Beweging)
2020-04-21 23:51:10.280 Status: {"cmd":"report","model":"sensor_motion.aq2","sid":"158d00046668a2","short_id":40452,"data":"{\"no_motion\":\"120\"}"}
2020-04-21 23:51:10.299 Status: dzVents: Info: -=#Livingroom Lights | Lux#=-: ------ Start internal script: Lampen woonkamer - Lux - test: Device: "Bewegingssensor Woonkamer | Beweging (Xiaomi Gateway)", Index: 312
2020-04-21 23:51:10.299 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Modus: Switch device adapter
2020-04-21 23:51:10.300 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Bewegiginssensor Woonkamer | Lux: Lux device adapter
2020-04-21 23:51:10.300 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Modus.lastUpdate.minutesAgo: 0
2020-04-21 23:51:10.300 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Modus.state: Alles uit
2020-04-21 23:51:10.300 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Bewegingssensor Woonkamer | Beweging state: Off
2020-04-21 23:51:10.300 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Bewegingssensor Woonkamer | Beweging active: false
2020-04-21 23:51:10.300 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Lampen | Dressoir - MQTT: RGB(W) device adapter
2020-04-21 23:51:10.300 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Lampen | Dressoir - MQTT: Switch device adapter
2020-04-21 23:51:10.300 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Constructed timed-command: Off
2020-04-21 23:51:10.300 Status: dzVents: Info: -=#Livingroom Lights | Lux#=-: ------ Finished Lampen woonkamer - Lux - test
2020-04-21 23:51:18.249 Status: {"cmd":"report","model":"sensor_motion.aq2","sid":"158d00046668a2","short_id":40452,"data":"{\"lux\":\"0\"}"}
2020-04-21 23:51:18.249 (Xiaomi Gateway) Lux (Bewegiginssensor Woonkamer | Lux)
2020-04-21 23:51:18.257 (Xiaomi Gateway) Light/Switch (Bewegingssensor Woonkamer | Beweging)
2020-04-21 23:51:18.257 Status: {"cmd":"report","model":"sensor_motion.aq2","sid":"158d00046668a2","short_id":40452,"data":"{\"status\":\"motion\"}"}
2020-04-21 23:51:18.269 Status: dzVents: Info: -=#Livingroom Lights | Lux#=-: ------ Start internal script: Lampen woonkamer - Lux - test: Device: "Bewegiginssensor Woonkamer | Lux (Xiaomi Gateway)", Index: 311
2020-04-21 23:51:18.269 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Modus: Switch device adapter
2020-04-21 23:51:18.269 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Bewegingssensor Woonkamer | Beweging: Switch device adapter
2020-04-21 23:51:18.269 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Modus.lastUpdate.minutesAgo: 0
2020-04-21 23:51:18.269 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Modus.state: Alles uit
2020-04-21 23:51:18.269 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Bewegiginssensor Woonkamer | Lux state: 0
2020-04-21 23:51:18.269 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Bewegingssensor Woonkamer | Beweging active: false
2020-04-21 23:51:18.269 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Lampen | Dressoir - MQTT: RGB(W) device adapter
2020-04-21 23:51:18.269 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Lampen | Dressoir - MQTT: Switch device adapter
2020-04-21 23:51:18.269 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Constructed timed-command: Off
2020-04-21 23:51:18.269 Status: dzVents: Info: -=#Livingroom Lights | Lux#=-: ------ Finished Lampen woonkamer - Lux - test
2020-04-21 23:51:18.290 Status: dzVents: Info: -=#Livingroom Lights | Lux#=-: ------ Start internal script: Lampen woonkamer - Lux - test: Device: "Bewegingssensor Woonkamer | Beweging (Xiaomi Gateway)", Index: 312
2020-04-21 23:51:18.290 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Modus: Switch device adapter
2020-04-21 23:51:18.290 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Bewegiginssensor Woonkamer | Lux: Lux device adapter
2020-04-21 23:51:18.290 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Modus.lastUpdate.minutesAgo: 0
2020-04-21 23:51:18.290 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Modus.state: Alles uit
2020-04-21 23:51:18.290 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Bewegingssensor Woonkamer | Beweging state: On
2020-04-21 23:51:18.290 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Bewegingssensor Woonkamer | Beweging active: true
2020-04-21 23:51:18.290 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Lampen | Dressoir - MQTT: RGB(W) device adapter
2020-04-21 23:51:18.290 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Lampen | Dressoir - MQTT: Switch device adapter
2020-04-21 23:51:18.290 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Constructed timed-command: Off
2020-04-21 23:51:18.290 Status: dzVents: Info: -=#Livingroom Lights | Lux#=-: ------ Finished Lampen woonkamer - Lux - test
2020-04-21 23:52:56.460 (Milight Hub DIY - MQTT) 007/Lampen | Eettafel alles - MQTT: Command: 'Off', Level: 0, Color:
2020-04-21 23:52:56.460 (Milight Hub DIY - MQTT) 004/Lampen | Bank alles - MQTT: Command: 'Off', Level: 0, Color:
2020-04-21 23:52:57.967 (Milight Hub DIY - MQTT) 007/Lampen | Eettafel alles - MQTT: State change: '{'state': 'OFF'}
2020-04-21 23:52:58.219 (Milight Hub DIY - MQTT) 004/Lampen | Bank alles - MQTT: State change: '{'state': 'OFF'}
2020-04-21 23:53:00.182 Status: EventSystem: Script event triggered: /usr/local/domoticz/dzVents/runtime/dzVents.lua
2020-04-21 23:53:17.985 (Xiaomi Gateway) Light/Switch (Bewegingssensor Woonkamer | Beweging)
2020-04-21 23:53:17.985 Status: {"cmd":"report","model":"sensor_motion.aq2","sid":"158d00046668a2","short_id":40452,"data":"{\"no_motion\":\"120\"}"}
2020-04-21 23:53:18.005 Status: dzVents: Info: -=#Livingroom Lights | Lux#=-: ------ Start internal script: Lampen woonkamer - Lux - test: Device: "Bewegingssensor Woonkamer | Beweging (Xiaomi Gateway)", Index: 312
2020-04-21 23:53:18.005 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Modus: Switch device adapter
2020-04-21 23:53:18.005 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Bewegiginssensor Woonkamer | Lux: Lux device adapter
2020-04-21 23:53:18.005 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Modus.lastUpdate.minutesAgo: 2
2020-04-21 23:53:18.005 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Modus.state: Alles uit
2020-04-21 23:53:18.005 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Bewegingssensor Woonkamer | Beweging state: Off
2020-04-21 23:53:18.005 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Bewegingssensor Woonkamer | Beweging active: false
2020-04-21 23:53:18.005 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Lampen | Dressoir - MQTT: RGB(W) device adapter
2020-04-21 23:53:18.005 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Processing device-adapter for Lampen | Dressoir - MQTT: Switch device adapter
2020-04-21 23:53:18.005 Status: dzVents: Debug: -=#Livingroom Lights | Lux#=-: Constructed timed-command: Off
2020-04-21 23:53:18.005 Status: dzVents: Info: -=#Livingroom Lights | Lux#=-: ------ Finished Lampen woonkamer - Lux - test
for the complete info, this is the part from the script that is executed when I click the button (log marker; marker = "Lampen woonkamer geschakeld)
Code: Select all
elseif (Knop.state == 'Double Click') then
domoticz.devices(188).switchOff().checkFirst() --Lampen boven eettafel
domoticz.devices(290).switchOff().checkFirst() --Lamp onder keukenkastjes
domoticz.devices(185).switchOff().afterSec(10) --Lampen boven bank
domoticz.devices(51).switchOff().afterSec(15) --Lamp naast televisie
domoticz.devices(179).switchOff().afterSec(20) --Lamp boven dressoir
domoticz.devices(243).switchOn() --Algemeen op uit
domoticz.log('De lampen zijn uitgeschakeld')