Aller au contenu

drboss

Membres confirmés
  • Compteur de contenus

    100
  • Inscription

  • Dernière visite

Réputation sur la communauté

38 Excellent

À propos de drboss

  • Rang
    Membre passionné
  • Date de naissance 01/01/1970

Profile Information

  • Sexe :
    Homme
  • Ville :
    Varsovie
  • Box
    Home Center 2
    Home Center Lite
    Autre
  • Version
    4.140

Visiteurs récents du profil

974 visualisations du profil
  1. drboss

    Support Gea

    Mon problème est résolu, j'ai oublié que pour le temps (-1) une nouvelle instance de la scène est démarrée à chaque fois.
  2. drboss

    Support Gea

    I return to my problem with: I can't find where is the problem, it's occurs with this code (paste partially): --[[ %% properties 344 sceneActivation ../.. GEA.add ({"SceneActivation", 344, 10}, -1, "Ogród - alarm uzbrojony", {{"geatelegram", "Ogród - alarm uzbrojony"}}) GEA.add ({"SceneActivation", 344, 11}, -1, "Ogród - alarm rozbrojony", {{"geatelegram", "Ogród - alarm rozbrojony"}}) if the line is triggered by changed sceneActivation value the command is start (message, scene running) ok, but after this GEA call section for "CentralSceneEvent": centralsceneevent = {name="CentralSceneEvent", optimize = true, control=function(id, key, attribute) if (GEA.currentEntry.duration > -1) then return false, GEA.trad.central_instant end return GEA.options.number.control(id) and type(key)~="nil" and type(attribute)~="nil", GEA.trad.central_missing end, getValue=function(id, key, attribute) return (GEA.source.event.data.deviceId==tonumber(id) and tostring(GEA.source.event.data.keyId)==tostring(key) and tostring(GEA.source.event.data.keyAttribute)==tostring(attribute)) end --LINE 1309 }, And generate error because event table (GEA.source.event) is null. It's clear because it's sceneActivation not CentralSceneEvent from %% events section. The device is UBS with enabled scene functionality. Why this happen, Why???
  3. drboss

    Support Gea

    Mon code: --[[ %% autostart %% properties 312 value 311 sceneActivation 312 sceneActivation %% events %% globals --]] --pour info -- ID.Domogolne.dom_czuwanie = 311 -- ID.Domogolne.ogrod_czuwanie = 312 -- ID.techniczne.sterowanie_alarm = 313 GEA.add ({{"SceneActivation", ID.Domogolne.dom_czuwanie, 20},{"Value", ID.Domogolne.ogrod_czuwanie, 0},{"Time!", "22:00", "06:00"}}, -1, "Ogrod uzbrojony razem z nocnym", {"turnOn", ID.techniczne.sterowanie_alarm}) --wlaczenie ogrodu z noca -- dom_rozb i ( ogr_uzb lub org_alm ) GEA.add ({{"SceneActivation", ID.Domogolne.dom_czuwanie, 21},{"Or",{"SceneActivation", ID.Domogolne.ogrod_czuwanie, 10}, {"SceneActivation", ID.Domogolne.ogrod_czuwanie, 20}},{"Time", "6:00", "23:00"}}, -1, "Ogrod rozbrojony razem z nocnym", {"turnOn", ID.techniczne.sterowanie_alarm}) --wylaczenie ogrodu po nocy GEA exécute correctement les commandes mais... [DEBUG] 13:11:21: 2020-05-01 13:11:21.375676 [ fatal] Unknown exception: /opt/fibaro/scenes/211.lua:1309: attempt to index field 'event' (a nil value) centralsceneevent = {name="CentralSceneEvent", optimize = true, control=function(id, key, attribute) if (GEA.currentEntry.duration > -1) then return false, GEA.trad.central_instant end return GEA.options.number.control(id) and type(key)~="nil" and type(attribute)~="nil", GEA.trad.central_missing end, [1309] getValue=function(id, key, attribute) return (GEA.source.event.data.deviceId==tonumber(id) and tostring(GEA.source.event.data.keyId)==tostring(key) and tostring(GEA.source.event.data.keyAttribute)==tostring(attribute)) end pourquoi???
  4. drboss

    DAHUA  IPC-HDBW2431R-ZS et HC2

    BTW If you things use this camera via api ex. via REST HTTP it use digest authorisation. If you have problem with snapshot image taken by link with onvif in address (ex below) turn off onvif authorisation in camera setup. But test first with turned on STEP 8 - Check that MediaUri field contains valid URL URI: http://192.168.1.109/onvifsnapshot/media_service/snapshot?channel=1&subtype=0 ex for other Dahua with PTZ. # go to garden gate if opened curl --digest --user admin:pass -v 'http://admin:pass@192.168.1.109/cgi-bin/ptz.cgi?action=start&channel=0&code=GotoPreset&arg1=0&arg2=1&arg3=0' # return to track sleep 15 curl --digest --user admin:pass -v 'http://192.168.1.109/cgi-bin/ptz.cgi?action=start&channel=0&code=StartTour&arg1=1&arg2=0&arg3=0'
  5. drboss

    DAHUA  IPC-HDBW2431R-ZS et HC2

    This time in English :-) Check by this internal tool of ONVIF Assocation (it's old but last public accessed, test all function of Onvif cameras and give links to snaps or live streams) On discovery tab enter IP, user and pass of camera, select network card in NIC box (by default the loopback is selected) and press PROBE. After connected go to diagnostic tab and select <media configuration/media streaming> and <realtime streaming> (or more if you need) after this press RUN SELECTED. After test (with many black window or with image from camera) on right window you will see many interesting info and link to stream or jpg snap. I discovered snapshot link and lowres streams of my new and old Dahua and Novus cameras without problems https://drive.google.com/open?id=1vtl0ajm9oygxdPj4JykXmMrpo5RNYY-L
  6. drboss

    Watchdog Pour Scènes Et Modules Virtuels

    Et encore mon ancienne modification, une petite pour indique quel VD ou scene vérifié par watchdog n'existe pas: Message("red", "Error : status=" .. tostring(response.status)..", when check: "..watchdog[i].type ..watchdog[i].id) en place du code: Message("red", "Error : status=" .. tostring(response.status))
  7. drboss

    Watchdog Pour Scènes Et Modules Virtuels

    @tcheri Si vous en avez vraiment besoin at si toujours à jour, petite modification pour redémarrage du bouton avec error: 1. si vous devez vérifier un bouton spécifique, la ligne de VD a l'option ajoutée: vd_button avec le numéro du bouton pour vérifier {type = "VD", id =1151, match = {text="", interval=0}, no_match = {text="", type="ERROR"}, restart=true, notification = {"email", "SQLLOG"}, vd_button ="23"}, 2. modification de code: À la place de la lignes (position env. line 236): if watchdog[i].type:lower() == "scene" then getURL = "http://127.0.0.1:11111/api/scenes/"..watchdog[i].id.."/debugMessages" elseif watchdog[i].type:lower() == "vd" then if watchdog[i].vd_button == nil then watchdog[i].vd_button="0" end getURL = "http://127.0.0.1:11111/api/virtualDevices/"..watchdog[i].id.."/debugMessages/0" else Message("red", "Error : unknown type value") end insérer le code: if watchdog[i].type:lower() == "scene" then getURL = "http://127.0.0.1:11111/api/scenes/"..watchdog[i].id.."/debugMessages" elseif watchdog[i].type:lower() == "vd" then if watchdog[i].vd_button == nil then watchdog[i].vd_button="0" end getURL = "http://127.0.0.1:11111/api/virtualDevices/"..watchdog[i].id.."/debugMessages/"..watchdog[i].vd_button else Message("red", "Error : unknown type value") end
  8. drboss

    Nodon SoftRemote

    J'ai aussi ce problème avec NodOn
  9. drboss

    HC2 & HCL - 4.560 - Stable - 26/09/2019

    Erreur dans: http://192.168.1.x/services/system/servicesStatus.php - compte incorrectement les DEVICES avec piles vides. Le script compte lorsque la valeur est 0 au lieu de 255
  10. drboss

    Support Gea

    @Steven, @pepite jusqu'à que vous créée la nouvelle édition de GEA , je corrige chez moi comme suit: local num1 = tonumber(string.match(value4, "-?[0-9.]+")) local num2 = tonumber(string.match(result, "-?[0-9.]+")) et je vais tester...
  11. drboss

    Support Gea

    En résumé, la fonction "Value+/-" ne fonctionne pas lorsque la valeur du périphrique est négative et GEA est moins aléatoire qu'une femme...
  12. drboss

    Support Gea

    @pepite C'est comme ça que ça se passe chez moi (GEA6.10): values is taken from 3 thermometers devices value=-23.8 GEA.add({"Value+", 335, -40}, 30, "sukces1 #value#") not work (every time) value=-23.8 GEA.add({"Value-", 335, -10}, 30, "sukces1 #value#") not work (every time) value= 18.2 GEA.add({"Value+", 262, -9}, 30, "sukces2 #value#") work (every time) value= 11.5 GEA.add({"Value+", 1281, 0}, 30, "sukces3 #value#") work (every time) value= 11.5 GEA.add({"Value+", 1281, 0}, 30, "sukces3 #value#") work (every time) value= 11.5 GEA.add({"Value+", 1281,-11}, 30, "sukces3 #value#") work (every time) value= 11.5 GEA.add({"Value+", 1281,-9}, 30, "sukces3 #value#") not work (3 times), work after change condiction to fist position (to verify) value= -6.5 GEA.add({"Value+", 1126, -40}, 30, "sukces1 #value#") not work (every time) value= -6.5 GEA.add({"Value-", 1126, -9}, 30, "sukces2 #value#") not work (every time) ps. C'est comme demander à une femme quelque chose et son cœur répondra. Nous ne savons pas non plus quoi et pour quoi
  13. drboss

    Support Gea

    @pepite , tu es le plus actif alors je te demande, pourquoi {"Value+", 1281, 0} ou {"Value+", 1281, 9} fonctionne mais {"Value+", 1281, -9} ne fonctionne pas?
  14. @pepite don't be too critical for me after 8 months of my absence Yes the Time is universal command and I use it, but I created Times because is for me easier, simplest to control, calculate. Ergonomic individual point of view ;-)
  15. drboss

    HC2 & HCL - 4.560 - Stable - 26/09/2019

    Nouvelle version: http://192.168.1.x/services/system/servicesStatus.php Des résultats plus détaillés qu'auparavant: {"HCServer":{"running":true,"status":"Ok","devicesStatus":{"disconnected":10,"directRoute":41,"indirectRoute":24,"unknownRoute":26,"batteryEmpty":0,"batteryLow":0,"batteryMedium":17,"batteryHigh":13}},"Zwave":{"running":true,"status":"Ok"},"FibaroServices":{"running":true,"status":"Ok"},"RemoteAccess":{"running":true,"status":"Ok"}}
×