Aller au contenu

Steven

Membres confirmés
  • Compteur de contenus

    4 434
  • Inscription

  • Dernière visite

Réputation sur la communauté

2 335 Excellent

3 abonnés

À propos de Steven

  • Rang
    Maitre Yoda du forum
  • Date de naissance 18/04/1971

Profile Information

  • Sexe :
    Homme
  • Ville :
    Valleiry, Haute-Savoie
  • Intéret :
    Domotique, Fitness et programmation
  • Box
    Home Center 2
  • Version
    4.520

Visiteurs récents du profil

6 635 visualisations du profil

Mise à jour unique du statut

Afficher toutes les mises à jour de « Steven »

  1. My family is away for 10-14 days, it's easier to testing HC2 in home without a family on place. :-) If you want I can be a tester. Please write me what I will test for you, then I will answer if I have the right configuration of z-wave network. 

    In general I have:
    RGBW module, dimmers, switches, temperature sensors, humidity sensors, motion detectors, opening sensors, flood sensors, roller shutter / roof window actuators, smoke detectors, netatmo, etherent controller for watering the garden, sonos,
    I use data from external devices in xml and json.table to control events too.

    And it's easier for me to write English in technical matters :-(

    1. Afficher les commentaires précedents  %s autres
    2. drboss

      drboss

      if I disable error handling (pcall set to false)

      the line with {"Label"...}

      GEA.add(64, 1, "test message 0", {{"Label", 45, "Message", "test message 0"}, {"VirtualDevice", 45,1}, {"Function", function() fibaro:startScene(118, {{tekst = "test message 0"}, {typ = "3"}, {czas = "30"}}) end}})  

      give this error:

      [DEBUG] 20:48:25: @30s [Démarrage] #1 [64] | 1 | test me... | [Label, [45,"Message","test message 0"]][VirtualDevice, [45,1]][Function, {...}]
      [DEBUG] 20:48:25:         [action] [Label, [45,"Message","test message 0"]]
      [DEBUG] 20:48:25: [1;31m2017-10-18 20:48:25.186554 [ fatal] LUA error: /opt/fibaro/FibaroSceneAPI.lua:115: attempt to concatenate local 'deviceId' (a table value)

       

      the problem reported from function in FibaroSceneAPI.lua:

      function __fibaro_get_device_property(deviceId, propertyName)
        return api.get("/devices/" .. deviceId .. "/properties/" .. propertyName)
      end

       but when I do http://192.168.1.200/api/devices/45/properties/ui.Message.value manually they return data without problem

      {"value":"Uwaga! Brama otwierana","modified":1507341723}

       

      the line with call scene

      GEA.add(64, 1, "test message 1", {"Scenario", 118, { {tekst = "Test message 1"}, {typ = "3"}, {czas = "30"} }  })

       

      [DEBUG] 20:59:53: GEA started on 18.10.17 at 20:59:53 ...
      [DEBUG] 20:59:54: @0s [Validation*] #1 [64] | 1 | test me... | [Scenario, [118,[{"tekst":"Test message 1"},{"typ":"3"},{"czas":"30"}]]]
      [DEBUG] 21:00:24: @30s [Validation*] #1 [64] | 1 | test me... | [Scenario, [118,[{"tekst":"Test message 1"},{"typ":"3"},{"czas":"30"}]]]
      [DEBUG] 21:00:24: @30s [Démarrage] #1 [64] | 1 | test me... | [Scenario, [118,[{"tekst":"Test message 1"},{"typ":"3"},{"czas":"30"}]]]
      [DEBUG] 21:00:24:         [action] [Scenario, [118,[{"tekst":"Test message 1"},{"typ":"3"},{"czas":"30"}]]]
      [DEBUG] 21:00:24: [1;31m2017-10-18 21:00:24.007531 [ fatal] LUA error: /opt/fibaro/scenes/165.lua:618: bad argument #1 to 'lower' (string expected, got table)

       

      line 618 is:

          if (tname == "table") then
            sname = string.lower(object[1]):gsub("!", ""):gsub("+", ""):gsub("-", "")
            originalName = object[1]
          else

      BTW set pcall ( GEA.secureAction = false) to false not effect to command stared by trigger ( with time -1) only for command with time >0.

    3. drboss

      drboss

      after 13h of working the json error return but when GEA process another line :(

      [DEBUG] 12:26:20: @50520s [Validation] #1 [Info+, ["serverStatus",1508271739]] | 0 | Box red... | [Popup, ["RESTART","Restart HC2 o #time# dnia #date#"]]
      [DEBUG] 12:26:20: @50520s [Validation] #3 [Info, ["updateStableAvailable",true]] | 86400 | Une nou... | < no action > *repeat*
      [DEBUG] 12:26:20: @50520s [Validation] #4 [Info, ["updateBetaAvailable",true]] | 86400 | Une nou... | < no action > *repeat*
      [DEBUG] 12:26:20: @50520s [Validation] #5 [Alarm, [537]] | 0 | Tryb dz... | [Global, ["czy_dzien","tak"]] *repeat*
      [DEBUG] 12:26:20: @50520s [Validation] #6 [Alarm, [536]] | 0 | Tryb no... | [Global, ["czy_dzien","nie"]] *repeat*
      [DEBUG] 12:26:20: @50520s [Validation] #7 [Alarm, [537]] | 0 | | [Global, ["czy_dzien","tak"]] *repeat*
      [DEBUG] 12:26:20: @50520s [Validation] #8 [Alarm, [536]] | 0 | | [Global, ["czy_dzien","nie"]] *repeat*
      [DEBUG] 12:26:20: @50520s [Validation] #9 [true][Time, ["01:00","01:01"]][Days, ["Wednesday"]] | 60 | Synchro... | [VD, [540,3]]
      [DEBUG] 12:26:20: @50520s [Validation] #10 [Alarm, [855]][Value+, [980,3]][Global, ["podlewanie","tak"]] | 0 | Zraszacze | [VirtualDevice, [729,15]] *repeat*
      [DEBUG] 12:26:20: @50520s [Validation] #11 [Alarm, [856]][Value+, [980,3]][Global, ["podlewanie","tak"]] | 0 | Kropelki | [VirtualDevice, [729,16]] *repeat*
      [DEBUG] 12:26:20: @50520s [Validation] #12 [876] | 15 | | [Scenario, [144]]
      [DEBUG] 12:27:20: [1;31m2017-10-18 12:27:20.827541 [ fatal] LUA error: /usr/share/lua/5.2/json/decode/util.lua:35: unexpected character @ character: 1 0:1 [*] line:
      [DEBUG] 12:27:20: *

      the nearest code:

      GEA.add({{"Alarm", 855},{"Value+",980, 3},{"Global", "podlewanie", "tak"}}, 1, "Zraszacze", {{"VirtualDevice", 729, 15}})
      GEA.add({{"Alarm", 856},{"Value+",980, 3},{"Global", "podlewanie", "tak"}}, 1, "Kropelki", {{"VirtualDevice", 729, 16}})  
      
       
      --- ZAMYKANIE OKIEN DESZCZ
      -- komunkat które okna nie są zamknięte gdy zaczyna padać, wysyłany tylko gdy któreś jest otwarte (może da się przenieść do GEA całe)
      GEA.add(876, 15, "", {{"Scenario", 144}})  -- #12 in GEA
       
      
      --- TEMPERATURA GARDEROBA t761, w194
      --====================================
      GEA.add({"Value+", 761, 20}, 30*60, "", {{"turnOff",194},{"Time", "06:00", "08:00"},{"Time", "18:00", "21:00"}})
      GEA.add({"Value-", 761, 17}, 30*60, "", {{"turnOn",194},{"Time", "06:00", "08:00"},{"Time", "18:00", "21:00"}})
      GEA.add(true,1,"",{{"turnOff",194},{"Time", "08:01", "08:02"},{"Time", "21:01", "21:02"}})

       

    4. Steven

      Steven

      About "Label", I found this stupid bug ... my bad.

       

      About "Scenario" with arguments, I found my second stupid bug :-)

       

      But for the json.decode. I really have no idea :-(

       

      Would you test the modification for "Label" en "Scenario" ? I f yes, here is the new release.

       

      Just for information, what kind of device is your 876 ?

      gea_6beta4.lua

    5. Afficher les commentaires suivants  %s autres
×