Plugins

Discuss your other openLuup plugins here

44 Topics 848 Posts
  • openLuup: Shelly Bridge plugin

    Pinned
    144
    0 Votes
    144 Posts
    8k Views

    @a-lurker

    Could you try latest development v240426 to check this is fixed.

    Thanks and, again, apologies.

  • openLuup: Tasmota MQTT Bridge

    Pinned
    127
    1 Votes
    127 Posts
    9k Views

    @akbooer I'm good as I don't have additional topics that must be added at the moment. So the code change is probably the way to go.

  • zigbee2mqtt and openLuup

    7
    0 Votes
    7 Posts
    336 Views

    Yes my rookie mistake. Mixed up the function's variables being returned versus the function itself being returned. Was on the right track as "configure (dno) has fixed the issue. Thanks.

  • 2 Votes
    2 Posts
    184 Views

    Nice work! That’s a problem which has been waiting to be solved for a very long time,

  • openweather plugin ?

    22
    0 Votes
    22 Posts
    951 Views

    Just found this too...

    Synoptic and climate stations

    Their site is not easy to navigate!

  • Sonos system alerts truncated

    2
    0 Votes
    2 Posts
    165 Views

    Well, clearly an HTTP request has not been completed. Has anything changed recently? A network change, perhaps. Software update? Not obvious why this is happening.

  • Generic support for vacuums

    43
    0 Votes
    43 Posts
    2k Views

    @catmanv2 it’s ecovacs, damn autocorrect.

  • Openluup: Datayours

    7
    0 Votes
    7 Posts
    269 Views

    @akbooer
    Hi akbooer, I've simulated on a test installation a network outage of the remote DY and I've produced two sets of whisper files : one updated (remote DY) and the other one to update (central DY) if possible with a routine similar to Whisper-fill.py from Graphite tool.
    In the files I'll send you by email you find :

    whisper file Updated ; whisper file To Update ; L_DataUser.lua used for both that processes and creates different metric names; Storage-aggregation.conf and Storage-schema.conf files.
    I remain at your disposal for any clarification.

    tnks

    donato

  • Switchboard plugin

    5
    0 Votes
    5 Posts
    221 Views

    Ah, that makes sense. I haven't spent much time in the new console. Old dog sticking to the old tricks. I'll have to poke around there a bit more and see what's new.

  • Cannot publish new version in ALTAPP Store

    6
    0 Votes
    6 Posts
    308 Views

    Hi AK,
    On Vera? You smart man, never thought of that. It does work on that.

  • openLuup: UI Device / Tile Text

    10
    0 Votes
    10 Posts
    360 Views
  • Reactor scope issues

    17
    0 Votes
    17 Posts
    724 Views

    @buxton said in Reactor scope issues:

    In many of Patrick's plugins, he uses a global lua table to hold plugin data and functions. He assigns shorthand names that call common luup functions, then stores those truncated names in the table.

    Umm... no, I don't think I do. That actually sounds like something I would very specifically not do. Not a big fan of globals; I only use them where Luup forces me to.

    Can you post some code that shows what you think that is?

    Here, for example, is the definition of the log function L() commonly used in Reactor, which is a model/function I use frequently...

    local function L(msg, ...) -- luacheck: ignore 212 local str local level = defaultLogLevel or 50 if type(msg) == "table" then str = tostring(msg.prefix or _PLUGIN_NAME) .. ": " .. tostring(msg.msg or msg[1]) level = msg.level or level else str = _PLUGIN_NAME .. ": " .. tostring(msg) end str = string.gsub(str, "%%(%d+)", function( n ) n = tonumber(n, 10) if n < 1 or n > #arg then return "nil" end local val = arg[n] if type(val) == "table" then return dump(val) elseif type(val) == "string" then return string.format("%q", val) elseif type(val) == "number" and math.abs(val-os.time()) <= 86400 then return tostring(val) .. "(" .. os.date("%Y-%m-%d.%X", val) .. ")" end return tostring(val) end ) luup.log(str, math.max(1,level)) --[[ ???dev if level <= 2 then local f = io.open( "/etc/cmh-ludl/Reactor.log", "a" ) if f then f:write( str .. "\n" ) f:close() end end --]] if level == 0 then if debug and debug.traceback then luup.log( debug.traceback(), 1 ) end error(str, 2) end end

    It's just a plain local function. No global in a table Luup function reassignment magic anything, just a straight function that gets use in a vanilla way:

    L("Sensor %1 (%2) first run, setting up new instance...", tdev, luup.devices[tdev].description)
  • 2 Votes
    11 Posts
    601 Views

    @therealdb Now, it worked perfectly! Thank you!

  • 0 Votes
    8 Posts
    362 Views

    Yep, exactly the same boat here!

  • Reactor: double click action

    16
    0 Votes
    16 Posts
    502 Views

    Ok, first tests look promising. It not always goes successful, but I have to debug that some more later. It looks like the clicks are not always registered, but that's a different problem then.

    Thanks @toggledbits for your help! Not really easy after all, but it seems like a workable solution. The alternative is a triple click, that is probably more reliable. Nice to have the group state functionality in my arsenal now.

  • Virtual Pronto Remote plugin

    4
    1 Votes
    4 Posts
    343 Views

    Hi, just a standard, off the shelf VeraPlus, no AltUI

  • openLuup: SmartSwitch plugin

    27
    0 Votes
    27 Posts
    1k Views

    I can't see the SmartSwitch plugin in the app store list in the console. And the sorting seems case sensitive, so the openWeather plugin appears last when you do a list "All Apps" in the store list. So you also get "RaZberry (ALPHA)" before "Rachio". A case conversion before sort would be good.

  • Reactor icons for local lan

    1
    0 Votes
    1 Posts
    165 Views
    No one has replied
  • AltUi

    Solved
    10
    0 Votes
    10 Posts
    442 Views

    Well, that’s good... we’ll never know what that was all about!

  • AltUI sort?

    3
    0 Votes
    3 Posts
    193 Views

    2.53b apparently. Them's the tags!

    Thanks

    C

Recent Topics