Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. tehMilcho

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    T
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 15
    • Best 1
    • Groups 1

    tehMilcho

    @tehMilcho

    Starter

    1
    Reputation
    2
    Profile views
    15
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    tehMilcho Follow
    Starter

    Best posts made by tehMilcho

    • RE: Simple API Use SOLVED

      @MCU but this brings me on track, i now swap the "?" with "%3F" now it works .. damn @MCU you are f****** smart 🙂 Thanks a lot. spend already hours on this 🙂

      posted in ioBroker general
      T
      tehMilcho

    Latest posts made by tehMilcho

    • RE: Wert enthält "," - Fehler "val.indexOf is not a function"

      Lösung:
      d943040c-03a5-4f3f-b134-b6d0bf315870-image.png

      Ich lasse / Trage den Wert mit "Jarvis" eigentlich in ein Number-Objekt ein kA wie es Jarvis schafft dann ein String draus zu machen. Aber ende bin ich nun zufrieden das ich den Wert eingeben kann wie ich mag als mit "." oder "," und es sauber dann in den anderen Wert geschrieben wird 🙂

      posted in Blockly
      T
      tehMilcho
    • RE: Blockly: Text durchsuchen, Suchstring, "besteht aus"

      oh man, selbst gefunden 🙂

      So gehts auch 🙂

      9ac4f1ac-612b-46e6-9f2b-cc001dd32b52-image.png

      posted in Skripten / Logik
      T
      tehMilcho
    • Wert enthält "," - Fehler "val.indexOf is not a function"

      Hey,

      weißt jmd warum folgendes nicht geht?

      7f6aaa97-2c85-4c4c-b301-868e321ab33c-image.png

      Ich will eigentlich nur wenn im Input eine "7,6" kommt er es zu "7.6" macht und wenn "7.6" kommt soll er es eintragen aber ich bekomme nun immer ein Fehler:

      TypeError: getState(...).val.indexOf is not a function

      posted in Blockly
      T
      tehMilcho
    • RE: Simple API Use SOLVED

      @MCU but this brings me on track, i now swap the "?" with "%3F" now it works .. damn @MCU you are f****** smart 🙂 Thanks a lot. spend already hours on this 🙂

      posted in ioBroker general
      T
      tehMilcho
    • RE: Simple API Use SOLVED

      @mcu said in Simple API Use SOLVED:

      url = url:gsub("([^A-Za-z0-9_])", function(c) return string.format("%%%02X", string.byte(c)) end)

      then it seems to get stuck, no error but will not finsh and also the state in iobroker is not changed, when you Output the new string you will get:

      http%3A%2F%2F192%2E168%2E178%2E37%3A8087%2Fset%2F0_userdata%2E0%2EVirtualDevices%2Ehc3lite%2EFlurPIR%2D1%3Fvalue%3Dtrue%26prettyPrint

      posted in ioBroker general
      T
      tehMilcho
    • RE: Simple API Use SOLVED

      @mcu yep this leads to "[24.11.2023] [22:54:25] [ERROR] [SCENE29]: (load):23: attempt to call a nil value (field 'escape')"

      posted in ioBroker general
      T
      tehMilcho
    • RE: Simple API Use SOLVED

      @mcu said in Simple API Use SOLVED:

      local encodedUrl = url.escape(url)

      mhh seems like fibaro specail lua?

      [24.11.2023] [22:54:25] [ERROR] [SCENE29]: (load):23: attempt to call a nil value (field 'escape')

      posted in ioBroker general
      T
      tehMilcho
    • RE: Simple API Use SOLVED

      @mcu said in Simple API Use SOLVED:

      let encodedUrl = encodeURIComponent(url);

      the Lua Script in Fibaro seems not happy about it:

      [24.11.2023] [22:43:48] [ERROR] [SCENE29]: (load):15: syntax error near 'encodedUrl

      posted in ioBroker general
      T
      tehMilcho
    • RE: Simple API Use SOLVED

      Hey there,

      i got the same Error but little different problem. I have copyed the Object-Path with the little button.

      so i build this URL:
      http://SERVER:8087/set/0_userdata.0.VirtualDevices.hc3lite.FlurPIR-1?value=false&prettyPrint

      The Url works fine in any browser but when i try to use it in my code i get:

      "error: no value found for "0_userdata.0.VirtualDevices.hc3lite.FlurPIR-1". Use /set/id?value=1 or /set/id?value=1&wait=1000"

      I will use it in a Lua Script that runs on the "Fibaro Home center lite". When i rebuild the URL to "toggle" it works fine.. i have no clue whats the issue .. because it makes no sense for me.

      Lua Code:

      local value = fibaro.getValue(52, "value")
      local url
      
      -- Deside if value should be true or false
      if (fibaro.getValue(52, "value") == true) then
      url = 'http://SERVER:8087/set/0_userdata.0.VirtualDevices.hc3lite.FlurPIR-1?value=true&prettyPrint'
      elseif (fibaro.getValue(52, "value") == false) then
      url = 'SERVER/set/0_userdata.0.VirtualDevices.hc3lite.FlurPIR-1?value=false&prettyPrint'
      else 
      print ("No Match")
      end
      
      print(url)
      
      local selfhttp = net.HTTPClient()
      
      local headers = {
              ["Accept"] = "application/json",
              ["Content-Type"] = 'application/json',
              ["Cache-Control"] = "no-cache"
          }
      
      selfhttp:request(url, {
        options={
          method = 'GET',
          headers = headers,
          timeout = 5000
        },
       success = function(response) 
                  print(response.status)
                  print(response.data)
          end,
          error = function(message)
                  print("error:", message)
          end
      })
       
      

      anyone knows something? i think i had the same issue by try to use something like this in Android App - Tasker, but then give out and used toggle.

      posted in ioBroker general
      T
      tehMilcho
    • RE: jarvis v3.0.0 - just another remarkable vis

      @mcu
      Ah sind meine Rollos irgendwas stimmt nicht mit dem "Stop" Button .. hat sich bestimmt was im tradfri Adpater geändert.

      Kommt bei Browser F12

      00:46:39 | WARN | DEVICES-5CC787FA | State data invalid: tradfri.0.B-65584.blind.stop Object
      

      ich hab nochmal ne Frage zu dem Umrechnen das ging mit der Anleitung ja echt einfach.. hab direkt das erste Beispiel genommen und nur aus "kWh" / "Wh" halt "m" und "Km" gemacht aber er sagt immer nun hinter dem Wert "undefined"

      eb938976-943f-4923-8b42-2c38d27d0920-image.png

      c73307fc-0cd2-40a6-b8eb-8b3e050ea0d0-image.png

      posted in Tester
      T
      tehMilcho
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo