Page 28 sur 34

Re: aide pour réalisation script en lua

Publié : 15 mai 2020, 22:44
par vr6man
voila j'ai carrément supprimer le script lua dans le répertoire

voici les logs et toujours pas de ligne
  • Domoticz 2020.2
    Accueil
    Interrupteurs
    Scénarios
    Température
    Météo
    Mesures
    Configuration
    Tout
    Statut
    Filtre: X
    2020-05-15 22:43:04.593 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:04.593 Status: LUA: End event fired on kWh Meter Prise Chambre_Utility
    2020-05-15 22:43:04.593 Status: LUA: Device based event fired on 'kWh Meter Prise Chambre', value '0.863;11896.000'
    2020-05-15 22:43:04.593 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:04.593 Status: LUA: End event fired on kWh Meter Prise Chambre
    2020-05-15 22:43:05.046 (ZWAVE) Temp (Volet aurelia)
    2020-05-15 22:43:05.159 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:05.172 Status: LUA: Device based event fired on 'Conso Prise Chambre_Utility', value '0.89999997615814'
    2020-05-15 22:43:05.172 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:05.172 Status: LUA: End event fired on Conso Prise Chambre_Utility
    2020-05-15 22:43:05.172 Status: LUA: Device based event fired on 'Conso Prise Chambre', value '0.9'
    2020-05-15 22:43:05.172 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:05.172 Status: LUA: End event fired on Conso Prise Chambre
    2020-05-15 22:43:05.257 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:05.270 Status: LUA: Device based event fired on 'kWh Meter Prise Chambre_Utility', value '0.8629999756813'
    2020-05-15 22:43:05.270 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:05.270 Status: LUA: End event fired on kWh Meter Prise Chambre_Utility
    2020-05-15 22:43:05.270 Status: LUA: Device based event fired on 'kWh Meter Prise Chambre', value '0.863;11896.000'
    2020-05-15 22:43:05.270 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:05.270 Status: LUA: End event fired on kWh Meter Prise Chambre
    2020-05-15 22:43:05.356 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:05.370 Status: LUA: Device based event fired on 'Lumiere Terrasse', value '9.0'
    2020-05-15 22:43:05.370 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:05.370 Status: LUA: End event fired on Lumiere Terrasse
    2020-05-15 22:43:05.370 Status: LUA: Device based event fired on 'Lumiere Terrasse_Temperature', value '9.0'
    2020-05-15 22:43:05.370 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:05.370 Status: LUA: End event fired on Lumiere Terrasse_Temperature
    2020-05-15 22:43:05.590 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:05.603 Status: LUA: Device based event fired on 'Volet aurelia_Temperature', value '134.0'
    2020-05-15 22:43:05.604 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:05.604 Status: LUA: End event fired on Volet aurelia_Temperature
    2020-05-15 22:43:05.604 Status: LUA: Device based event fired on 'Volet aurelia', value '134.0'
    2020-05-15 22:43:05.604 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:05.604 Status: LUA: End event fired on Volet aurelia
    2020-05-15 22:43:06.972 (ZWAVE) Temp (Volet aurelia)
    2020-05-15 22:43:07.233 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:07.246 Status: LUA: Device based event fired on 'Volet aurelia_Temperature', value '142.0'
    2020-05-15 22:43:07.246 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:07.246 Status: LUA: End event fired on Volet aurelia_Temperature
    2020-05-15 22:43:07.246 Status: LUA: Device based event fired on 'Volet aurelia', value '142.0'
    2020-05-15 22:43:07.246 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:07.246 Status: LUA: End event fired on Volet aurelia
    2020-05-15 22:43:08.756 (ZWAVE) Temp (Lumiere Terrasse)
    2020-05-15 22:43:08.980 (ZWAVE) Temp (Volet aurelia)
    2020-05-15 22:43:09.014 (ZWAVE) General/kWh (kWh Meter Prise Tablettes Entree)
    2020-05-15 22:43:09.059 (ZWAVE) Usage (Conso Prise Tablettes Entree)
    2020-05-15 22:43:09.082 (ZWAVE) General/kWh (kWh Meter Prise Tablettes Entree)
    2020-05-15 22:43:09.092 (ZWAVE) General/Voltage (Voltage Prise Tablettes Entree)
    2020-05-15 22:43:09.125 (ZWAVE) Current (Intensite Prise Tablettes Entree)
    2020-05-15 22:43:09.145 (ZWAVE) Usage (Conso Vanne 3 voies)
    2020-05-15 22:43:09.155 (ZWAVE) General/kWh (kWh Meter Vanne 3 voies)
    2020-05-15 22:43:09.460 (RFXCOM) Temp + Humidity (Sonde Congelateur)
    2020-05-15 22:43:09.044 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:09.059 Status: LUA: Device based event fired on 'Lumiere Terrasse_Temperature', value '9.8000001907349'
    2020-05-15 22:43:09.059 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:09.059 Status: LUA: End event fired on Lumiere Terrasse_Temperature
    2020-05-15 22:43:09.059 Status: LUA: Device based event fired on 'Lumiere Terrasse', value '9.8'
    2020-05-15 22:43:09.059 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:09.059 Status: LUA: End event fired on Lumiere Terrasse
    2020-05-15 22:43:09.294 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:09.307 Status: LUA: Device based event fired on 'Volet aurelia', value '134.0'
    2020-05-15 22:43:09.307 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:09.307 Status: LUA: End event fired on Volet aurelia
    2020-05-15 22:43:09.307 Status: LUA: Device based event fired on 'Volet aurelia_Temperature', value '134.0'
    2020-05-15 22:43:09.307 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:09.307 Status: LUA: End event fired on Volet aurelia_Temperature
    2020-05-15 22:43:09.393 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:09.407 Status: LUA: Device based event fired on 'kWh Meter Prise Tablettes Entree', value '6.126;61262.000'
    2020-05-15 22:43:09.407 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:09.407 Status: LUA: End event fired on kWh Meter Prise Tablettes Entree
    2020-05-15 22:43:09.407 Status: LUA: Device based event fired on 'kWh Meter Prise Tablettes Entree_Utility', value '6.3309998512268'
    2020-05-15 22:43:09.407 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:09.407 Status: LUA: End event fired on kWh Meter Prise Tablettes Entree_Utility
    2020-05-15 22:43:09.493 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:09.507 Status: LUA: Device based event fired on 'Conso Prise Tablettes Entree', value '6.3'
    2020-05-15 22:43:09.507 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:09.507 Status: LUA: End event fired on Conso Prise Tablettes Entree
    2020-05-15 22:43:09.507 Status: LUA: Device based event fired on 'Conso Prise Tablettes Entree_Utility', value '6.3000001907349'
    2020-05-15 22:43:09.507 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:09.507 Status: LUA: End event fired on Conso Prise Tablettes Entree_Utility
    2020-05-15 22:43:10.972 (ZWAVE) Temp (Volet aurelia)
    2020-05-15 22:43:11.261 (ZWAVE) General/kWh (kWh Meter Prise Tablettes Entree)
    2020-05-15 22:43:11.298 (ZWAVE) Usage (Conso Prise Tablettes Entree)
    2020-05-15 22:43:11.306 (ZWAVE) General/kWh (kWh Meter Prise Tablettes Entree)
    2020-05-15 22:43:11.344 (ZWAVE) General/Voltage (Voltage Prise Tablettes Entree)
    2020-05-15 22:43:11.375 (ZWAVE) Current (Intensite Prise Tablettes Entree)
    2020-05-15 22:43:11.973 (ECO-DEVICES) Fetching counters and status data
    2020-05-15 22:43:11.974 (ECO-DEVICES) Fetching Teleinfo 1 data
    2020-05-15 22:43:11.825 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:11.838 Status: LUA: Device based event fired on 'kWh Meter Prise Tablettes Entree', value '6.668;61262.000'
    2020-05-15 22:43:11.838 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:11.838 Status: LUA: End event fired on kWh Meter Prise Tablettes Entree
    2020-05-15 22:43:11.838 Status: LUA: Device based event fired on 'kWh Meter Prise Tablettes Entree_Utility', value '6.6680002212524'
    2020-05-15 22:43:11.838 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:11.838 Status: LUA: End event fired on kWh Meter Prise Tablettes Entree_Utility
    2020-05-15 22:43:11.924 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:11.938 Status: LUA: Device based event fired on 'Voltage Prise Tablettes Entree', value '234.973'
    2020-05-15 22:43:11.938 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:11.938 Status: LUA: End event fired on Voltage Prise Tablettes Entree
    2020-05-15 22:43:11.938 Status: LUA: Device based event fired on 'Voltage Prise Tablettes Entree_Utility', value '234.97300720215'
    2020-05-15 22:43:11.938 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:11.938 Status: LUA: End event fired on Voltage Prise Tablettes Entree_Utility
    2020-05-15 22:43:12.066 (ECO-DEVICES) General/kWh (Teleinfo 1 kWh Heures Creuses)
    2020-05-15 22:43:12.090 (ECO-DEVICES) General/kWh (Teleinfo 1 kWh Heures Pleines)
    2020-05-15 22:43:12.101 (ECO-DEVICES) P1 Smart Meter (Teleinfo 1 kWh Total)
    2020-05-15 22:43:12.111 (ECO-DEVICES) Current (Teleinfo 1 Courant)
    2020-05-15 22:43:12.119 (ECO-DEVICES) General/Percentage (Teleinfo 1 Pourcentage de Charge)
    2020-05-15 22:43:12.973 (ZWAVE) Temp (Volet aurelia)
    2020-05-15 22:43:12.031 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:12.046 Status: LUA: Device based event fired on 'Intensite Prise Tablettes Entree', value '0.1;0.0;0.0'
    2020-05-15 22:43:12.046 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:12.046 Status: LUA: End event fired on Intensite Prise Tablettes Entree
    2020-05-15 22:43:12.299 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:12.314 Status: LUA: Device based event fired on 'Teleinfo 1 kWh Heures Creuses', value '690.000;1255153.000'
    2020-05-15 22:43:12.315 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:12.315 Status: LUA: End event fired on Teleinfo 1 kWh Heures Creuses
    2020-05-15 22:43:12.315 Status: LUA: Device based event fired on 'Teleinfo 1 kWh Heures Creuses_Utility', value '690.0'
    2020-05-15 22:43:12.315 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:12.315 Status: LUA: End event fired on Teleinfo 1 kWh Heures Creuses_Utility
    2020-05-15 22:43:12.560 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:12.588 Status: LUA: Device based event fired on 'Teleinfo 1 kWh Heures Pleines', value '0.000;2042406.000'
    2020-05-15 22:43:12.588 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:12.588 Status: LUA: End event fired on Teleinfo 1 kWh Heures Pleines
    2020-05-15 22:43:12.703 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:12.717 Status: LUA: Device based event fired on 'Teleinfo 1 kWh Total', value '2042406;1255153;0;0;690;0'
    2020-05-15 22:43:12.717 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:12.717 Status: LUA: End event fired on Teleinfo 1 kWh Total
    2020-05-15 22:43:12.717 Status: LUA: Device based event fired on 'Teleinfo 1 kWh Total_Utility', value '690.0'
    2020-05-15 22:43:12.717 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:12.717 Status: LUA: End event fired on Teleinfo 1 kWh Total_Utility
    2020-05-15 22:43:12.808 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:12.822 Status: LUA: Device based event fired on 'Teleinfo 1 Courant', value '3.0;0.0;0.0'
    2020-05-15 22:43:12.822 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:12.822 Status: LUA: End event fired on Teleinfo 1 Courant
    2020-05-15 22:43:12.913 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:12.927 Status: LUA: Device based event fired on 'Teleinfo 1 Pourcentage de Charge_Utility', value '5.0'
    2020-05-15 22:43:12.927 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:12.927 Status: LUA: End event fired on Teleinfo 1 Pourcentage de Charge_Utility
    2020-05-15 22:43:12.927 Status: LUA: Device based event fired on 'Teleinfo 1 Pourcentage de Charge', value '5.00'
    2020-05-15 22:43:12.927 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:12.927 Status: LUA: End event fired on Teleinfo 1 Pourcentage de Charge
    2020-05-15 22:43:13.036 (ZWAVE) Usage (Conso Vanne 3 voies)
    2020-05-15 22:43:13.044 (ZWAVE) General/kWh (kWh Meter Vanne 3 voies)
    2020-05-15 22:43:13.521 (ZWAVE) General/kWh (kWh Meter Prise Tablettes Entree)
    2020-05-15 22:43:13.561 (ZWAVE) Usage (Conso Prise Tablettes Entree)
    2020-05-15 22:43:13.595 (ZWAVE) General/kWh (kWh Meter Prise Tablettes Entree)
    2020-05-15 22:43:13.606 (ZWAVE) General/Voltage (Voltage Prise Tablettes Entree)
    2020-05-15 22:43:13.630 (ZWAVE) Current (Intensite Prise Tablettes Entree)
    2020-05-15 22:43:13.203 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:13.217 Status: LUA: Device based event fired on 'Volet aurelia', value '142.0'
    2020-05-15 22:43:13.217 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:13.217 Status: LUA: End event fired on Volet aurelia
    2020-05-15 22:43:13.217 Status: LUA: Device based event fired on 'Volet aurelia_Temperature', value '142.0'
    2020-05-15 22:43:13.217 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:13.217 Status: LUA: End event fired on Volet aurelia_Temperature
    2020-05-15 22:43:13.445 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:13.459 Status: LUA: Device based event fired on 'Conso Vanne 3 voies', value '1.5'
    2020-05-15 22:43:13.460 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:13.460 Status: LUA: End event fired on Conso Vanne 3 voies
    2020-05-15 22:43:13.460 Status: LUA: Device based event fired on 'Conso Vanne 3 voies_Utility', value '1.5'
    2020-05-15 22:43:13.460 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:13.460 Status: LUA: End event fired on Conso Vanne 3 voies_Utility
    2020-05-15 22:43:13.559 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:13.574 Status: LUA: Device based event fired on 'kWh Meter Vanne 3 voies', value '1.500;1100.000'
    2020-05-15 22:43:13.574 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:13.574 Status: LUA: End event fired on kWh Meter Vanne 3 voies
    2020-05-15 22:43:13.574 Status: LUA: Device based event fired on 'kWh Meter Vanne 3 voies_Utility', value '1.5'
    2020-05-15 22:43:13.574 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:13.574 Status: LUA: End event fired on kWh Meter Vanne 3 voies_Utility
    2020-05-15 22:43:13.800 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:13.813 Status: LUA: Device based event fired on 'kWh Meter Prise Tablettes Entree_Utility', value '7.2220001220703'
    2020-05-15 22:43:13.813 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:13.813 Status: LUA: End event fired on kWh Meter Prise Tablettes Entree_Utility
    2020-05-15 22:43:13.813 Status: LUA: Device based event fired on 'kWh Meter Prise Tablettes Entree', value '6.668;61262.000'
    2020-05-15 22:43:13.813 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:13.813 Status: LUA: End event fired on kWh Meter Prise Tablettes Entree
    2020-05-15 22:43:13.898 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:13.912 Status: LUA: Device based event fired on 'Conso Prise Tablettes Entree', value '7.2'
    2020-05-15 22:43:13.912 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:13.912 Status: LUA: End event fired on Conso Prise Tablettes Entree
    2020-05-15 22:43:13.912 Status: LUA: Device based event fired on 'Conso Prise Tablettes Entree_Utility', value '7.1999998092651'
    2020-05-15 22:43:13.912 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:13.912 Status: LUA: End event fired on Conso Prise Tablettes Entree_Utility
    2020-05-15 22:43:14.183 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:14.196 Status: LUA: Device based event fired on 'kWh Meter Prise Tablettes Entree_Utility', value '7.2220001220703'
    2020-05-15 22:43:14.196 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:14.196 Status: LUA: End event fired on kWh Meter Prise Tablettes Entree_Utility
    2020-05-15 22:43:14.196 Status: LUA: Device based event fired on 'kWh Meter Prise Tablettes Entree', value '7.222;61262.000'
    2020-05-15 22:43:14.196 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:14.196 Status: LUA: End event fired on kWh Meter Prise Tablettes Entree
    2020-05-15 22:43:14.283 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:14.296 Status: LUA: Device based event fired on 'Voltage Prise Tablettes Entree_Utility', value '234.97300720215'
    2020-05-15 22:43:14.296 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:14.297 Status: LUA: End event fired on Voltage Prise Tablettes Entree_Utility
    2020-05-15 22:43:14.297 Status: LUA: Device based event fired on 'Voltage Prise Tablettes Entree', value '234.973'
    2020-05-15 22:43:14.297 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:14.297 Status: LUA: End event fired on Voltage Prise Tablettes Entree
    2020-05-15 22:43:14.383 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:14.396 Status: LUA: Device based event fired on 'Intensite Prise Tablettes Entree', value '0.1;0.0;0.0'
    2020-05-15 22:43:14.396 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:14.396 Status: LUA: End event fired on Intensite Prise Tablettes Entree
    2020-05-15 22:43:15.053 (ZWAVE) Usage (Conso Vanne 3 voies)
    2020-05-15 22:43:15.069 (ZWAVE) General/kWh (kWh Meter Vanne 3 voies)
    2020-05-15 22:43:15.770 (ZWAVE) General/kWh (kWh Meter Prise Tablettes Entree)
    2020-05-15 22:43:15.807 (ZWAVE) Usage (Conso Prise Tablettes Entree)
    2020-05-15 22:43:15.817 (ZWAVE) General/kWh (kWh Meter Prise Tablettes Entree)
    2020-05-15 22:43:15.844 (ZWAVE) General/Voltage (Voltage Prise Tablettes Entree)
    2020-05-15 22:43:15.883 (ZWAVE) Current (Intensite Prise Tablettes Entree)
    2020-05-15 22:43:15.262 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:15.275 Status: LUA: Device based event fired on 'Volet aurelia', value '138.0'
    2020-05-15 22:43:15.275 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:15.275 Status: LUA: End event fired on Volet aurelia
    2020-05-15 22:43:15.275 Status: LUA: Device based event fired on 'Volet aurelia_Temperature', value '138.0'
    2020-05-15 22:43:15.275 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:15.275 Status: LUA: End event fired on Volet aurelia_Temperature
    2020-05-15 22:43:15.499 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:15.512 Status: LUA: Device based event fired on 'Conso Vanne 3 voies_Utility', value '0.10000000149012'
    2020-05-15 22:43:15.512 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:15.512 Status: LUA: End event fired on Conso Vanne 3 voies_Utility
    2020-05-15 22:43:15.512 Status: LUA: Device based event fired on 'Conso Vanne 3 voies', value '0.1'
    2020-05-15 22:43:15.512 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:15.512 Status: LUA: End event fired on Conso Vanne 3 voies
    2020-05-15 22:43:15.598 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:15.611 Status: LUA: Device based event fired on 'kWh Meter Vanne 3 voies_Utility', value '0.10000000149012'
    2020-05-15 22:43:15.611 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:15.611 Status: LUA: End event fired on kWh Meter Vanne 3 voies_Utility
    2020-05-15 22:43:15.611 Status: LUA: Device based event fired on 'kWh Meter Vanne 3 voies', value '0.100;1100.000'
    2020-05-15 22:43:15.612 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:15.612 Status: LUA: End event fired on kWh Meter Vanne 3 voies
    2020-05-15 22:43:15.998 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:16.764 (ZWAVE) Temp (Lumiere Terrasse)
    2020-05-15 22:43:16.981 (ZWAVE) Temp (Volet aurelia)
    2020-05-15 22:43:16.011 Status: LUA: Device based event fired on 'kWh Meter Prise Tablettes Entree', value '7.222;61262.000'
    2020-05-15 22:43:16.011 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:16.011 Status: LUA: End event fired on kWh Meter Prise Tablettes Entree
    2020-05-15 22:43:16.012 Status: LUA: Device based event fired on 'kWh Meter Prise Tablettes Entree_Utility', value '6.686999797821'
    2020-05-15 22:43:16.012 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:16.012 Status: LUA: End event fired on kWh Meter Prise Tablettes Entree_Utility
    2020-05-15 22:43:16.237 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:16.251 Status: LUA: Device based event fired on 'Conso Prise Tablettes Entree', value '6.7'
    2020-05-15 22:43:16.251 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:16.251 Status: LUA: End event fired on Conso Prise Tablettes Entree
    2020-05-15 22:43:16.251 Status: LUA: Device based event fired on 'Conso Prise Tablettes Entree_Utility', value '6.6999998092651'
    2020-05-15 22:43:16.251 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:16.251 Status: LUA: End event fired on Conso Prise Tablettes Entree_Utility
    2020-05-15 22:43:16.336 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:16.349 Status: LUA: Device based event fired on 'kWh Meter Prise Tablettes Entree', value '6.687;61262.000'
    2020-05-15 22:43:16.349 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:16.350 Status: LUA: End event fired on kWh Meter Prise Tablettes Entree
    2020-05-15 22:43:16.350 Status: LUA: Device based event fired on 'kWh Meter Prise Tablettes Entree_Utility', value '6.686999797821'
    2020-05-15 22:43:16.350 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:16.350 Status: LUA: End event fired on kWh Meter Prise Tablettes Entree_Utility
    2020-05-15 22:43:16.437 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:16.450 Status: LUA: Device based event fired on 'Voltage Prise Tablettes Entree', value '235.281'
    2020-05-15 22:43:16.450 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:16.450 Status: LUA: End event fired on Voltage Prise Tablettes Entree
    2020-05-15 22:43:16.450 Status: LUA: Device based event fired on 'Voltage Prise Tablettes Entree_Utility', value '235.28100585938'
    2020-05-15 22:43:16.450 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:16.450 Status: LUA: End event fired on Voltage Prise Tablettes Entree_Utility
    2020-05-15 22:43:16.537 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:16.550 Status: LUA: Device based event fired on 'Intensite Prise Tablettes Entree', value '0.1;0.0;0.0'
    2020-05-15 22:43:16.550 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:16.550 Status: LUA: End event fired on Intensite Prise Tablettes Entree
    2020-05-15 22:43:16.987 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:17.001 Status: LUA: Device based event fired on 'Lumiere Terrasse_Temperature', value '9.1000003814697'
    2020-05-15 22:43:17.001 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:17.001 Status: LUA: End event fired on Lumiere Terrasse_Temperature
    2020-05-15 22:43:17.001 Status: LUA: Device based event fired on 'Lumiere Terrasse', value '9.1'
    2020-05-15 22:43:17.001 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:17.001 Status: LUA: End event fired on Lumiere Terrasse
    2020-05-15 22:43:17.223 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:17.237 Status: LUA: Device based event fired on 'Volet aurelia_Temperature', value '134.0'
    2020-05-15 22:43:17.237 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:17.237 Status: LUA: End event fired on Volet aurelia_Temperature
    2020-05-15 22:43:17.237 Status: LUA: Device based event fired on 'Volet aurelia', value '134.0'
    2020-05-15 22:43:17.237 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:17.237 Status: LUA: End event fired on Volet aurelia
    2020-05-15 22:43:17.507 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:17.520 Status: LUA: Device based event fired on 'CPU_Usage RPI_Utility', value '13.460000038147'
    2020-05-15 22:43:17.520 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:17.520 Status: LUA: End event fired on CPU_Usage RPI_Utility
    2020-05-15 22:43:17.520 Status: LUA: Device based event fired on 'CPU_Usage RPI', value '13.46'
    2020-05-15 22:43:17.520 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:17.520 Status: LUA: End event fired on CPU_Usage RPI
    2020-05-15 22:43:19.081 (ZWAVE) Usage (Conso Vanne 3 voies)
    2020-05-15 22:43:19.123 (ZWAVE) General/kWh (kWh Meter Vanne 3 voies)
    2020-05-15 22:43:19.364 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:19.378 Status: LUA: Device based event fired on 'Conso Vanne 3 voies', value '1.2'
    2020-05-15 22:43:19.378 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:19.378 Status: LUA: End event fired on Conso Vanne 3 voies
    2020-05-15 22:43:19.378 Status: LUA: Device based event fired on 'Conso Vanne 3 voies_Utility', value '1.2000000476837'
    2020-05-15 22:43:19.378 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:19.378 Status: LUA: End event fired on Conso Vanne 3 voies_Utility
    2020-05-15 22:43:19.602 Status: LUA: otherdevices['Store Terrasse'] On
    2020-05-15 22:43:19.615 Status: LUA: Device based event fired on 'kWh Meter Vanne 3 voies_Utility', value '1.2000000476837'
    2020-05-15 22:43:19.615 Status: LUA: otherdevices['Nuit'] On
    2020-05-15 22:43:19.615 Status: LUA: End event fired on kWh Meter Vanne 3 voies_Utility
    2020-05-15 22:43:19.615 Status: LUA: Device based event fired on 'kWh Meter Vanne 3 voies', value '1.200;1100.000'
    2020-05-15 22:43:19.616 Status: LUA: otherdevices['Nuit'] On

Re: aide pour réalisation script en lua

Publié : 15 mai 2020, 22:46
par vil1driver
Je ne sais pas si ça peut aider..
Dans ma signature modules.lua
Une fonction logToFile permet d'écrire dans un fichier ce que l'on souhaites.

Ça permettrait de n'avoir que ce qui est souhaité et d'avancer parce que là les meilleures volontés vont s'essouffler

Re: aide pour réalisation script en lua

Publié : 15 mai 2020, 22:54
par Keros
Ah ouais ça pourrait bien nous aider. Merci Vil1driver ;)

vr6man, tu peux regarder pour implanter le script en question et extraire les log qui correspondent au moment ou tu actives Nuit ?

Re: aide pour réalisation script en lua

Publié : 15 mai 2020, 23:00
par vr6man
oui mais la ca dépasse mes compétences

je dois faire quoi je vois bien le module.lua dans la signature mais après ?

Re: aide pour réalisation script en lua

Publié : 15 mai 2020, 23:10
par Keros
Je regarde et je te dis.

Re: aide pour réalisation script en lua

Publié : 15 mai 2020, 23:16
par Keros
C'est bon je vois ce qu'il y a à faire.

Avant que je te donne le script modifié, tu me confirme que tu es sous rapberry pour faire tourner DomoticZ et que tu as le dossier /tmp ?

Re: aide pour réalisation script en lua

Publié : 15 mai 2020, 23:21
par vr6man
oui je suis sous RPI3 et j'ai bien un dossier /tmp

Re: aide pour réalisation script en lua

Publié : 15 mai 2020, 23:40
par Keros
Grosso modo, je vais t'expliquer ce que l'on va faire : grace au code de Vil1driver que j'ai intégré dans le script, on va écrire les infos que l'on cherchait dans un fichier log_test.txt dans le dossier /tmp.

Lis bien toutes les manipulations avant de te lancer :

1- On remplace le script dans Configuration / Plus d'options / Evènements par celui-ci :

Code : Tout sélectionner

function logToFile(data)
	f = assert(io.open('/tmp/log_test.txt',"a"))
	f:write(os.date("%c")..' '..data..'\n')
	f:close()
end

commandArray = {}

-- loop through all the changed devices
for deviceName,deviceValue in pairs(devicechanged) do
    print ("Device based event fired on '"..deviceName.."', value '"..tostring(deviceValue).."'")
    logToFile("Device based event fired on '"..deviceName.."', value '"..tostring(deviceValue).."'")
    print('otherdevices[\'Nuit\'] '..otherdevices['Nuit'])
    logToFile('otherdevices[\'Nuit\'] '..otherdevices['Nuit'])
    if (deviceName=='Nuit') then
    	print("Device "..deviceName.." detected")
    	logToFile("Device "..deviceName.." detected")
        if deviceValue == "On" then
            	print("Nuit is On")
            	logToFile("Nuit is On")
            	print('otherdevices[\'Store Terrasse\'] '..otherdevices['Store Terrasse'])
            	logToFile('otherdevices[\'Store Terrasse\'] '..otherdevices['Store Terrasse'])
		commandArray['Store Terrasse']='Off'
        end
    end
print("End event fired on "..deviceName)
logToFile("End event fired on "..deviceName)
end

return commandArray

2- Tu mets les variables Nuit à Off et Store Terrasse à On
3- Tu passes Nuit à Off
4- Tu désactives le script que l'on vient de remplacer afin d’arrêter l'écriture des logs.

Ca malheureusement c'était la partie facile. Maintenant il faut qu'on aille sur le Raspberry pour lire les données. Voilà ce que j'ai du faire :

5- Tu ouvres un terminal et tu rentres la commande

Code : Tout sélectionner

cd /tmp
6- Puis on va ouvrir un éditeur en mode administrateur

Code : Tout sélectionner

sudo nano log_test.txt
Et normalement il devrait y avoir ce qu'on cherche. Tu copies ce qu'il y a dans le fichier et tu nous le mets ici.

Re: aide pour réalisation script en lua

Publié : 16 mai 2020, 17:48
par vil1driver
Pour quiter nano

Code : Tout sélectionner

ctrl + x

Re: aide pour réalisation script en lua

Publié : 16 mai 2020, 20:03
par Keros
Oui, j'étais bloqué en essayant le bloc note pour ouvrir le fichier. Plutôt que de chercher 3 heures, j'ai proposé le sudo nano. Il faudra aussi une sudo rm pour supprimer le fichier mais on verra ça dans un deuxième temps.

Vr6man, on attend ton retour :)