Plugins

Discuss your other openLuup plugins here

44 Topics 871 Posts
  • openLuup: Shelly Bridge plugin

    Pinned
    144
    0 Votes
    144 Posts
    10k 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
    11k 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.

  • openweather plugin ?

    34
    0 Votes
    34 Posts
    2k Views

    Hi Ak,
    Not sure what the issue is for me then. I first had it running on Pi3 with Debian, now on Pi4 with Ubuntu, same issue of not getting the token. I did copy the user_data.json, so maybe something in that.
    As a test I tried on my openLuup clean test install running in a container and that is working. So must be something at my end.
    Thanks again anyway, I have a new workaround :-).

  • Openluup: Datayours

    18
    0 Votes
    18 Posts
    617 Views

    No, a new 60 second average is calculated, and emitted, on every new measurement.

    However, there is still an issue that the averaging window for the internal cache may not be aligned with the one that DataYours is using.

    Also, how accurately is the acquisition machine timestamp synchronised with the one doing the averaging and storage?

    It’s actually not a trivial problem for these reasons, but there are different options, so do try it, investigate the results, and report back!

    Good luck,

    AK

  • zigbee2mqtt and openLuup

    7
    0 Votes
    7 Posts
    361 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
    200 Views

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

  • Sonos system alerts truncated

    2
    0 Votes
    2 Posts
    189 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.

  • Switchboard plugin

    5
    0 Votes
    5 Posts
    259 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
    356 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
    432 Views
  • Reactor scope issues

    17
    0 Votes
    17 Posts
    822 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
    668 Views

    @therealdb Now, it worked perfectly! Thank you!

  • 0 Votes
    8 Posts
    425 Views

    Yep, exactly the same boat here!

  • Reactor: double click action

    16
    0 Votes
    16 Posts
    664 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
    392 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
    189 Views
    No one has replied
  • AltUi

    Solved
    10
    0 Votes
    10 Posts
    522 Views

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

  • AltUI sort?

    3
    0 Votes
    3 Posts
    212 Views

    2.53b apparently. Them's the tags!

    Thanks

    C

Recent Topics