aide pour réalisation script en lua
Re: aide pour réalisation script en lua
Pourtant je l ai bien actionné
Re: aide pour réalisation script en lua
Ou alors les logs que tu nous as mis ne correspondent pas au moment où tu as actionné Nuit.
Refait la manip stp et mets nous les logs de Nuit les logs de DomoticZ.
Refait la manip stp et mets nous les logs de Nuit les logs de DomoticZ.
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
Re: aide pour réalisation script en lua
ca marche toujours pas le store ne se ferme pas
voici les logs
2020-05-14 22:18:54.263 Status: LUA: Lancement du script de fermeture
2020-05-14 22:18:54.263 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-14 22:18:54.263 Status: LUA: otherdevices['Nuit'] On
2020-05-14 22:18:54.263 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-14 22:18:54.263 Status: LUA: Fin du script de fermeture
2020-05-14 22:18:54.305 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-14 22:18:54.500 Status: LUA: Lancement du script de fermeture
2020-05-14 22:18:54.500 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-14 22:18:54.500 Status: LUA: otherdevices['Nuit'] On
2020-05-14 22:18:54.500 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-14 22:18:54.500 Status: LUA: Fin du script de fermeture
2020-05-14 22:18:54.542 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-14 22:18:54.952 Status: LUA: Lancement du script de fermeture
2020-05-14 22:18:54.953 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-14 22:18:54.953 Status: LUA: otherdevices['Nuit'] On
2020-05-14 22:18:54.953 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-14 22:18:54.953 Status: LUA: Fin du script de fermeture
2020-05-14 22:18:54.997 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-14 22:18:55.239 Status: LUA: Lancement du script de fermeture
2020-05-14 22:18:55.239 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-14 22:18:55.239 Status: LUA: otherdevices['Nuit'] On
2020-05-14 22:18:55.239 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-14 22:18:55.239 Status: LUA: Fin du script de fermeture
2020-05-14 22:18:55.281 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-14 22:18:55.637 Status: LUA: Lancement du script de fermeture
2020-05-14 22:18:55.637 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-14 22:18:55.637 Status: LUA: otherdevices['Nuit'] On
2020-05-14 22:18:55.637 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-14 22:18:55.637 Status: LUA: Fin du script de fermeture
2020-05-14 22:18:55.679 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-14 22:18:55.858 Status: OpenZWave: Received timeout notification from HomeID: 3616049346, NodeID: 6 (0x06)
2020-05-14 22:18:55.875 Status: LUA: Lancement du script de fermeture
2020-05-14 22:18:55.875 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-14 22:18:55.875 Status: LUA: otherdevices['Nuit'] On
2020-05-14 22:18:55.875 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-14 22:18:55.875 Status: LUA: Fin du script de fermeture
2020-05-14 22:18:55.919 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-14 22:18:56.177 Status: LUA: Lancement du script de fermeture
2020-05-14 22:18:56.177 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-14 22:18:56.177 Status: LUA: otherdevices['Nuit'] On
2020-05-14 22:18:56.177 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-14 22:18:56.177 Status: LUA: Fin du script de fermeture
2020-05-14 22:18:56.219 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-14 22:18:56.415 Status: LUA: Lancement du script de fermeture
2020-05-14 22:18:56.416 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-14 22:18:56.416 Status: LUA: otherdevices['Nuit'] On
2020-05-14 22:18:56.416 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-14 22:18:56.416 Status: LUA: Fin du script de fermeture
2020-05-14 22:18:56.462 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-14 22:18:56.519 Status: LUA: Lancement du script de fermeture
2020-05-14 22:18:56.519 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-14 22:18:56.519 Status: LUA: otherdevices['Nuit'] On
2020-05-14 22:18:56.519 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-14 22:18:56.519 Status: LUA: Fin du script de fermeture
voici les logs
2020-05-14 22:18:54.263 Status: LUA: Lancement du script de fermeture
2020-05-14 22:18:54.263 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-14 22:18:54.263 Status: LUA: otherdevices['Nuit'] On
2020-05-14 22:18:54.263 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-14 22:18:54.263 Status: LUA: Fin du script de fermeture
2020-05-14 22:18:54.305 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-14 22:18:54.500 Status: LUA: Lancement du script de fermeture
2020-05-14 22:18:54.500 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-14 22:18:54.500 Status: LUA: otherdevices['Nuit'] On
2020-05-14 22:18:54.500 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-14 22:18:54.500 Status: LUA: Fin du script de fermeture
2020-05-14 22:18:54.542 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-14 22:18:54.952 Status: LUA: Lancement du script de fermeture
2020-05-14 22:18:54.953 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-14 22:18:54.953 Status: LUA: otherdevices['Nuit'] On
2020-05-14 22:18:54.953 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-14 22:18:54.953 Status: LUA: Fin du script de fermeture
2020-05-14 22:18:54.997 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-14 22:18:55.239 Status: LUA: Lancement du script de fermeture
2020-05-14 22:18:55.239 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-14 22:18:55.239 Status: LUA: otherdevices['Nuit'] On
2020-05-14 22:18:55.239 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-14 22:18:55.239 Status: LUA: Fin du script de fermeture
2020-05-14 22:18:55.281 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-14 22:18:55.637 Status: LUA: Lancement du script de fermeture
2020-05-14 22:18:55.637 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-14 22:18:55.637 Status: LUA: otherdevices['Nuit'] On
2020-05-14 22:18:55.637 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-14 22:18:55.637 Status: LUA: Fin du script de fermeture
2020-05-14 22:18:55.679 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-14 22:18:55.858 Status: OpenZWave: Received timeout notification from HomeID: 3616049346, NodeID: 6 (0x06)
2020-05-14 22:18:55.875 Status: LUA: Lancement du script de fermeture
2020-05-14 22:18:55.875 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-14 22:18:55.875 Status: LUA: otherdevices['Nuit'] On
2020-05-14 22:18:55.875 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-14 22:18:55.875 Status: LUA: Fin du script de fermeture
2020-05-14 22:18:55.919 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-14 22:18:56.177 Status: LUA: Lancement du script de fermeture
2020-05-14 22:18:56.177 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-14 22:18:56.177 Status: LUA: otherdevices['Nuit'] On
2020-05-14 22:18:56.177 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-14 22:18:56.177 Status: LUA: Fin du script de fermeture
2020-05-14 22:18:56.219 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-14 22:18:56.415 Status: LUA: Lancement du script de fermeture
2020-05-14 22:18:56.416 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-14 22:18:56.416 Status: LUA: otherdevices['Nuit'] On
2020-05-14 22:18:56.416 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-14 22:18:56.416 Status: LUA: Fin du script de fermeture
2020-05-14 22:18:56.462 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-14 22:18:56.519 Status: LUA: Lancement du script de fermeture
2020-05-14 22:18:56.519 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-14 22:18:56.519 Status: LUA: otherdevices['Nuit'] On
2020-05-14 22:18:56.519 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-14 22:18:56.519 Status: LUA: Fin du script de fermeture
Re: aide pour réalisation script en lua
Et les log de Nuit correspondant ? ?
Sinon, le fichier de log de DomoticZ est enregistré dans les temporaires. Sous Rapsbian, c'est /tmp/domoticz.txt
Si tu trouves ce fichier, extrait que la partie qui nous intéresse.
Voilà ce que l'on recherche :
Sinon, le fichier de log de DomoticZ est enregistré dans les temporaires. Sous Rapsbian, c'est /tmp/domoticz.txt
Si tu trouves ce fichier, extrait que la partie qui nous intéresse.
Voilà ce que l'on recherche :
Là, on voit qui nuit est passé à Off (c'est pas ce qu'on cherche mais il faut qu'il soit à Off pour passer à On) et qu'il est passé à On. Et se sont les lignes justes après qui nous intéresse avec les prints() du script.vr6man a écrit : 13 mai 2020, 21:35
- 2020-05-13 21:33:45.638 Status: User: Admin initiated a switch command (539/Nuit/Off)
...
2020-05-13 21:33:46.497 Status: User: Admin initiated a switch command (539/Nuit/On)
...
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
Re: aide pour réalisation script en lua
dans cd/tmp je n'ai pas de fichiers domoticz.txt
J'ai ressayé une dizaine de fois de fois et impossible d'avoir ce que tu indiques dans les logs
En tout cas le store ne se ferme pas quand on passe nuit a on
Plutôt que de se battre pour avoir des lignes dans des logs ne devrions nous pas mieux essayer de modifier le script de fermeture ?
J'ai ressayé une dizaine de fois de fois et impossible d'avoir ce que tu indiques dans les logs
En tout cas le store ne se ferme pas quand on passe nuit a on
Plutôt que de se battre pour avoir des lignes dans des logs ne devrions nous pas mieux essayer de modifier le script de fermeture ?
Re: aide pour réalisation script en lua
Voilà comment savoir où se trouve sont fichier de log : https://easydomoticz.com/un-fichier-log-pour-domoticz
Comment fonctionne un programme :vr6man a écrit : 15 mai 2020, 07:29 Plutôt que de se battre pour avoir des lignes dans des logs ne devrions nous pas mieux essayer de modifier le script de fermeture ?
- Il reçoit un(des) commandes(s)
- Il réalise des calculs
- Il effectue une(des) action(s)
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
Re: aide pour réalisation script en lua
le fichier domoticz.txt n'existe pas sur mon RPI et je ne le trouve pas non plus comme indiqué dans le lien
bon je viens de nouveau refaire des tests a plusieurs reprises et toujours impossible d'avoir ce que tu indiques
Je ne sais plus quoi faire car impossible d'obtenir ces résultats ?
Si tu as une autre idée
bon je viens de nouveau refaire des tests a plusieurs reprises et toujours impossible d'avoir ce que tu indiques
Je ne sais plus quoi faire car impossible d'obtenir ces résultats ?
Si tu as une autre idée
Re: aide pour réalisation script en lua
Des idées on peut en avoir plein mais si on n'a pas de retour, c'est compliqué. Pas grave.
On va revenir avec le script dans Configuration / Plus d'options / Evènements - Créer un script lua Device
Tu y remets ce script.
Tu mets Nuit à Off et Store Terrasse à On. C'est notre état initial.
Tu mets nuit à On et tu nous dis ce qui ce passe. Essaye de nous mettre les logs comme tu avais fait là https://easydomoticz.com/forum/viewtopi ... ce5#p83355 (on cherche la ligne Status: LUA: Device based event fired on 'Nuit', value 'On' et celles qui suivent jusqu'à Status: LUA: End event fired on Nuit)
On va revenir avec le script dans Configuration / Plus d'options / Evènements - Créer un script lua Device
Tu y remets ce script.
Code : Tout sélectionner
commandArray = {}
-- loop through all the changed devices
for deviceName,deviceValue in pairs(devicechanged) do
print ("Device based event fired on '"..deviceName.."', value '"..tostring(deviceValue).."'")
print('otherdevices[\'Nuit\'] '..otherdevices['Nuit'])
if (deviceName=='Nuit') then
print ("Device "..deviceName.." detected")
if deviceValue == "On" then
print("Nuit is On")
print('otherdevices[\'Store Terrasse\'] '..otherdevices['Store Terrasse'])
commandArray['Store Terrasse']='Off'
end
end
print ("End event fired on "..deviceName)
end
return commandArrayTu mets nuit à On et tu nous dis ce qui ce passe. Essaye de nous mettre les logs comme tu avais fait là https://easydomoticz.com/forum/viewtopi ... ce5#p83355 (on cherche la ligne Status: LUA: Device based event fired on 'Nuit', value 'On' et celles qui suivent jusqu'à Status: LUA: End event fired on Nuit)
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
Re: aide pour réalisation script en lua
test effectué le store ne se ferme toujours pas
par contre je ne vois pas la ligne dans les logs que tu indiques et pourtant j'ai bien suivi ton message et la log aurait du être présent dans la plage horaire des logs
voici les logs
par contre je ne vois pas la ligne dans les logs que tu indiques et pourtant j'ai bien suivi ton message et la log aurait du être présent dans la plage horaire des logs
voici les logs
- Tout
Statut
Filtre: X
2020-05-15 22:29:05.091 Status: LUA: End event fired on Volet aurelia_Temperature
2020-05-15 22:29:05.091 Status: LUA: Device based event fired on 'Volet aurelia', value '138.0'
2020-05-15 22:29:05.091 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:05.091 Status: LUA: End event fired on Volet aurelia
2020-05-15 22:29:05.151 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:05.151 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:05.151 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:05.151 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:05.151 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:05.195 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:05.209 Status: LUA: Device based event fired on 'Electrovanne AR_Temperature', value '15.10000038147'
2020-05-15 22:29:05.210 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:05.210 Status: LUA: End event fired on Electrovanne AR_Temperature
2020-05-15 22:29:05.210 Status: LUA: Device based event fired on 'Electrovanne AR', value '15.1'
2020-05-15 22:29:05.210 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:05.210 Status: LUA: End event fired on Electrovanne AR
2020-05-15 22:29:05.411 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:05.411 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:05.411 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:05.411 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:05.411 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:05.457 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:05.471 Status: LUA: Device based event fired on 'Lumiere Terrasse', value '10.2'
2020-05-15 22:29:05.472 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:05.472 Status: LUA: End event fired on Lumiere Terrasse
2020-05-15 22:29:05.472 Status: LUA: Device based event fired on 'Lumiere Terrasse_Temperature', value '10.199999809265'
2020-05-15 22:29:05.472 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:05.472 Status: LUA: End event fired on Lumiere Terrasse_Temperature
2020-05-15 22:29:05.670 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:05.670 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:05.670 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:05.670 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:05.670 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:05.716 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:05.730 Status: LUA: Device based event fired on 'conso vmc_Utility', value '8.3999996185303'
2020-05-15 22:29:05.731 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:05.731 Status: LUA: End event fired on conso vmc_Utility
2020-05-15 22:29:05.732 Status: LUA: Device based event fired on 'conso vmc', value '8.4'
2020-05-15 22:29:05.732 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:05.732 Status: LUA: End event fired on conso vmc
2020-05-15 22:29:05.790 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:05.791 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:05.791 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:05.791 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:05.791 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:05.835 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:05.850 Status: LUA: Device based event fired on 'kWh Meter vmc', value '8.400;53200.000'
2020-05-15 22:29:05.850 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:05.850 Status: LUA: End event fired on kWh Meter vmc
2020-05-15 22:29:05.850 Status: LUA: Device based event fired on 'kWh Meter vmc_Utility', value '8.3999996185303'
2020-05-15 22:29:05.850 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:05.850 Status: LUA: End event fired on kWh Meter vmc_Utility
2020-05-15 22:29:06.491 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:06.491 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:06.491 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:06.491 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:06.492 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:06.572 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:06.588 Status: LUA: Device based event fired on 'conso vmc_Utility', value '10.89999961853'
2020-05-15 22:29:06.590 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:06.590 Status: LUA: End event fired on conso vmc_Utility
2020-05-15 22:29:06.590 Status: LUA: Device based event fired on 'conso vmc', value '10.9'
2020-05-15 22:29:06.590 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:06.590 Status: LUA: End event fired on conso vmc
2020-05-15 22:29:06.788 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:06.788 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:06.788 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:06.788 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:06.788 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:06.837 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:06.852 Status: LUA: Device based event fired on 'kWh Meter vmc_Utility', value '10.89999961853'
2020-05-15 22:29:06.853 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:06.853 Status: LUA: End event fired on kWh Meter vmc_Utility
2020-05-15 22:29:06.853 Status: LUA: Device based event fired on 'kWh Meter vmc', value '10.900;53200.000'
2020-05-15 22:29:06.853 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:06.853 Status: LUA: End event fired on kWh Meter vmc
2020-05-15 22:29:06.912 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:06.912 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:06.912 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:06.912 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:06.912 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:06.957 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:06.971 Status: LUA: Device based event fired on 'Volet aurelia', value '142.0'
2020-05-15 22:29:06.971 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:06.971 Status: LUA: End event fired on Volet aurelia
2020-05-15 22:29:06.971 Status: LUA: Device based event fired on 'Volet aurelia_Temperature', value '142.0'
2020-05-15 22:29:06.971 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:06.971 Status: LUA: End event fired on Volet aurelia_Temperature
2020-05-15 22:29:07.169 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:07.169 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:07.169 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:07.169 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:07.169 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:07.213 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:07.228 Status: LUA: Device based event fired on 'Electrovanne AR_Temperature', value '15.699999809265'
2020-05-15 22:29:07.228 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:07.228 Status: LUA: End event fired on Electrovanne AR_Temperature
2020-05-15 22:29:07.228 Status: LUA: Device based event fired on 'Electrovanne AR', value '15.7'
2020-05-15 22:29:07.228 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:07.228 Status: LUA: End event fired on Electrovanne AR
2020-05-15 22:29:10.900 Status: LUA: End event fired on Teleinfo 1 Pourcentage de Charge
2020-05-15 22:29:11.099 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:11.099 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:11.099 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:11.099 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:11.099 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:11.142 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:11.155 Status: LUA: Device based event fired on 'Conso Vanne 3 voies', value '0.1'
2020-05-15 22:29:11.157 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:11.157 Status: LUA: End event fired on Conso Vanne 3 voies
2020-05-15 22:29:11.157 Status: LUA: Device based event fired on 'Conso Vanne 3 voies_Utility', value '0.10000000149012'
2020-05-15 22:29:11.157 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:11.157 Status: LUA: End event fired on Conso Vanne 3 voies_Utility
2020-05-15 22:29:11.214 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:11.214 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:11.214 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:11.214 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:11.214 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:11.256 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:11.270 Status: LUA: Device based event fired on 'kWh Meter Vanne 3 voies_Utility', value '0.10000000149012'
2020-05-15 22:29:11.270 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:11.270 Status: LUA: End event fired on kWh Meter Vanne 3 voies_Utility
2020-05-15 22:29:11.270 Status: LUA: Device based event fired on 'kWh Meter Vanne 3 voies', value '0.100;1100.000'
2020-05-15 22:29:11.270 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:11.270 Status: LUA: End event fired on kWh Meter Vanne 3 voies
2020-05-15 22:29:11.325 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:11.325 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:11.325 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:11.325 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:11.325 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:11.368 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:11.381 Status: LUA: Device based event fired on 'Volet aurelia_Temperature', value '142.0'
2020-05-15 22:29:11.381 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:11.381 Status: LUA: End event fired on Volet aurelia_Temperature
2020-05-15 22:29:11.381 Status: LUA: Device based event fired on 'Volet aurelia', value '142.0'
2020-05-15 22:29:11.381 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:11.381 Status: LUA: End event fired on Volet aurelia
2020-05-15 22:29:11.573 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:11.573 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:11.573 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:11.573 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:11.573 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:11.615 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:11.629 Status: LUA: Device based event fired on 'Lux PIR Chalet', value '0'
2020-05-15 22:29:11.630 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:11.630 Status: LUA: End event fired on Lux PIR Chalet
2020-05-15 22:29:11.686 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:11.686 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:11.686 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:11.686 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:11.686 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:11.729 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:11.742 Status: LUA: Device based event fired on 'Sonde Terrain_Humidity', value '5.0'
2020-05-15 22:29:11.742 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:11.742 Status: LUA: End event fired on Sonde Terrain_Humidity
2020-05-15 22:29:11.742 Status: LUA: Device based event fired on 'Sonde Terrain', value '15.0;5;2'
2020-05-15 22:29:11.742 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:11.742 Status: LUA: End event fired on Sonde Terrain
2020-05-15 22:29:11.742 Status: LUA: Device based event fired on 'Sonde Terrain_Temperature', value '15.0'
2020-05-15 22:29:11.742 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:11.742 Status: LUA: End event fired on Sonde Terrain_Temperature
2020-05-15 22:29:11.742 Status: LUA: Device based event fired on 'Sonde Terrain_Dewpoint', value '-24.447416305542'
2020-05-15 22:29:11.742 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:11.742 Status: LUA: End event fired on Sonde Terrain_Dewpoint
2020-05-15 22:29:12.527 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:12.527 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:12.527 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:12.527 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:12.527 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:12.570 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:12.583 Status: LUA: Device based event fired on 'conso vmc', value '9.6'
2020-05-15 22:29:12.583 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:12.583 Status: LUA: End event fired on conso vmc
2020-05-15 22:29:12.583 Status: LUA: Device based event fired on 'conso vmc_Utility', value '9.6000003814697'
2020-05-15 22:29:12.583 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:12.583 Status: LUA: End event fired on conso vmc_Utility
2020-05-15 22:29:12.774 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:12.774 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:12.774 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:12.774 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:12.774 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:12.821 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:12.834 Status: LUA: Device based event fired on 'kWh Meter vmc_Utility', value '9.6000003814697'
2020-05-15 22:29:12.834 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:12.834 Status: LUA: End event fired on kWh Meter vmc_Utility
2020-05-15 22:29:12.834 Status: LUA: Device based event fired on 'kWh Meter vmc', value '9.600;53200.000'
2020-05-15 22:29:12.834 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:12.834 Status: LUA: End event fired on kWh Meter vmc
2020-05-15 22:29:13.024 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:13.024 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:13.024 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:13.025 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:13.025 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:13.067 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:13.080 Status: LUA: Device based event fired on 'Electrovanne AR_Temperature', value '15.699999809265'
2020-05-15 22:29:13.081 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:13.081 Status: LUA: End event fired on Electrovanne AR_Temperature
2020-05-15 22:29:13.081 Status: LUA: Device based event fired on 'Electrovanne AR', value '15.7'
2020-05-15 22:29:13.081 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:13.082 Status: LUA: End event fired on Electrovanne AR
2020-05-15 22:29:14.692 Status: LUA: End event fired on kWh Meter vmc_Utility
2020-05-15 22:29:14.692 Status: LUA: Device based event fired on 'kWh Meter vmc', value '9.800;53200.000'
2020-05-15 22:29:14.692 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:14.692 Status: LUA: End event fired on kWh Meter vmc
2020-05-15 22:29:14.884 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:14.884 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:14.884 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:14.884 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:14.884 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:14.927 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:14.940 Status: LUA: Device based event fired on 'Conso Vanne 3 voies_Utility', value '0.69999998807907'
2020-05-15 22:29:14.942 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:14.942 Status: LUA: End event fired on Conso Vanne 3 voies_Utility
2020-05-15 22:29:14.942 Status: LUA: Device based event fired on 'Conso Vanne 3 voies', value '0.7'
2020-05-15 22:29:14.942 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:14.942 Status: LUA: End event fired on Conso Vanne 3 voies
2020-05-15 22:29:14.998 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:14.998 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:14.998 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:14.998 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:14.998 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:15.040 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:15.054 Status: LUA: Device based event fired on 'kWh Meter Vanne 3 voies', value '0.700;1100.000'
2020-05-15 22:29:15.054 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:15.054 Status: LUA: End event fired on kWh Meter Vanne 3 voies
2020-05-15 22:29:15.054 Status: LUA: Device based event fired on 'kWh Meter Vanne 3 voies_Utility', value '0.69999998807907'
2020-05-15 22:29:15.054 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:15.054 Status: LUA: End event fired on kWh Meter Vanne 3 voies_Utility
2020-05-15 22:29:16.555 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:16.555 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:16.555 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:16.555 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:16.555 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:16.598 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:16.611 Status: LUA: Device based event fired on 'CPU_Usage RPI_Utility', value '20.079999923706'
2020-05-15 22:29:16.611 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:16.611 Status: LUA: End event fired on CPU_Usage RPI_Utility
2020-05-15 22:29:16.612 Status: LUA: Device based event fired on 'CPU_Usage RPI', value '20.08'
2020-05-15 22:29:16.612 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:16.612 Status: LUA: End event fired on CPU_Usage RPI
2020-05-15 22:29:16.804 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:16.804 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:16.804 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:16.804 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:16.804 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:16.846 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:16.860 Status: LUA: Device based event fired on 'Conso Vanne 3 voies_Utility', value '0.10000000149012'
2020-05-15 22:29:16.861 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:16.861 Status: LUA: End event fired on Conso Vanne 3 voies_Utility
2020-05-15 22:29:16.861 Status: LUA: Device based event fired on 'Conso Vanne 3 voies', value '0.1'
2020-05-15 22:29:16.862 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:16.862 Status: LUA: End event fired on Conso Vanne 3 voies
2020-05-15 22:29:16.918 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:16.918 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:16.918 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:16.918 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:16.918 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:16.963 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:16.976 Status: LUA: Device based event fired on 'kWh Meter Vanne 3 voies_Utility', value '0.10000000149012'
2020-05-15 22:29:16.976 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:16.976 Status: LUA: End event fired on kWh Meter Vanne 3 voies_Utility
2020-05-15 22:29:16.976 Status: LUA: Device based event fired on 'kWh Meter Vanne 3 voies', value '0.100;1100.000'
2020-05-15 22:29:16.976 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:16.976 Status: LUA: End event fired on kWh Meter Vanne 3 voies
2020-05-15 22:29:17.168 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:17.168 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:17.169 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:17.169 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:17.169 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:17.211 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:17.224 Status: LUA: Device based event fired on 'Lumiere Terrasse_Temperature', value '9.5'
2020-05-15 22:29:17.226 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:17.226 Status: LUA: End event fired on Lumiere Terrasse_Temperature
2020-05-15 22:29:17.226 Status: LUA: Device based event fired on 'Lumiere Terrasse', value '9.5'
2020-05-15 22:29:17.226 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:17.226 Status: LUA: End event fired on Lumiere Terrasse
2020-05-15 22:29:17.474 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:17.474 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:17.474 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:17.475 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:17.475 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:17.517 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:17.530 Status: LUA: Device based event fired on 'conso vmc', value '7.4'
2020-05-15 22:29:17.532 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:17.532 Status: LUA: End event fired on conso vmc
2020-05-15 22:29:17.532 Status: LUA: Device based event fired on 'conso vmc_Utility', value '7.4000000953674'
2020-05-15 22:29:17.532 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:17.532 Status: LUA: End event fired on conso vmc_Utility
2020-05-15 22:29:17.723 Status: LUA: Lancement du script de fermeture
2020-05-15 22:29:17.724 Status: LUA: otherdevices['Store Terrasse'] avant = On
2020-05-15 22:29:17.724 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:17.724 Status: LUA: otherdevices['Store Terrasse'] après = On
2020-05-15 22:29:17.724 Status: LUA: Fin du script de fermeture
2020-05-15 22:29:17.766 Status: LUA: otherdevices['Store Terrasse'] On
2020-05-15 22:29:17.780 Status: LUA: Device based event fired on 'kWh Meter vmc', value '7.400;53200.000'
2020-05-15 22:29:17.781 Status: LUA: otherdevices['Nuit'] On
2020-05-15 22:29:17.781 Status: LUA: End event fired on kWh Meter vmc
2020-05-15 22:29:17.781 Status: LUA: Device based event fired on 'kWh Meter vmc_Utility', value '7.4000000953674'
2020-05-15 22:29:17.781 Status: LUA: otherdevices['Nuit'] On
Dernière modification par vr6man le 15 mai 2020, 22:37, modifié 1 fois.
Re: aide pour réalisation script en lua
Mince, il faudrait que tu désactive le script_device_fermeture_store.lua il fait doublon avec celui que l'on test.
Et dans script_device_store.lua, il faudrait rajouter -- à print('otherdevices[\'Store Terrasse\'] '..otherdevices['Store Terrasse'])
Tu devrais avoir moins de log
Et dans script_device_store.lua, il faudrait rajouter -- à print('otherdevices[\'Store Terrasse\'] '..otherdevices['Store Terrasse'])
Tu devrais avoir moins de log
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos