Page 25 sur 34
Re: aide pour réalisation script en lua
Publié : 13 mai 2020, 20:21
par vil1driver
Les logs de Domoticz....
Au moment précis où Nuit est de très nombreuses fois basculé manuellement.
Re: aide pour réalisation script en lua
Publié : 13 mai 2020, 20:24
par vr6man
ok mais tu fais comment pour les obtenir ?
Re: aide pour réalisation script en lua
Publié : 13 mai 2020, 20:30
par vil1driver
Bah tu l'as déjà fais...
Tu clic clic clic et re re clic sur Nuit.
Puis sans traîner,
Tu vas dans paramètres logs (ou journaux je ne sais plus)
Et tu copie colle ici
Si ça defile trop vite dans les journaux
Pour obtenir la bonne période,
Tu ouvres dans ton navigateur 2 fois domoticz
Un onglet avec les logs visibles
Un autre avec la page switch pour cliquer à volonté sur Nuit.
Re: aide pour réalisation script en lua
Publié : 13 mai 2020, 20:39
par vr6man
ok ca vous va ca
- 2020-05-13 20:38:37.981 Status: User: Admin initiated a switch command (539/Nuit/On)
2020-05-13 20:38:38.768 Status: User: Admin initiated a switch command (539/Nuit/Off)
2020-05-13 20:38:38.781 Status: EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_device_fermeture_store.lua
2020-05-13 20:38:38.982 Status: LUA: Eclairage Chalet a été éteint
2020-05-13 20:38:38.982 Status: LUA: Eclairage TV a été éteint
2020-05-13 20:38:38.982 Status: LUA: Eclairage terrasse a été éteint
2020-05-13 20:38:38.984 Status: EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_device_CtrlLumiereJardin.lua
2020-05-13 20:38:39.007 Status: Notification: Extinction Lumiere Terrasse
2020-05-13 20:38:39.109 Status: Notification: Extinction Lumiere Chalet
2020-05-13 20:38:39.179 Status: User: Admin initiated a switch command (539/Nuit/On)
2020-05-13 20:38:39.759 Status: EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_device_fermeture_store.lua
2020-05-13 20:38:40.169 Status: User: Admin initiated a switch command (539/Nuit/Off)
2020-05-13 20:38:40.511 Status: LUA: Eclairage Chalet a été éteint
2020-05-13 20:38:40.511 Status: LUA: Eclairage TV a été éteint
2020-05-13 20:38:40.511 Status: LUA: Eclairage terrasse a été éteint
2020-05-13 20:38:40.512 Status: EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_device_CtrlLumiereJardin.lua
2020-05-13 20:38:40.528 Status: Notification: Extinction Lumiere Terrasse
2020-05-13 20:38:40.543 Status: Notification: Extinction Lumiere Chalet
2020-05-13 20:38:41.132 Status: User: Admin initiated a switch command (539/Nuit/On)
2020-05-13 20:38:41.365 Status: EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_device_fermeture_store.lua
2020-05-13 20:38:42.088 Status: OpenZWave: Received timeout notification from HomeID: 3616049346, NodeID: 56 (0x38)
2020-05-13 20:38:42.128 Status: User: Admin initiated a switch command (539/Nuit/Off)
2020-05-13 20:38:42.395 Status: LUA: Eclairage Chalet a été éteint
2020-05-13 20:38:42.396 Status: LUA: Eclairage TV a été éteint
2020-05-13 20:38:42.396 Status: LUA: Eclairage terrasse a été éteint
2020-05-13 20:38:42.398 Status: EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_device_CtrlLumiereJardin.lua
2020-05-13 20:38:42.484 Status: Notification: Extinction Lumiere Chalet
2020-05-13 20:38:42.499 Status: Notification: Extinction Lumiere Terrasse
2020-05-13 20:38:42.972 Status: User: Admin initiated a switch command (539/Nuit/On)
2020-05-13 20:38:43.243 Status: EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_device_fermeture_store.lua
2020-05-13 20:38:44.117 Status: User: Admin initiated a switch command (539/Nuit/Off)
2020-05-13 20:38:44.319 Status: LUA: Eclairage Chalet a été éteint
2020-05-13 20:38:44.319 Status: LUA: Eclairage TV a été éteint
2020-05-13 20:38:44.319 Status: LUA: Eclairage terrasse a été éteint
2020-05-13 20:38:44.320 Status: EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_device_CtrlLumiereJardin.lua
2020-05-13 20:38:44.355 Status: Notification: Extinction Lumiere Chalet
2020-05-13 20:38:44.441 Status: Notification: Extinction Lumiere Terrasse
2020-05-13 20:38:45.118 Status: User: Admin initiated a switch command (539/Nuit/On)
2020-05-13 20:38:45.429 Status: EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_device_fermeture_store.lua
2020-05-13 20:38:45.764 Status: OpenZWave: Received timeout notification from HomeID: 3616049346, NodeID: 56 (0x38)
2020-05-13 20:38:48.764 Status: OpenZWave: Received timeout notification from HomeID: 3616049346, NodeID: 56 (0x38)
2020-05-13 20:38:51.765 Status: OpenZWave: Received timeout notification from HomeID: 3616049346, NodeID: 56 (0x38)
Re: aide pour réalisation script en lua
Publié : 13 mai 2020, 20:52
par vil1driver
Oui c'est ça

Là on voit bien les changements d'état.
Pour être tatillon je dirais dommage que le
script de keros ne soit pas actif au même moment.
Re: aide pour réalisation script en lua
Publié : 13 mai 2020, 21:10
par vr6man
allez pour ton coté tatillon
- 020-05-13 21:11:09.496 Status: LUA: End event fired on kWh Meter Vanne 3 voies
2020-05-13 21:11:09.496 Status: LUA: Device based event fired on 'kWh Meter Vanne 3 voies_Utility', value '0.40000000596046'
2020-05-13 21:11:09.496 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:09.496 Status: LUA: End event fired on kWh Meter Vanne 3 voies_Utility
2020-05-13 21:11:09.607 Status: LUA: Device based event fired on 'Lumiere Chalet', value 'Off'
2020-05-13 21:11:09.608 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:09.608 Status: LUA: End event fired on Lumiere Chalet
2020-05-13 21:11:09.718 Status: LUA: Device based event fired on 'Lumiere Terrasse', value 'Off'
2020-05-13 21:11:09.718 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:09.718 Status: LUA: End event fired on Lumiere Terrasse
2020-05-13 21:11:09.718 Status: LUA: Device based event fired on 'Lumiere Terrasse_Temperature', value '10.199999809265'
2020-05-13 21:11:09.718 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:09.718 Status: LUA: End event fired on Lumiere Terrasse_Temperature
2020-05-13 21:11:09.964 Status: LUA: Device based event fired on 'Lumiere TV', value 'Off'
2020-05-13 21:11:09.965 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:09.965 Status: LUA: End event fired on Lumiere TV
2020-05-13 21:11:10.021 Status: EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_device_fermeture_store.lua
2020-05-13 21:11:10.081 Status: LUA: Device based event fired on 'Nuit', value 'On'
2020-05-13 21:11:10.081 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:10.081 Status: LUA: Device Nuit detected
2020-05-13 21:11:10.081 Status: LUA: Nuit is On
2020-05-13 21:11:10.081 Status: LUA: otherdevices['Store Terrasse'] Off
2020-05-13 21:11:10.081 Status: LUA: End event fired on Nuit
2020-05-13 21:11:10.082 Status: EventSystem: Script event triggered: Script #1
2020-05-13 21:11:10.558 Status: LUA: Device based event fired on 'Volet aurelia', value '138.0'
2020-05-13 21:11:10.558 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:10.558 Status: LUA: End event fired on Volet aurelia
2020-05-13 21:11:10.558 Status: LUA: Device based event fired on 'Volet aurelia_Temperature', value '138.0'
2020-05-13 21:11:10.558 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:10.558 Status: LUA: End event fired on Volet aurelia_Temperature
2020-05-13 21:11:10.837 Status: LUA: Device based event fired on 'Teleinfo 1 kWh Heures Creuses', value '0.000;1248226.000'
2020-05-13 21:11:10.838 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:10.838 Status: LUA: End event fired on Teleinfo 1 kWh Heures Creuses
2020-05-13 21:11:10.957 Status: LUA: Device based event fired on 'Teleinfo 1 kWh Heures Pleines_Utility', value '460.0'
2020-05-13 21:11:10.957 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:10.957 Status: LUA: End event fired on Teleinfo 1 kWh Heures Pleines_Utility
2020-05-13 21:11:10.957 Status: LUA: Device based event fired on 'Teleinfo 1 kWh Heures Pleines', value '460.000;2035596.000'
2020-05-13 21:11:10.957 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:10.957 Status: LUA: End event fired on Teleinfo 1 kWh Heures Pleines
2020-05-13 21:11:11.066 Status: OpenZWave: Received timeout notification from HomeID: 3616049346, NodeID: 56 (0x38)
2020-05-13 21:11:11.075 Status: LUA: Device based event fired on 'Teleinfo 1 kWh Total', value '2035596;1248226;0;0;460;0'
2020-05-13 21:11:11.075 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:11.075 Status: LUA: End event fired on Teleinfo 1 kWh Total
2020-05-13 21:11:11.075 Status: LUA: Device based event fired on 'Teleinfo 1 kWh Total_Utility', value '460.0'
2020-05-13 21:11:11.075 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:11.075 Status: LUA: End event fired on Teleinfo 1 kWh Total_Utility
2020-05-13 21:11:11.195 Status: LUA: Device based event fired on 'Teleinfo 1 Courant', value '2.0;0.0;0.0'
2020-05-13 21:11:11.195 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:11.195 Status: LUA: End event fired on Teleinfo 1 Courant
2020-05-13 21:11:11.307 Status: LUA: Device based event fired on 'Teleinfo 1 Pourcentage de Charge_Utility', value '3.3299999237061'
2020-05-13 21:11:11.308 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:11.308 Status: LUA: End event fired on Teleinfo 1 Pourcentage de Charge_Utility
2020-05-13 21:11:11.308 Status: LUA: Device based event fired on 'Teleinfo 1 Pourcentage de Charge', value '3.33'
2020-05-13 21:11:11.308 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:11.308 Status: LUA: End event fired on Teleinfo 1 Pourcentage de Charge
2020-05-13 21:11:12.339 Status: LUA: Device based event fired on 'Volet aurelia_Temperature', value '142.0'
2020-05-13 21:11:12.339 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:12.339 Status: LUA: End event fired on Volet aurelia_Temperature
2020-05-13 21:11:12.339 Status: LUA: Device based event fired on 'Volet aurelia', value '142.0'
2020-05-13 21:11:12.340 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:12.340 Status: LUA: End event fired on Volet aurelia
2020-05-13 21:11:12.625 Status: LUA: Device based event fired on 'Volet aurelia_Temperature', value '142.0'
2020-05-13 21:11:12.625 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:12.625 Status: LUA: End event fired on Volet aurelia_Temperature
2020-05-13 21:11:12.625 Status: LUA: Device based event fired on 'Volet aurelia', value '142.0'
2020-05-13 21:11:12.625 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:12.625 Status: LUA: End event fired on Volet aurelia
2020-05-13 21:11:12.886 Status: LUA: Device based event fired on 'Volet aurelia', value '142.0'
2020-05-13 21:11:12.887 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:12.887 Status: LUA: End event fired on Volet aurelia
2020-05-13 21:11:12.887 Status: LUA: Device based event fired on 'Volet aurelia_Temperature', value '142.0'
2020-05-13 21:11:12.887 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:12.887 Status: LUA: End event fired on Volet aurelia_Temperature
2020-05-13 21:11:13.146 Status: LUA: Device based event fired on 'Volet aurelia', value '142.0'
2020-05-13 21:11:13.148 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:13.148 Status: LUA: End event fired on Volet aurelia
2020-05-13 21:11:13.148 Status: LUA: Device based event fired on 'Volet aurelia_Temperature', value '142.0'
2020-05-13 21:11:13.148 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:13.148 Status: LUA: End event fired on Volet aurelia_Temperature
2020-05-13 21:11:13.262 Status: LUA: Device based event fired on 'conso vmc', value '8.6'
2020-05-13 21:11:13.262 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:13.262 Status: LUA: End event fired on conso vmc
2020-05-13 21:11:13.262 Status: LUA: Device based event fired on 'conso vmc_Utility', value '8.6000003814697'
2020-05-13 21:11:13.262 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:13.262 Status: LUA: End event fired on conso vmc_Utility
2020-05-13 21:11:13.372 Status: LUA: Device based event fired on 'kWh Meter vmc', value '8.600;53200.000'
2020-05-13 21:11:13.372 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:13.372 Status: LUA: End event fired on kWh Meter vmc
2020-05-13 21:11:13.372 Status: LUA: Device based event fired on 'kWh Meter vmc_Utility', value '8.6000003814697'
2020-05-13 21:11:13.372 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:13.372 Status: LUA: End event fired on kWh Meter vmc_Utility
2020-05-13 21:11:13.485 Status: LUA: Device based event fired on 'Lumiere Terrasse', value '9.5'
2020-05-13 21:11:13.485 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:13.485 Status: LUA: End event fired on Lumiere Terrasse
2020-05-13 21:11:13.485 Status: LUA: Device based event fired on 'Lumiere Terrasse_Temperature', value '9.5'
2020-05-13 21:11:13.485 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:13.485 Status: LUA: End event fired on Lumiere Terrasse_Temperature
2020-05-13 21:11:13.604 Status: LUA: Device based event fired on 'Conso Vanne 3 voies', value '0.4'
2020-05-13 21:11:13.604 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:13.605 Status: LUA: End event fired on Conso Vanne 3 voies
2020-05-13 21:11:13.605 Status: LUA: Device based event fired on 'Conso Vanne 3 voies_Utility', value '2.0999999046326'
2020-05-13 21:11:13.605 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:13.605 Status: LUA: End event fired on Conso Vanne 3 voies_Utility
2020-05-13 21:11:13.723 Status: LUA: Device based event fired on 'kWh Meter Vanne 3 voies_Utility', value '2.0999999046326'
2020-05-13 21:11:13.723 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:13.723 Status: LUA: End event fired on kWh Meter Vanne 3 voies_Utility
2020-05-13 21:11:13.723 Status: LUA: Device based event fired on 'kWh Meter Vanne 3 voies', value '0.400;1000.000'
2020-05-13 21:11:13.723 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:13.723 Status: LUA: End event fired on kWh Meter Vanne 3 voies
2020-05-13 21:11:13.979 Status: LUA: Device based event fired on 'Conso Vanne 3 voies', value '2.1'
2020-05-13 21:11:13.979 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:13.979 Status: LUA: End event fired on Conso Vanne 3 voies
2020-05-13 21:11:13.979 Status: LUA: Device based event fired on 'Conso Vanne 3 voies_Utility', value '2.0999999046326'
2020-05-13 21:11:13.979 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:13.979 Status: LUA: End event fired on Conso Vanne 3 voies_Utility
2020-05-13 21:11:14.091 Status: LUA: Device based event fired on 'kWh Meter Vanne 3 voies_Utility', value '2.0999999046326'
2020-05-13 21:11:14.091 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:14.091 Status: LUA: End event fired on kWh Meter Vanne 3 voies_Utility
2020-05-13 21:11:14.091 Status: LUA: Device based event fired on 'kWh Meter Vanne 3 voies', value '2.100;1000.000'
2020-05-13 21:11:14.091 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:14.091 Status: LUA: End event fired on kWh Meter Vanne 3 voies
2020-05-13 21:11:14.207 Status: LUA: Device based event fired on 'conso vmc_Utility', value '8.6000003814697'
2020-05-13 21:11:14.208 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:14.208 Status: LUA: End event fired on conso vmc_Utility
2020-05-13 21:11:14.208 Status: LUA: Device based event fired on 'conso vmc', value '8.6'
2020-05-13 21:11:14.208 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:14.208 Status: LUA: End event fired on conso vmc
2020-05-13 21:11:14.246 Status: OpenZWave: Received timeout notification from HomeID: 3616049346, NodeID: 56 (0x38)
2020-05-13 21:11:14.336 Status: LUA: Device based event fired on 'kWh Meter vmc', value '8.600;53200.000'
2020-05-13 21:11:14.336 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:14.336 Status: LUA: End event fired on kWh Meter vmc
2020-05-13 21:11:14.336 Status: LUA: Device based event fired on 'kWh Meter vmc_Utility', value '8.6000003814697'
2020-05-13 21:11:14.336 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:14.336 Status: LUA: End event fired on kWh Meter vmc_Utility
2020-05-13 21:11:14.451 Status: LUA: Device based event fired on 'Electrovanne AR_Temperature', value '14.60000038147'
2020-05-13 21:11:14.452 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:14.452 Status: LUA: End event fired on Electrovanne AR_Temperature
2020-05-13 21:11:14.452 Status: LUA: Device based event fired on 'Electrovanne AR', value '13.9'
2020-05-13 21:11:14.452 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:14.452 Status: LUA: End event fired on Electrovanne AR
2020-05-13 21:11:14.703 Status: LUA: Device based event fired on 'Electrovanne AR', value '14.6'
2020-05-13 21:11:14.704 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:14.704 Status: LUA: End event fired on Electrovanne AR
2020-05-13 21:11:14.704 Status: LUA: Device based event fired on 'Electrovanne AR_Temperature', value '14.60000038147'
2020-05-13 21:11:14.704 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:14.704 Status: LUA: End event fired on Electrovanne AR_Temperature
2020-05-13 21:11:14.815 Status: LUA: Device based event fired on 'Lumiere Terrasse_Temperature', value '10.199999809265'
2020-05-13 21:11:14.815 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:14.816 Status: LUA: End event fired on Lumiere Terrasse_Temperature
2020-05-13 21:11:14.816 Status: LUA: Device based event fired on 'Lumiere Terrasse', value '10.2'
2020-05-13 21:11:14.816 Status: LUA: otherdevices['Nuit'] On
2020-05-13 21:11:14.816 Status: LUA: End event fired on Lumiere Terrasse
Re: aide pour réalisation script en lua
Publié : 13 mai 2020, 21:22
par vil1driver
Et l'auto contrôle ?
Tu comprends bien ce qui cherche à être vu.
ce dernier log est super mais tu as oublié de cliquer sur Nuit..
Re: aide pour réalisation script en lua
Publié : 13 mai 2020, 21:25
par vr6man
non je ne comprends pas ce que tu veux
et j'ai cliquez plusieurs fois sur Nuit
comme dans l'exemple
2020-05-13 21:11:14.816 Status: LUA: otherdevices['Nuit'] On
Re: aide pour réalisation script en lua
Publié : 13 mai 2020, 21:27
par vil1driver
On cherche a avoir dans le même log
Le visuel de l'action manuelle sur le switch
Et
La réaction du script
Admin initiated a switch command (539/Nuit/On)
Device based event fired on 'Nuit', value 'On'
Admin initiated a switch command (539/Nuit/Off)
Device based event fired on 'Nuit', value 'Off'
Re: aide pour réalisation script en lua
Publié : 13 mai 2020, 21:30
par vr6man
ok pourtant j'ai cliquez plusieurs fois sur Nuit
je recommence