Aller au contenu

PITP2

Membres confirmés
  • Compteur de contenus

    4 273
  • Inscription

  • Dernière visite

  • Jours gagnés

    64

Tout ce qui a été posté par PITP2

  1. Merci mais le lien pointe vers ton post
  2. Il y a un post à ce sujet ici http://www.domotique-info.fr/2015/11/le-thermostat-z-wave-heatit/
  3. As tu essayé de purger le cache de ton navigateur ?
  4. En fait c'était juste pour savoir si je n'avais pas commenté une ligne en trop encore Ton VD me va bien comme cela il est parfait
  5. PITP2

    Plugin Netatmo

    Voila qui peut allier ton côté geek et ta passion pour le bois http://www.lesimprimantes3d.fr/imprimer-en-bois-20130918/
  6. C'etait bien cela Grand merci j'ai vu que l'on pouvait commenter toutes les lignes alors j'y suis allé gaiement En tout cas merci pour ton support un dimanche ... cela compte au moins triple Par contre c'est normal que l'on ne reçoive pas d'autres notifs autre que le passage à ON ?
  7. PITP2

    Plugin Netatmo

    Cela fait un an qu'il est dehors ainsi et il ne s'est jamais envolé et je t'assure qu'il y a du vent ici mais je te l'accorde ce n'est pas le top
  8. Et bien justement il ne correspond à rien dutout ... cf mon code --[[ %% autostart %% properties %% globals Simu_presence --]] --------------------------------------- local version = "3.6.1"; -- YAPS Presence Simulation by SebcBien -- August 2015 --------------------------------------- --V3.6.1 -- added new notifications engine (sms, freesms, push, email) -- fixed bug "attempt to concatenate local 'deviceID' (a nil value)" --V3.5.2 - start push sent by email --V3.5.1 -- Fixed launch between midnight and endtime (if endtime is after midnight) -- clean up code midnight-endtime --V3.3.2 -- renamed all variables for more readability --V3.3.0 -- Fixed Override bug (no sleep time between lights) --V3.2.3 -- added sunset shifting possibility (add or remove minutes to startime -- added time stamp to push messages -- formated messages -- optimisation -- cleanup --V3.1.0 -- "complete" rewriting with unix times -- modified end time notification impacted by random and smooth TurnOff (End_simulation_time impact) -- exit is now exactly at End_simulation_time -- added smooth cut off of lights at ending time (function not triggered with deactivation) --V2.6.6 -- clean up debug messages -- added free sms notifications -- second fix to looping days bug --V2.6.0 to V2.6.5 -- Fixed bug when Random_max_TurnOff_duration = 0 -- Probably fixed End_simulation_time bug calculation when looping for days du to days are shorter now than the previous day -- Fixed bug not turning on Lights_On_at_end_Simulation when exiting Simulation -- added random end time + small stability changes and cleaning -- Added array of lights to turn on after Simulation, ONLY if Simu_presence = 1 (normal ending, not ended by setting Simu_presence to 0) -- Added the possibility to not have an always on lamp -- Added naming of devices in the debug during Simulation -- Added the possibility to select always on light during Simulation --V2.2.0 to 2.5.0 -- fixed Simulation starting if restarted between End_simulation_time & midnight -- fixed big bug Simulation restarting after end time -- small notification and debug changes -- Rewriting the engine -- now relaunch automatically the next day, even if Simu_presence has not changed -- Added Manual Stop variable -- added list of mobiles if (fibaro:countScenes() > 1) then fibaro:debug("Scene already active! Aborting this new instance !!"); fibaro:abort(); end --------------------- USER SETTINGS -------------------------------- local id = { ADMIN = 2, LUMIERE_TV = 6, LUMIERE_CHEMINEE = 9, LUMIERE_PALIER_CAVE = 27, LUMIERE_EXT = 239, LUMIERE_VERANDA_GAUCHE = 12, LUMIERE_VERANDA_DROITE = 14, LUMIERE_VERANDA_HAUT = 23, LUMIERE_BUREAU = 439, IPHONE_PHILIPPE = 1950 } local Stop_hour = "01"; -- Hour when you want Simulation to stop local Stop_minute = "30"; -- Minute of the hour you want Simulation to stop -- note 1: the script will not exit while waiting the random time of the last light turned on. So end time can be longer than specified end time. (even more with var Random_max_TurnOff_duration) -- note 2: if the global variable changes during the same wait time as above, it will exit immediately (when back home while Simulation runs) local Sunset_offset = -15 -- number of minutes before or after sunset to activate Simulation local Random_max_duration = 30; -- random time of light change in minutes --> here each device is on maximum 30min local Random_max_TurnOff_duration = 25; -- random time to add at the stop hour+stop minute so the Simulation can be more variable (0 to deactivate) local Lights_always_on = {id["LUMIERE_BUREAU"]} -- IDs of lights who will always stay on during Simulation - leave empty array if none -> {} local Random_lights = {id["LUMIERE_TV"],id["LUMIERE_CHEMINEE"],id["LUMIERE_PALIER_CAVE"],id["LUMIERE_EXT"],id["LUMIERE_VERANDA_GAUCHE"],id["LUMIERE_VERANDA_DROITE"],id["LUMIERE_VERANDA_HAUT"]} -- IDs of lights to use in Simulation --local Random_lights = {id["LAMPE_HALL"],id["LAMPE_CELLIER"],id["LAMPE_CH_AMIS"]} -- Reduced set for test purposes --local Lights_On_at_end_Simulation = 0; -- If next line is commented, no light will turn on after Simulation ends --local Lights_On_at_end_Simulation = id["LAMPE_COULOIR"]; -- ID of a light (Only One) to turn on after Simulation ends (at specified Stop_hour & Stop_minute). Comment this line to turn off this feature --local Lights_On_if_Simulation_deactivated = 0; -- If next line is commented, no light will turn on after Simulation is stopped (by putting Simu_presence to 0) --local Lights_On_if_Simulation_deactivated = id["LAMPE_HALL"]; -- ID of a light (Only One) to turn on after Simulation is stopped (Simulation_). Comment this line to turn off this feature YAPS_Engine = {}; YAPS_Engine.notifications = true; -- send notifications YAPS_Engine.notificationTypes = {"push", "email"}; --notification types {"push", "email", "sms"} but they are overriden in the code YAPS_Engine.Activate_FreeSms = false; -- activate push with Activate_FreeSms (Activate_Push must be true also) YAPS_Engine.smartphoneID = {id["IPHONE_PHILIPPE"]}; -- Smartphone Id to send push to. {id1, id2, id3} YAPS_Engine.userID = {id["ADMIN"]}; -- User Id to send email to. {id1, id2, id3} YAPS_Engine.sms = { ["VD_ID"] = 0, -- Virtual Device ID ["VD_Button"] = "1", -- Virtual Device Button ["VG_Name"] = "SMS"}; -- Global Variable Name --------------------- USER SETTINGS END ----------------------------
  9. Je viens d'essayer ton nouveau code mais j'ai toujours cette erreur ligne 252 mais uniquement lorsque je passe à OFF
  10. Extra le dialogue à la Star Wars @did Parle je t’écoute
  11. PITP2

    Plugin Netatmo

    Le mien est posé sur la table de jardin, et vu que je ne la rentre pas l'hiver cela convient très bien
  12. J'ai effectué la modif et le comportement est bien mieux Merci :-) J'arrive à activer ON, ONover mais lorsque j'appuie ensuite sur OFF j'ai ceci en fin de script [DEBUG] 15:54:04: line 252: attempt to concatenate local 'deviceID' (a nil value) [DEBUG] 15:38:40: Sun 29/11 Presence Simulation | v3.5.2 Starting up [DEBUG] 15:38:40: Sun 29/11 -------------------------------------------------------------------------- [DEBUG] 15:38:40: Sun 29/11 Current Unix Time: 1448807920 [DEBUG] 15:38:40: Sun 29/11 converted Original planed End_simulation_time: 01:30 to Unix Time: 1448757000) [DEBUG] 15:38:40: Sun 29/11 converted Midnight: 0:0 to Unix Time: 1448751600) [DEBUG] 15:38:40: Sun 29/11 converted Sunset: 16:41 to Unix Time: 1448811660) [DEBUG] 15:38:40: Sun 29/11 stop hour <= 12, Added 24H to End_simulation_time (End_simulation_time is ending after midnignt) [DEBUG] 15:38:40: Sun 29/11 New End_simulation_time: 1448843400 [DEBUG] 15:38:40: Sun 29/11 Calculated sleeping between each turn off: 2.8571428571429 min [DEBUG] 15:38:40: Sun 29/11 End_simulation_time_with_random_max_TurnOff: 1448844600 [DEBUG] 15:38:40: Sun 29/11 Reverse converted Unix Time of Sunset unix time : 1448810760 To: 16:26 [DEBUG] 15:38:40: Sun 29/11 Reverse converted Unix Time of Sunset unix time : 1448810760 To: 16:26 [DEBUG] 15:38:40: Sun 29/11 Sunset is at 16:41 + Sunset Shift of -15min = Start Time at 16:26 [DEBUG] 15:38:40: Sun 29/11 Reverse converted Unix Time of End Simulation : 1448843400 To: 01:30 [DEBUG] 15:38:40: Sun 29/11 End of Simulation: 01:30 + random of 25min [DEBUG] 15:38:40: Sun 29/11 Checking for actions every minute. [DEBUG] 15:38:40: Sun 29/11 Current Unix Time: 1448807920 [DEBUG] 15:38:40: Sun 29/11 converted Original planed End_simulation_time: 01:30 to Unix Time: 1448757000) [DEBUG] 15:38:40: Sun 29/11 converted Midnight: 0:0 to Unix Time: 1448751600) [DEBUG] 15:38:40: Sun 29/11 converted Sunset: 16:41 to Unix Time: 1448811660) [DEBUG] 15:38:40: Sun 29/11 stop hour <= 12, Added 24H to End_simulation_time (End_simulation_time is ending after midnignt) [DEBUG] 15:38:40: Sun 29/11 New End_simulation_time: 1448843400 [DEBUG] 15:38:40: Sun 29/11 Calculated sleeping between each turn off: 0.71428571428571 min [DEBUG] 15:38:40: Sun 29/11 End_simulation_time_with_random_max_TurnOff: 1448843700 [DEBUG] 15:38:40: Sun 29/11 Simu_presence = 0, Aborting Simulation scene [DEBUG] 15:39:05: Sun 29/11 Presence Simulation | v3.5.2 Starting up [DEBUG] 15:39:05: Sun 29/11 -------------------------------------------------------------------------- [DEBUG] 15:39:05: Sun 29/11 Current Unix Time: 1448807945 [DEBUG] 15:39:05: Sun 29/11 converted Original planed End_simulation_time: 01:30 to Unix Time: 1448757000) [DEBUG] 15:39:05: Sun 29/11 converted Midnight: 0:0 to Unix Time: 1448751600) [DEBUG] 15:39:05: Sun 29/11 converted Sunset: 16:41 to Unix Time: 1448811660) [DEBUG] 15:39:05: Sun 29/11 stop hour <= 12, Added 24H to End_simulation_time (End_simulation_time is ending after midnignt) [DEBUG] 15:39:05: Sun 29/11 New End_simulation_time: 1448843400 [DEBUG] 15:39:05: Sun 29/11 Calculated sleeping between each turn off: 2.8571428571429 min [DEBUG] 15:39:05: Sun 29/11 End_simulation_time_with_random_max_TurnOff: 1448844600 [DEBUG] 15:39:05: Sun 29/11 Reverse converted Unix Time of Sunset unix time : 1448810760 To: 16:26 [DEBUG] 15:39:05: Sun 29/11 Reverse converted Unix Time of Sunset unix time : 1448810760 To: 16:26 [DEBUG] 15:39:05: Sun 29/11 Sunset is at 16:41 + Sunset Shift of -15min = Start Time at 16:26 [DEBUG] 15:39:05: Sun 29/11 Reverse converted Unix Time of End Simulation : 1448843400 To: 01:30 [DEBUG] 15:39:05: Sun 29/11 End of Simulation: 01:30 + random of 25min [DEBUG] 15:39:05: Sun 29/11 Checking for actions every minute. [DEBUG] 15:39:05: Sun 29/11 Current Unix Time: 1448807945 [DEBUG] 15:39:05: Sun 29/11 converted Original planed End_simulation_time: 01:30 to Unix Time: 1448757000) [DEBUG] 15:39:05: Sun 29/11 converted Midnight: 0:0 to Unix Time: 1448751600) [DEBUG] 15:39:05: Sun 29/11 converted Sunset: 16:41 to Unix Time: 1448811660) [DEBUG] 15:39:05: Sun 29/11 stop hour <= 12, Added 24H to End_simulation_time (End_simulation_time is ending after midnignt) [DEBUG] 15:39:05: Sun 29/11 New End_simulation_time: 1448843400 [DEBUG] 15:39:05: Sun 29/11 Calculated sleeping between each turn off: 0.71428571428571 min [DEBUG] 15:39:05: Sun 29/11 End_simulation_time_with_random_max_TurnOff: 1448843700 [DEBUG] 15:39:05: Sun 29/11 Reverse converted Unix Time of Sunset unix time : 1448810760 To: 16:26 [DEBUG] 15:39:05: Sun 29/11 Sunset is at 16:41 + Sunset Shift of -15min = Start Time at 16:26 [DEBUG] 15:39:05: Sun 29/11 Reverse converted Unix Time of End Simulation : 1448843400 To: 01:30 [DEBUG] 15:39:05: Sun 29/11 Reverse converted Unix Time of End Simulation : 1448843700 To: 01:35 [DEBUG] 15:39:05: Sun 29/11 End of Simulation: 01:30 + random of 25min = 01:35 [DEBUG] 15:39:05: Sun 29/11 Now, checking for actions every minute. Next notify: in 2 hours [DEBUG] 15:40:05: Sun 29/11 Current Unix Time: 1448808005 [DEBUG] 15:40:05: Sun 29/11 converted Original planed End_simulation_time: 01:30 to Unix Time: 1448757000) [DEBUG] 15:40:05: Sun 29/11 converted Midnight: 0:0 to Unix Time: 1448751600) [DEBUG] 15:40:05: Sun 29/11 converted Sunset: 16:41 to Unix Time: 1448811660) [DEBUG] 15:40:05: Sun 29/11 stop hour <= 12, Added 24H to End_simulation_time (End_simulation_time is ending after midnignt) [DEBUG] 15:40:05: Sun 29/11 New End_simulation_time: 1448843400 [DEBUG] 15:40:05: Sun 29/11 Calculated sleeping between each turn off: 2.8571428571429 min [DEBUG] 15:40:05: Sun 29/11 End_simulation_time_with_random_max_TurnOff: 1448844600 [DEBUG] 15:41:05: Sun 29/11 Current Unix Time: 1448808065 [DEBUG] 15:41:05: Sun 29/11 converted Original planed End_simulation_time: 01:30 to Unix Time: 1448757000) [DEBUG] 15:41:05: Sun 29/11 converted Midnight: 0:0 to Unix Time: 1448751600) [DEBUG] 15:41:05: Sun 29/11 converted Sunset: 16:41 to Unix Time: 1448811660) [DEBUG] 15:41:05: Sun 29/11 stop hour <= 12, Added 24H to End_simulation_time (End_simulation_time is ending after midnignt) [DEBUG] 15:41:05: Sun 29/11 New End_simulation_time: 1448843400 [DEBUG] 15:41:05: Sun 29/11 Calculated sleeping between each turn off: 2 min [DEBUG] 15:41:05: Sun 29/11 End_simulation_time_with_random_max_TurnOff: 1448844240 [DEBUG] 15:42:05: Sun 29/11 Current Unix Time: 1448808125 [DEBUG] 15:42:05: Sun 29/11 converted Original planed End_simulation_time: 01:30 to Unix Time: 1448757000) [DEBUG] 15:42:05: Sun 29/11 converted Midnight: 0:0 to Unix Time: 1448751600) [DEBUG] 15:42:05: Sun 29/11 converted Sunset: 16:41 to Unix Time: 1448811660) [DEBUG] 15:42:05: Sun 29/11 stop hour <= 12, Added 24H to End_simulation_time (End_simulation_time is ending after midnignt) [DEBUG] 15:42:05: Sun 29/11 New End_simulation_time: 1448843400 [DEBUG] 15:42:05: Sun 29/11 Calculated sleeping between each turn off: 2.2857142857143 min [DEBUG] 15:42:05: Sun 29/11 End_simulation_time_with_random_max_TurnOff: 1448844360 [DEBUG] 15:42:05: Sun 29/11 Simu_presence = 0, Aborting Simulation scene [DEBUG] 15:44:31: Sun 29/11 Presence Simulation | v3.5.2 Starting up [DEBUG] 15:44:31: Sun 29/11 -------------------------------------------------------------------------- [DEBUG] 15:44:31: Sun 29/11 Current Unix Time: 1448808271 [DEBUG] 15:44:31: Sun 29/11 converted Original planed End_simulation_time: 01:30 to Unix Time: 1448757000) [DEBUG] 15:44:31: Sun 29/11 converted Midnight: 0:0 to Unix Time: 1448751600) [DEBUG] 15:44:31: Sun 29/11 converted Sunset: 16:41 to Unix Time: 1448811660) [DEBUG] 15:44:31: Sun 29/11 stop hour <= 12, Added 24H to End_simulation_time (End_simulation_time is ending after midnignt) [DEBUG] 15:44:31: Sun 29/11 New End_simulation_time: 1448843400 [DEBUG] 15:44:31: Sun 29/11 Calculated sleeping between each turn off: 2.8571428571429 min [DEBUG] 15:44:31: Sun 29/11 End_simulation_time_with_random_max_TurnOff: 1448844600 [DEBUG] 15:44:31: Sun 29/11 Reverse converted Unix Time of Sunset unix time : 1448810760 To: 16:26 [DEBUG] 15:44:31: Sun 29/11 Reverse converted Unix Time of Sunset unix time : 1448810760 To: 16:26 [DEBUG] 15:44:31: Sun 29/11 Sunset is at 16:41 + Sunset Shift of -15min = Start Time at 16:26 [DEBUG] 15:44:31: Sun 29/11 Reverse converted Unix Time of End Simulation : 1448843400 To: 01:30 [DEBUG] 15:44:31: Sun 29/11 End of Simulation: 01:30 + random of 25min [DEBUG] 15:44:31: Sun 29/11 Checking for actions every minute. [DEBUG] 15:44:31: Sun 29/11 Current Unix Time: 1448808271 [DEBUG] 15:44:31: Sun 29/11 converted Original planed End_simulation_time: 01:30 to Unix Time: 1448757000) [DEBUG] 15:44:31: Sun 29/11 converted Midnight: 0:0 to Unix Time: 1448751600) [DEBUG] 15:44:31: Sun 29/11 converted Sunset: 16:41 to Unix Time: 1448811660) [DEBUG] 15:44:31: Sun 29/11 stop hour <= 12, Added 24H to End_simulation_time (End_simulation_time is ending after midnignt) [DEBUG] 15:44:31: Sun 29/11 New End_simulation_time: 1448843400 [DEBUG] 15:44:31: Sun 29/11 Calculated sleeping between each turn off: 0.71428571428571 min [DEBUG] 15:44:31: Sun 29/11 End_simulation_time_with_random_max_TurnOff: 1448843700 [DEBUG] 15:44:31: Sun 29/11 Manual Override Activated -> Simulation ON [DEBUG] 15:44:31: Sun 29/11 Reverse converted Unix Time of End_simulation_time : 1448843400 To: 01:30 [DEBUG] 15:44:31: Sun 29/11 Reverse converted Unix Time of End_simulation_time_with_random_max_TurnOff : 1448843700 To: 01:35 [DEBUG] 15:44:31: Sun 29/11 Push message (15:44 Presence Simulation started. Will stop at: 01:30 + rand(25min) : 01:35) sent to mobile: 1950 [DEBUG] 15:44:31: Sun 29/11 Reverse converted Unix Time of End_simulation_time : 1448843400 To: 01:30 [DEBUG] 15:44:31: Sun 29/11 Reverse converted Unix Time of End_simulation_time_with_random_max_TurnOff : 1448843700 To: 01:35 [DEBUG] 15:44:31: Sun 29/11 Presence Simulation started. Will stop at: 01:30 + rand(25min) : 01:35 [DEBUG] 15:44:31: Sun 29/11 Turning On Always_On lights: [DEBUG] 15:44:31: Sun 29/11 Device: Lumiere Turned On [DEBUG] 15:44:31: Sun 29/11 Now randomizing other lights... [DEBUG] 15:44:32: Sun 29/11 light ID:Lumiere Palier Cave status:1 [DEBUG] 15:44:32: Sun 29/11 Entering loop of 23.05 minutes [DEBUG] 15:50:46: Sun 29/11 Exiting loop of 23.05 minutes [DEBUG] 15:50:46: Sun 29/11 TurnOff All Simulation lights! [DEBUG] 15:50:46: Sun 29/11 Device: Lumiere TV Off [DEBUG] 15:50:46: Sun 29/11 Sleeping 0 minute(s) before next TurnOff [DEBUG] 15:50:46: Sun 29/11 Device: Prise Lum Cheminee Off [DEBUG] 15:50:46: Sun 29/11 Sleeping 0 minute(s) before next TurnOff [DEBUG] 15:50:46: Sun 29/11 Device: Lumiere Palier Cave Off [DEBUG] 15:50:46: Sun 29/11 Sleeping 0 minute(s) before next TurnOff [DEBUG] 15:50:46: Sun 29/11 Device: Lumiere Exterieur Off [DEBUG] 15:50:46: Sun 29/11 Sleeping 0 minute(s) before next TurnOff [DEBUG] 15:50:46: Sun 29/11 Device: Lumiere Veranda G Off [DEBUG] 15:50:46: Sun 29/11 Sleeping 0 minute(s) before next TurnOff [DEBUG] 15:50:46: Sun 29/11 Device: Lumiere Veranda D Off [DEBUG] 15:50:46: Sun 29/11 Sleeping 0 minute(s) before next TurnOff [DEBUG] 15:50:46: Sun 29/11 Device: Lumiere Veranda H Off [DEBUG] 15:50:46: Sun 29/11 Sleeping 0 minute(s) before next TurnOff [DEBUG] 15:50:46: Sun 29/11 Device: Lumiere Escalier Off [DEBUG] 15:50:46: Sun 29/11 TurnOff All Always_On lights! [DEBUG] 15:50:46: Sun 29/11 Device: Lumiere Off [DEBUG] 15:50:46: line 252: attempt to concatenate local 'deviceID' (a nil value) [DEBUG] 15:52:46: Sun 29/11 Presence Simulation | v3.5.2 Starting up [DEBUG] 15:52:46: Sun 29/11 -------------------------------------------------------------------------- [DEBUG] 15:52:46: Sun 29/11 Current Unix Time: 1448808766 [DEBUG] 15:52:46: Sun 29/11 converted Original planed End_simulation_time: 01:30 to Unix Time: 1448757000) [DEBUG] 15:52:46: Sun 29/11 converted Midnight: 0:0 to Unix Time: 1448751600) [DEBUG] 15:52:46: Sun 29/11 converted Sunset: 16:41 to Unix Time: 1448811660) [DEBUG] 15:52:46: Sun 29/11 stop hour <= 12, Added 24H to End_simulation_time (End_simulation_time is ending after midnignt) [DEBUG] 15:52:46: Sun 29/11 New End_simulation_time: 1448843400 [DEBUG] 15:52:46: Sun 29/11 Calculated sleeping between each turn off: 2.8571428571429 min [DEBUG] 15:52:46: Sun 29/11 End_simulation_time_with_random_max_TurnOff: 1448844600 [DEBUG] 15:52:46: Sun 29/11 Reverse converted Unix Time of Sunset unix time : 1448810760 To: 16:26 [DEBUG] 15:52:46: Sun 29/11 Reverse converted Unix Time of Sunset unix time : 1448810760 To: 16:26 [DEBUG] 15:52:46: Sun 29/11 Sunset is at 16:41 + Sunset Shift of -15min = Start Time at 16:26 [DEBUG] 15:52:46: Sun 29/11 Reverse converted Unix Time of End Simulation : 1448843400 To: 01:30 [DEBUG] 15:52:46: Sun 29/11 End of Simulation: 01:30 + random of 25min [DEBUG] 15:52:46: Sun 29/11 Checking for actions every minute. [DEBUG] 15:52:46: Sun 29/11 Current Unix Time: 1448808766 [DEBUG] 15:52:46: Sun 29/11 converted Original planed End_simulation_time: 01:30 to Unix Time: 1448757000) [DEBUG] 15:52:46: Sun 29/11 converted Midnight: 0:0 to Unix Time: 1448751600) [DEBUG] 15:52:46: Sun 29/11 converted Sunset: 16:41 to Unix Time: 1448811660) [DEBUG] 15:52:46: Sun 29/11 stop hour <= 12, Added 24H to End_simulation_time (End_simulation_time is ending after midnignt) [DEBUG] 15:52:46: Sun 29/11 New End_simulation_time: 1448843400 [DEBUG] 15:52:46: Sun 29/11 Calculated sleeping between each turn off: 0.71428571428571 min [DEBUG] 15:52:46: Sun 29/11 End_simulation_time_with_random_max_TurnOff: 1448843700 [DEBUG] 15:52:46: Sun 29/11 Manual Override Activated -> Simulation ON [DEBUG] 15:52:46: Sun 29/11 Reverse converted Unix Time of End_simulation_time : 1448843400 To: 01:30 [DEBUG] 15:52:46: Sun 29/11 Reverse converted Unix Time of End_simulation_time_with_random_max_TurnOff : 1448843700 To: 01:35 [DEBUG] 15:52:46: Sun 29/11 Push message (15:52 Presence Simulation started. Will stop at: 01:30 + rand(25min) : 01:35) sent to mobile: 1950 [DEBUG] 15:52:46: Sun 29/11 Reverse converted Unix Time of End_simulation_time : 1448843400 To: 01:30 [DEBUG] 15:52:46: Sun 29/11 Reverse converted Unix Time of End_simulation_time_with_random_max_TurnOff : 1448843700 To: 01:35 [DEBUG] 15:52:46: Sun 29/11 Presence Simulation started. Will stop at: 01:30 + rand(25min) : 01:35 [DEBUG] 15:52:46: Sun 29/11 Turning On Always_On lights: [DEBUG] 15:52:46: Sun 29/11 Device: Lumiere Turned On [DEBUG] 15:52:46: Sun 29/11 Now randomizing other lights... [DEBUG] 15:52:48: Sun 29/11 light ID:Lumiere Palier Cave status:1 [DEBUG] 15:52:48: Sun 29/11 Entering loop of 23.05 minutes [DEBUG] 15:54:04: Sun 29/11 Exiting loop of 23.05 minutes [DEBUG] 15:54:04: Sun 29/11 TurnOff All Simulation lights! [DEBUG] 15:54:04: Sun 29/11 Device: Lumiere TV Off [DEBUG] 15:54:04: Sun 29/11 Sleeping 0 minute(s) before next TurnOff [DEBUG] 15:54:04: Sun 29/11 Device: Prise Lum Cheminee Off [DEBUG] 15:54:04: Sun 29/11 Sleeping 0 minute(s) before next TurnOff [DEBUG] 15:54:04: Sun 29/11 Device: Lumiere Palier Cave Off [DEBUG] 15:54:04: Sun 29/11 Sleeping 0 minute(s) before next TurnOff [DEBUG] 15:54:04: Sun 29/11 Device: Lumiere Exterieur Off [DEBUG] 15:54:04: Sun 29/11 Sleeping 0 minute(s) before next TurnOff [DEBUG] 15:54:04: Sun 29/11 Device: Lumiere Veranda G Off [DEBUG] 15:54:04: Sun 29/11 Sleeping 0 minute(s) before next TurnOff [DEBUG] 15:54:04: Sun 29/11 Device: Lumiere Veranda D Off [DEBUG] 15:54:04: Sun 29/11 Sleeping 0 minute(s) before next TurnOff [DEBUG] 15:54:04: Sun 29/11 Device: Lumiere Veranda H Off [DEBUG] 15:54:04: Sun 29/11 Sleeping 0 minute(s) before next TurnOff [DEBUG] 15:54:04: Sun 29/11 Device: Lumiere Escalier Off [DEBUG] 15:54:04: Sun 29/11 TurnOff All Always_On lights! [DEBUG] 15:54:04: Sun 29/11 Device: Lumiere Off [DEBUG] 15:54:04: line 252: attempt to concatenate local 'deviceID' (a nil value)
  13. Alors voila --------------------- USER SETTINGS -------------------------------- local id = { LUMIERE_TV = 6, LUMIERE_CHEMINEE = 9, LUMIERE_PALIER_CAVE = 27, LUMIERE_EXT = 239, LUMIERE_ESCALIER_RGBW = 61, LUMIERE_VERANDA_GAUCHE = 12, LUMIERE_VERANDA_DROITE = 14, LUMIERE_VERANDA_HAUT = 23, LUMIERE_BUREAU = 439, IPHONE_PHILIPPE = 1950 } local Stop_hour = "01"; -- Hour when you want Simulation to stop local Stop_minute = "30"; -- Minute of the hour you want Simulation to stop -- note 1: the script will not exit while waiting the random time of the last light turned on. So end time can be longer than specified end time. (even more with var Random_max_TurnOff_duration) -- note 2: if the global variable changes during the same wait time as above, it will exit immediately (when back home while Simulation runs) local Sunset_offset = -15 -- number of minutes before or after sunset to activate Simulation local Random_max_duration = 30; -- random time of light change in minutes --> here each device is on maximum 30min local Random_max_TurnOff_duration = 25; -- random time to add at the stop hour+stop minute so the Simulation can be more variable (0 to deactivate) local Lights_always_on = {id["LUMIERE_BUREAU"]} -- IDs of lights who will always stay on during Simulation - leave empty array if none -> {} local Random_lights = {id["LUMIERE_TV"],id["LUMIERE_CHEMINEE"],id["LUMIERE_PALIER_CAVE"],id["LUMIERE_EXT"],id["LUMIERE_VERANDA_GAUCHE"],id["LUMIERE_VERANDA_DROITE"],id["LUMIERE_VERANDA_HAUT"]} -- IDs of lights to use in Simulation --local Random_lights = {id["LAMPE_HALL"],id["LAMPE_CELLIER"],id["LAMPE_CH_AMIS"]} -- Reduced set for test purposes local Activate_Push = true; -- activate push when Simulation starts and stops local Activate_FreeSms = false; -- activate push with Activate_FreeSms (Activate_Push must be true also) --local Smartphones_push = {id["PHONE_SEB"],id["PHONE_GG"]}; local Smartphones_push = {id["IPHONE_PHILIPPE"]}; -- list of device receiving Push --local Lights_On_at_end_Simulation = 0; -- If next line is commented, no light will turn on after Simulation ends --local Lights_On_at_end_Simulation = id["LAMPE_COULOIR"]; -- ID of a light (Only One) to turn on after Simulation ends (at specified Stop_hour & Stop_minute). Comment this line to turn off this feature --local Lights_On_if_Simulation_deactivated = 0; -- If next line is commented, no light will turn on after Simulation is stopped (by putting Simu_presence to 0) --local Lights_On_if_Simulation_deactivated = id["LAMPE_HALL"]; -- ID of a light (Only One) to turn on after Simulation is stopped (Simulation_). Comment this line to turn off this feature --------------------- USER SETTINGS END ---------------------------- ----------------------ADVANCED SETTINGS----------------------------- local Show_standard_debug = true; -- Debug displayed in white local Show_extra_debug = true; -- Debug displayed in orange -------------------------------------------------------------------- -------------------- DO NOT CHANGE CODE BELOW ---------------------- Pour la fonction j'ai tout mis dans le post plus haut
  14. Alors oui j'ai pris la dernière version sur le github les variables j'ai activé le superdebug et voila ce qu'il me donne [DEBUG] 14:54:58: Sun 29/11 Presence Simulation | v3.5.2 Starting up [DEBUG] 14:54:58: Sun 29/11 -------------------------------------------------------------------------- [DEBUG] 14:54:58: Sun 29/11 Current Unix Time: 1448805298 [DEBUG] 14:54:58: Sun 29/11 converted Original planed End_simulation_time: 01:30 to Unix Time: 1448757000) [DEBUG] 14:54:58: Sun 29/11 converted Midnight: 0:0 to Unix Time: 1448751600) [DEBUG] 14:54:58: Sun 29/11 converted Sunset: 16:41 to Unix Time: 1448811660) [DEBUG] 14:54:58: Sun 29/11 stop hour <= 12, Added 24H to End_simulation_time (End_simulation_time is ending after midnignt) [DEBUG] 14:54:58: Sun 29/11 New End_simulation_time: 1448843400 [DEBUG] 14:54:58: Sun 29/11 Calculated sleeping between each turn off: 2.8571428571429 min [DEBUG] 14:54:58: Sun 29/11 End_simulation_time_with_random_max_TurnOff: 1448844600 [DEBUG] 14:54:58: Sun 29/11 Reverse converted Unix Time of Sunset unix time : 1448810760 To: 16:26 [DEBUG] 14:54:58: line 252: attempt to concatenate local 'deviceID' (a nil value) Et pour répondre à la question, rien ne fonctionne c'est grave docteur ?
  15. Hello tout le monde, je viens de mettre en oeuvre ce super VD mais j'ai le même problème qu'a eu Syris .. DEBUG] 11:52:55: Sun 29/11 Presence Simulation | v3.5.2 Starting up [DEBUG] 11:52:55: Sun 29/11 -------------------------------------------------------------------------- [DEBUG] 11:52:55: line 252: attempt to concatenate local 'deviceID' (a nil value) Bloc de code ou se trouve la ligne 252 f unction YAPS_Engine:ExitSimulation() --PushMessage("Presence Simulation is terminated"); Debug("red","Simu_presence = 0, Aborting Simulation scene"); fibaro:abort(); end Ligne 252 fibaro:abort(); J'ai vérifié tous les ID, les libellés, pas de RGBW, essaie avec juste une lampe et 1 seul ID bref pas trouvé ce qui coince ..
  16. PITP2

    Ici On Parle Lifedomus

    @jojo, super ton avatar @sebcbien, alors en effet c'est selon les goà»ts les interfaces mais j'ai en effet oublié de "montrer" ou préciser que sur la droite il y a un bandeau qui se cache automatiquement et qui affiche toutes les pièces disponibles. Ensuite on n'est pas obligé de suivre la navigation par pièce mais on peut créer une page par "fonctionnalités". Comme déjà dit un peu plus haut on peut faire tout ce que l'on souhaite niveau interface et panneaux de commandes.
  17. PITP2

    Ici On Parle Lifedomus

    Quelques exemples de ce que l'on peut faire mais je n'ai pas les talents de couillerot loin de là
  18. On pourrait lui mettre un collier connecté pour le suivre à la trace
  19. tout ce qui n'est pas lumière du jour issue du soleil n'est pas bien puissant cf tableau en fin d'article https://fr.wikipedia.org/wiki/Lux_(unit%C3%A9) donc il est normal qu'en hiver avec une lumière indirecte que la variation ne soit pas énorme. Si tu veux affiner les mesures il faut aller modifier les paramètres pour diminuer le delta en deux mesures pour l'envoie de la valeur de luminosité Ensuite pour le réveil tu peux essayer d'ouvrir le détecteur et appuyer sur le bouton à l'intérieur.
  20. PITP2

    Ivee

    Alors là
  21. PITP2

    Ivee

    je m'étais dit un truc du même genre que Lazer mais j'avais plutôt peur de l'égarer et de m’asseoir .........
  22. PITP2

    Ivee

    Parle t elle en francais cette fois ??
  23. J'ai déjàeu ce phénomène, il faut attendre vraiment longtemps des fois 1 bonne heure. Chez moi j'ai identifié que le problème venait de la clé recovery qui donnait des signes de faiblesse ... et qui doit renvoyer des erreurs de lecture et donc impose au système de s'y reprendre àplusieurs fois ..
  24. Est ce que la détection de présence fonctionne ?
  25. @shad, ce qui est inquiétant c'est que sur le forum officiel plus de message d'un membre de Fibaro concernant la mise à jour depuis le 19 Novembre
×
×
  • Créer...