Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Unsolved
Collapse
Discussion Forum to share and further the development of home control and automation, independent of platforms.
A

a-lurker

@a-lurker
openLuup console disappeared - 500 - Internal Server Error
A
Love openLuup - it just keeps working perfectly. I started looking at trying to add a gen4 Shelly device to the Shelly plugin via L_ShellyBridge.lua. The plugin is a little uncooked (no rudeness intended), so a bit of a rabbit hole for me. All of a sudden no console pages available in either Firefox or Chrome. AltUI works perfectly and all the log files indicate no errors. openLuup still running everything works as it should - just no console pages. I possibly screwed something up but any recently changes files show no problems. The original/ backup of L_ShellyBridge.lua was reinstated but still no console. Bit stumped on this one. Not sure how to debug. Any ideas?
Plugins
Logon screen timeout
G
Noticing since 170 that the lock screen doesn't switch to the logon prompt but, rather, stays on the active UI until such time as you go to click something within it. Then it jumps to the login screen. Brave browser Brave 1.92.139 (Official Build) (arm64) Chromium: 150.0.7871.114
Multi-System Reactor
Reactor (Multi-System/Multi-Hub) Announcements
toggledbitsT
Build 21228 has been released. Docker images available from DockerHub as usual, and bare-metal packages here. Home Assistant up to version 2021.8.6 supported; the online version of the manual will now state the current supported versions; Fix an error in OWMWeatherController that could cause it to stop updating; Unify the approach to entity filtering on all hub interface classes (controllers); this works for device entities only; it may be extended to other entities later; Improve error detail in messages for EzloController during auth phase; Add isRuleSet() and isRuleEnabled() functions to expressions extensions; Implement set action for lock and passage capabilities (makes them more easily scriptable in some cases); Fix a place in the UI where 24-hour time was not being displayed.
Multi-System Reactor
[MSR] Copy&past of actions and/or drag&drop between set/reset
therealdbT
Hey @toggledbits One thing that bothers me while doing work on new systems/new features, is that I cannot copy&paste actions, and I cannot drag&drop between set and resets. #1 is for when I want to copy an action between different rules opened in two separate browser windows, while #2 is when I just need to flip a bunch of actions in the reset, or move some logic back and forth. Both will be appreciated, but I understand the technical challenges. Thanks!
Multi-System Reactor
Upgrade advice - upgrade from aarch64 to ARM64 image
T
I'm currently on version 26011. I understand that the aarch64 image is no longer supported. So, I therefore need to update to the ARM64 image. Can anyone possibly suggest how I update my docker compose.yaml file (see below). Ideally I'd like to keep my existing reactions etc. rather than start from scratch. # Multi-System Reactor template docker-compose.yml (version 22160) # # Change the lines indicated by "DO"... # services: reactor: container_name: reactor environment: # DO change the TZ: line to set your local time zone. # See valid TZ list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones TZ: GB # # DO NOT change this path. Your directory location is in "source" below. REACTOR_DATA_PREFIX: /var/reactor # DO change the image below to the one you are using (e.g. armv7l or aarch64 for RPi 4) image: toggledbits/reactor:latest-aarch64 restart: "always" expose: - 8111 ports: - 8111:8111 volumes: # DO change the /home/username/reactor below to the directory you created for # your local data; DO NOT change the /var/reactor part - /home/pi/docker/reactor:/var/reactor - /etc/localtime:/etc/localtime:ro tmpfs: /tmp
Multi-System Reactor
Alexa for MSR, any interest?
MikeReadingtonM
Topic thumbnail image
Multi-System Reactor
Ezlo Paid Subscription for Vera Cloud Services
toggledbitsT
It appears that Ezlo is going to new levels of paid subscription for cloud services supporting Vera hubs. I have to congratulate them. It will soon be 8 years since Ezlo acquired Vera, and despite their purported financial and "intellectual" capital, they have to date not produced a viable full replacement for Vera. Now they are going to charge extra for services for a platform that they stopped updating years ago. If you know anyone who hasn't yet fully moved on from Captain Ahab's White Whale Chase, please remind them that my Decouple project is still up on Github to decouple a Vera Plus/Secure/Edge from Vera/Ezlo's cloud services. Veras have been said to misbehave when they can't reach the mother ship. I have also written my first new Vera plugin in... six years? more?... the AlertPushover project will send Vera hub alerts to Pushover, so you can still get messages generated by your Vera hub without paying for Ezlo's cloud service. It's crude but functional (i.e. better than nothing/worth every penny paid). These two projects won't replace the functionality of their cloud service and app for those who need those things. But any that don't, this may help bridge the gap. Hopefully these stragglers who have waited so long and been disappointed so often will get the idea that it's time to move on.
General Discussion
[RESOLVED] Telegram notification broke with latest update
3
Topic thumbnail image
Multi-System Reactor
[RESOLVED] Phantom device, “INFO” appears
wmarcolinW
Topic thumbnail image
Multi-System Reactor
[RESOLVED] Mode Status NULL
wmarcolinW
Topic thumbnail image
Multi-System Reactor
[RESOLVED] HTTP query failing after version 26177
wmarcolinW
Topic thumbnail image
Multi-System Reactor
Question about the find function
wmarcolinW
Topic thumbnail image
Multi-System Reactor
[Answered] OK to remove old json files?
3
Topic thumbnail image
Multi-System Reactor
Deprecation Announcement: 32-bit ARM *docker* images
toggledbitsT
If you are using the armv7l docker image, the OpenJS Foundation that publishes node is no longer producing 32-bit builds as of v24. That means the last supported LTS version of node for armv7l is v22, which will go End-of-Life in May 2027. Therefore, the Reactor armv7l image is now deprecated and will only be produced until node v22 goes EOL, and I will not publish armv7l images beyond that date. If you are running an RPi 3 or earlier with Reactor, you are on this image, and will need to upgrade hardware to a 64-bit model and use the arm64 image. If you need help getting it done, ask in this category.
Multi-System Reactor
[Solved] build 26150 - engine not starting
G
@toggledbits I pulled the image (well, Watchtower did) and within minutes the whole system went offline. The log looks like it ends with 26143. [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#rule-mkahsmgf/26qq82mw-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#rule-lqyfljfi/22f8on0t-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#rule-lsb61rw8/24oenqi2-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#rule-lrh58he0/rule-lrh58he0:S-1c00gfib-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#rule-lrh58he0/1c00dylr-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#rule-lrh58he0/1nam9w5u-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#rule-miuh2qqi/22ls4lql-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#rule-kwc6rmci/rule-kwc6rmci:S-1vj8sdfc-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#rule-kwc6rmci/rule-kwc6rmci:S-1qanz01x-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#rule-ladyja6a/24lq19p6-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#rule-mk0o8iox/23oy468y-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#rule-miscg2h3/rule-miscg2h3:S-22gmbq1c-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#re-kxgrfjke/238p0old-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#re-m7ccsso5/re-m7ccsso5-1r0myjxa-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#rule-ladyja6a/19nl9wq2-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#rule-ladyja6a/rule-ladyja6a:S-yl3xk9t-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#rule-ladyja6a/rule-ladyja6a:S-yl3vv5m-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#re-ln7j2nqp/re-ln7j2nqp-22mx9lzd-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#re-ln7j2nqp/22mx87c8-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#rule-licneppy/1mzwe7ht-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#rule-ml3194ih/25jqt1j4-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#re-kxgrg7kf/227hshak-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#rule-reactorexmachina/13ua1p95-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#rule-reactorexmachina/13uagam7-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#rule-grpvl9oypg/rule-grpvl9oypg:R-134x4cbv-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#rule-grpvl9oypg/rule-grpvl9oypg:R-134x2fyl-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#re-lscjrws1/238p5c22-cons [latest-26143]2026-05-31T15:23:44.547Z <default:INFO> Closing container Container#Predicate#rule-lbwr0jvq/1xkczf03-cons [latest-26143]2026-05-31T15:23:44.547Z <Structure:NOTICE> Structure Structure#1 stopped [latest-26143]2026-05-31T15:23:44.547Z <app:NOTICE> Closing APIs... [latest-26143]2026-05-31T15:23:44.547Z <wsapi:NOTICE> wsapi: closing... [latest-26143]2026-05-31T15:23:44.547Z <wsapi:NOTICE> wsapi: disconnecting from "192.168.1.23#82" (1001 service closing) [latest-26143]2026-05-31T15:23:44.548Z <httpapi:NOTICE> HTTP API closing... [latest-26143]2026-05-31T15:23:44.549Z <wsapi:NOTICE> wsapi: server closed [latest-26143]2026-05-31T15:23:44.549Z <httpapi:INFO> HTTP server closed. [latest-26143]2026-05-31T15:23:44.549Z <app:NOTICE> Stopping timers... [latest-26143]2026-05-31T15:23:44.551Z <app:null> Shutdown complete, process ID 1 [latest-26143]2026-05-31T15:23:44.551Z <app:null> Closing logs... [latest-26143]2026-05-31T15:23:44.551Z <default:null> Closing log I can SSH to the VM. Alas, I do not have the previous image for 26143 as I'm a little too quick sometimes on housekeeping.
Multi-System Reactor
Farewell, oh good and faithful servant!
CatmanV2C
Today marks another milestone in my Home Automation journey. After tripping the main breaker once, and shedding more blood than is normally recommended, the underfloor heating (which was the last Z-wave device on my system) has been replaced with a Zigbee one. Edited reactor.conf Disabled z-way-server Disabled Openluup Z-wave is no more.... C
General Discussion
http request action & digest auth
tunnusT
I’m using the HTTP Request action in MSR and need to authenticate against an endpoint that uses HTTP Digest authentication. Now that endpoint was changed to use SHA-256 in digest auth, so I would like to know if MSR supports it, or is it limited to MD5-based digest auth?
Multi-System Reactor
Cloning actions in reactions does not work
tunnusT
With build 26140 (on Docker) I'm not able to clone any actions in reactions. Using Chrome if it has any relevance.
Multi-System Reactor
Has ping command been removed?
tunnusT
Topic thumbnail image
Multi-System Reactor
ReferenceError with Home Assistant data & build 26140
tunnusT
Topic thumbnail image
Multi-System Reactor
About
Posts
263
Topics
37
Shares
0
Groups
0
Followers
1
Following
0

Posts

Recent Best Controversial

  • openLuup console disappeared - 500 - Internal Server Error
    A a-lurker

    OK - for those interested:

    I accidentally deleted the L_openLuup.lua file, which is listed immediately above the L_ShellyBridge.lua, which was the file I intended to delete.

    Amazing that everything else all still worked perfectly.

    Plugins

  • openLuup console disappeared - 500 - Internal Server Error
    A a-lurker

    Love openLuup - it just keeps working perfectly.

    I started looking at trying to add a gen4 Shelly device to the Shelly plugin via L_ShellyBridge.lua. The plugin is a little uncooked (no rudeness intended), so a bit of a rabbit hole for me.

    All of a sudden no console pages available in either Firefox or Chrome. AltUI works perfectly and all the log files indicate no errors. openLuup still running everything works as it should - just no console pages.

    I possibly screwed something up but any recently changes files show no problems. The original/ backup of L_ShellyBridge.lua was reinstated but still no console.

    Bit stumped on this one. Not sure how to debug. Any ideas?

    Plugins

  • Raspberry Pi 4 dual RAM variant introduced to mitigate RAM price increases
    A a-lurker

    Bought some Crucial PCIe Gen4 NVMe M.2 SSD for $46 USD late last November and now in mid Feb, they are now $74. About a 60% increase in three months. And they have dropped a little in price of late.

    Seems a case of AI computing is vacuuming them all up, plus some players have stopped manufacturing.

    SBC

  • AltUI sans internet connection
    A a-lurker

    Just on AltUI:

    The browser would be downloading any number of resources first time round from various servers. But I would have thought the majority of servers would be using some sort of cache control header combinations to the command the browser's caching. You don't need to be downloading jquery every time you hit a web page and I think it's unlikely that would be happening.

    So I would have thought that the browser (for AltUI) could have cached most of what AltUI needed? What resource is the browser calling up that it can't download with the internet connection down? Maybe AltUI could have functioned but in some sort of reduced capability mode?

    But yes the openLuup console, as I understand it, has been written to not rely overly on outside resources. Surprising akbooer could get it work!!

    Software

  • AltUI sans internet connection
    A a-lurker

    I had this problem a long time ago:

    You need to set up the required files locally somewhere. On a local directory, NAS, USB stick, web server etc. You then have the responsibility of keeping them up to date. Some things may still not work like Goggle charts.

    amg0 set up a variable in the AltUI plugin labelled "Local CDN ?" that can be used to point to the new local file source. So it's not hard to switch back and forth.

    In normal operation (ie using the internet) this variable is blank. You can read amg0's doco from here at GitHub

    The old forum discussion here.

    Software

  • openLuup email server
    A a-lurker

    "AK: Your best bet would surely be to register a callback handler to listen for messages on a specific address?"

    Yep - that seems the most obvious method - just wanted to make sure I hadn't missed some other turn of events. With your own callback handler, you can clearly sort out any email encodings, etc.

    On the Doco - Goggle doesn't seem to index github io pages. Seems to me you need to have some sort of URL redirect, that looks like say https://smarthome.community/openluup, that would get indexed? ie via the web server set up or similar.

    openLuup

  • openLuup email server
    A a-lurker

    Hello AK

    Have been writing about the openLuup email server as I was tinkering with it the other day. One minor problem: it looks like the domain part of the email address eg ...@openLuup.local is case sensitive in openLuup.

    Looking round the net, it suggests that the local part is case sensitive but the domain part is not meant to be. To keep things so they are more likely to work, it's suggested the email address should be totally case insensitive regardless. Refer to rfc2821 page 13 or search on the word "sensitive". Suffice to say I was using mail@openluup.local rather than mail@openLuup.local, so it didn't work for me.

    Next challenge was that the file saved in /etc/cmh-ludl/mail has "Content-Transfer-Encoding: base64" so the body of the email was encoded:

    Received: from ((openLuup.smtp) [ip_address_1]
     by (openLuup.smtp v18.4.12) [ip_address_2];
     Tue, 26 Nov 2024 14:21:22 +1000
    From: "dali@switchboard" <dali@switchboard>
    To: "mail@openLuup.local" <mail@openLuup.local>
    Subject: Warning form R2E.
    MIME-Version: 1.0
    Content-Type: text/plain
    Content-Transfer-Encoding: base64
    
    QXV0byBXYXJuaW5nOiBDb2xkIHN0YXJ0IGV2ZW50
    

    The above base 64 text translates to "Auto Warning: Cold start event".

    Is it your preference to leave the saved files in the raw mode or would you consider translating the base64 text in the openLuup code base?

    On a side note, does the reception of an email by openLuup generate some sort of trigger that can be watched. In the case above; the email represents the restoration of power after a power outage. I would like to know about that by the email triggering a "Telegram" notification on my mobile.

    I see that the images@openLuup.local images@openLuup.local can be associated with I_openLuupCamera1.xml, which spawns a movement detector child. Anything similar for the other email addresses?

    openLuup

  • openLuup_install.lua - URL changed?
    A a-lurker

    Now fixed in the Development branch.

    openLuup

  • Vera PushOver notification with image
    A a-lurker

    The code in your link was messed up when they updated that forum some years ago. I've rehashed it to give it a chance of working but I suspect you may still have trouble getting it to work. Running it in the Lua test window would be your starting point after reading the
    push over api doco.

    Another alternative is to use Telegram with the Telegram plugin.

    -- Refer to pushover documentation:
    --   https://pushover.net/api
    
    local pushToken    = "YourPushOverTokenHere"
    local pushUser     = "YourPushOverUserCodeHere"
    local pushTitle    = "MessageTitle"
    local pushMessage  = "MessageContent"
    local snapshotFile = "/tmp/camera_snapshot.jpg"
    local pushPriority = "1"
    
    -- Sound could be: pushover bike bugle, cash register, classical, cosmic, falling,
    -- gamelan, intermission, magic, mechanical, pianobar, siren, spacealarm, tugboat,
    -- alien, climb, persistent, echo, updown, none
    local pushSound = "gamelan"
    
    -- Link to the BlueIris videostream of that camera
    local pushUrl = "http://xxx.xxx.xxx.xxx/mjpg/ShortCamName&user=XXX&pw=XXX"
    local pushUrlTitle = "Camera Name"
    
    -- This points to one of my BlueIris managed cameras
    local camera = "http://xxx.xxx.xxx.xxx/image/ShortCamName?q=50&s=80&user=XXX&pw=XXX"
    
    -- Get the snapshot from the camera
    local out = assert(io.open(snapshotFile, "wb"))
    local _,data = luup.inet.wget(camera)
    out:write(data)
    assert(out:close())
    
    --Send PushOver request
    local curlCommandTab = {}
    
    table.insert (curlCommandTab, 'curl -s')
    table.insert (curlCommandTab, '-F "token='      ..pushToken    ..'"')
    table.insert (curlCommandTab, '-F "user='       ..pushUser     ..'"')
    table.insert (curlCommandTab, '-F "title='      ..pushTitle    ..'"')
    table.insert (curlCommandTab, '-F "message='    ..pushMessage  ..'"')
    table.insert (curlCommandTab, '-F attachment=@' ..snapshotFile ..'"')
    table.insert (curlCommandTab, '-F "sound='      ..pushSound    ..'"')
    table.insert (curlCommandTab, '-F "priority='   ..pushPriority ..'"')
    table.insert (curlCommandTab, '-F "url='        ..pushUrl      ..'"')
    table.insert (curlCommandTab, '-F "url_title='  ..pushUrlTitle ..'"')
    
    -- The .json suffix requests that the response be in JSON format
    table.insert (curlCommandTab, 'https://api.pushover.net/1/messages.json')
    
    local curlCommand = table.concat (curlCommandTab, ' ')
    print(curlCommand)
    
    local handle = io.popen(curlCommand)
    local result = handle:read("*a")
    handle:close()
    print (result)
    
    -- Delete temporary snapshot
    os.remove (snapshotFile)
    
    
    Vera

  • 20 amp smart physical switch (to control Infratech heater) - preferable to be outdoor rated, but any
    A a-lurker

    May be better to get a DIN rail high powered contactor and use a Shelly to flip that on & off.

    Hardware

  • openLuup_install.lua - URL changed?
    A a-lurker

    AK. Was doing an openLuup install and the installer errored with:

    openLuup_install   2019.02.15   @akbooer
    getting openLuup version tar file from GitHub branch master...
    un-zipping download files...
    getting dkjson.lua...
    lua5.1: openLuup_install.lua:45: GitHub download failed with code 500
    stack traceback:
            [C]: in function 'assert'
            openLuup_install.lua:45: in main chunk
            [C]: ?
    

    The installer code was executing this URL:

    http://dkolf.de/src/dkjson-lua.fsl/raw/dkjson.lua?name=16cbc26080996d9da827df42cb0844a25518eeb3
    

    Running it manually gives:

    dkolf.de
    
    The script could not be run error-free.
    Please check your error log file for the exact error message. You can find this in the KIS under "Product Management > *YOUR PRODUCT* > *CONFYGUAR* > Logfiles". Further information can be found in our FAQ.
    The script could not be executed correctly.
    Please refer to your error log for details about this error. You find it in your KIS under item "Product Admin > *YOUR PRODUCT* > *CONFIGURE* > Logfiles". Further information can also be found in our FAQ.
    

    I'm thinking the dkjson code URL has been changed. On dkolf.de there is a download link:

    http://dkolf.de/dkjson-lua/dkjson-2.8.lua
    

    and dkjson code also seems to be in GitHub (I presume this is the same code?):

    https://github.com/LuaDist/dkjson/blob/master/dkjson.lua
    

    I'm don't know what dkolf.de looked like previously but I do see the dkjson code has been updated as of 2024-06-17. Hope this helps.

    Oh - and by the way the dkjson.lua file seems to have been downloaded OK by the installer - error or no error, so go figure.

    openLuup

  • openLuup charting and forward slashes in variable names
    A a-lurker

    Tried out the above start up code and it has done the job. Now have lots of Shelly based files that can now be plotted using Grafana. They all have the same retentions but so far that's not a problem.

    Great - thanks very much.

    openLuup

  • openLuup charting and forward slashes in variable names
    A a-lurker

    Easily answered: Whisper Database Format

    OK

    You should absolutely not create any extra files in the Historian folder.

    OK - assume it's all meant to be private to openLuup. Best not to mess with its own little world.

    IIRC, the Historian substitutes / in the file names it creates.

    However whisper.create (filename,archives,0) does not. The string

    "whisper/0.10006.shellypro3em.em1/0/act_power.wsp"

    is used as is.

    Ultimately I would like to have openLuup save the data for any variable I nominate and it gets saved no matter what the variable is called. I imagime forward slashes could be replaced with say dashes (underscores are already in use by Shelly).

    The openLuup instance where I have the em1/0/act_power.wsp variable does not have DataYours installed. You have said however that any files in a whisper directory will get updated. Is that right? I though the whisper directory had be specified in DataYours?

    So a little confused on how "em1/0/act_power.wsp" or any other variable with slashes can be charted. I can see how having children set up for each device could be set to do this but ultimately you need to be able to plot any variable of ones choosing.

    For example the Shelly Pro 4pm also measures power (very useful) but the variable is "switch/0/apower" ie a completely different layout.

    Variables don't have to be picked off a list - they could just be manually set up by ruuning a snippet of code such as "whisper.create" as seen above.

    openLuup

  • openLuup charting and forward slashes in variable names
    A a-lurker

    Currently I have some Whisper files used by DataYours that been working well for ages and do what I want.

    One of the files is called Watts_L1.d.wsp and uses this retention from "storage_schemas_conf" in openLuup file virtualfilesystem.lua:

    [day]
    pattern = \.d$
    retentions = 1m:1d
    

    Inside the actual "Watts_L1.d.wsp" file is a header like so:

             1,      86400,          0,          1
             84,         60,       1440
    
    

    The 1, 86400 is one minute & one day (in minutes) as per the retention listed above. As a side issue I would like to know what the other header values mean ie what's the syntax here?

    New challenge: I now have three Shelly variables named:

    em1/0/act_power
    em1/1/act_power
    em1/2/act_power

    with a device ID of "10006" and a SID of "shellypro3em"

    And I would like to plot them using the Historian, just like I do with Watts_L1.d.wsp in DataYours. So I need a file in the history directory for the data. So I looked at doing this:

    local whisper = require "openLuup.whisper"
    
    -- Syntax:  history/0.deviceNumber.shortServiceId.variableName
    local filename = "history/0.10006.shellypro3em.em1/0/act_power.wsp"
    
    local archives = "1m:1d"
    
    whisper.create (filename,archives,0)
    

    Problem is that the variable names contains forward slashes, which are invalid filename characters. What to do?

    Also should the retentions now be (to suit the latest openLuup software)?:

    local archives = "1m:1d,10m:7d,1h:30d,3h:1y,1d:10y"
    

    Also "shellypro3em" is not a "shortServiceID" as per those listed in "servertables.lua". So can "shellypro3em" be used instead? ie can both short and long service IDs be used in the above call to whisper.create?

    openLuup

  • openLuup log files - LuaUPnP.log and LuaUPnP_startup.log
    A a-lurker

    Try getting the json and checking it here. Also may be a decoding problem for the currency symbol. Try changing the currency to one simple character. The a-circumflex symbol before the pound symbol looks odd. UTF-8 versus ISO-8859-1 ?

    openLuup

  • openLuup log files - LuaUPnP.log and LuaUPnP_startup.log
    A a-lurker

    The code above before it is reformatted has ", at the very end:

    Any other startup processing may be inserted here...\nluup.log "startup code completed"\n\n",

    openLuup

  • openweather plugin ?
    A a-lurker

    OpenWeatherMap's API changes: Some time back OpenWeatherMap decided to change their API billing practices. The old "One Call API" arrangements (1,000 API calls per day free) have now ended.

    You now have to provide your credit card details, so if you exceed the free 1,000 API calls per day you can be charged. The provided API keys don't work unless you provide these details. Returned error message:

    {
      "cod": 401,
      "message": "Invalid API key. Please see https://openweathermap.org/faq#error401 for more info."
    }
    

    However, if you just want current weather with no forecasts, you can use the "weather" call:

    https://api.openweathermap.org/data/2.5/weather?lat=%s&lon=%s&units=%s&lang=%s&appid=%s

    It's possible the Multi Station Weather plugin could be modified to fall back to this call, if it fails on the first call. As suggested here.

    In my case, I've hacked the MultiStationWeather plugin code to use the "weather" URL at all times, as I don't use forecasts.

    Plugins

  • Migrating from Vera Plus to Home Assistant (or other?)
    A a-lurker

    I've got a lot of Zwave devices inside walls, so I'm being using a Vera Edge as a Zwave radio bridged to openLuup. Works perfectly once you move everything else to openLuup. Just leave the thermostats on Vera and bridge to openLuup. Makes the transition a lot easier.

    Hoping to see Zwavejs talking to openLuup via MQTT one day. It's certainly possible. In the interim it wouldn't be too hard to set up a couple of Zwave devices using the Virtual Devices plugin but thermostats may be a bit tricky.

    Also got ZigBee2MQTT talking to openLuup (mainly Hue devices) and some Shellies - all works nicely. You can also use Reactor with it.

    You can read the openLuup info here.

    Home Assistant vera home assistant open lua reactor

  • Chat seems broken (still)
    A a-lurker

    Have you seen this post?

    https://smarthome.community/topic/1525/forum-sysops/4?_=1713755285910

    Or is this in addition to the above?

    Comments & Feedback

  • openLuup: Shelly Bridge plugin
    A a-lurker

    Had a look at the latest development code. Got this:

    2024-04-20 18:51:28.519   openLuup.userdata:: [9111] LuaView (GitHub.master)
    2024-04-20 18:51:28.519   openLuup.userdata:: [9281] Virtual HTTP Devices (GitHub.master)
    2024-04-20 18:51:28.519   openLuup.userdata:: [4226] Sonos (GitHub.v2.0)
    2024-04-20 18:51:28.519   openLuup.userdata:: ...user_data loading completed
    2024-04-20 18:51:28.519   openLuup.init:: running _openLuup_STARTUP_
    
    2024-04-20 18:51:28.525   scheduler.context_switch::  ERROR: [dev #0] ./openLuup/luup.lua:1103: attempt to index field '?' (a nil value)
    2024-04-20 18:51:28.525   openLuup.init:: ERROR: ./openLuup/luup.lua:1103: attempt to index field '?' (a nil value)
    
    2024-04-20 18:51:28.525   openLuup.init:: init phase completed
    
    

    Had to get the house back up and running, so we could watch the TVeee.

    Commented out some code:

    local function log (msg, level) 
      local dno = scheduler.current_device()
      -- local mute = devices[dno].attributes.log_level    -- 2024.04.12  add "log_level" device attribute
      local mute = "something"
      if mute ~= "off" then
        logs.send (msg, level, dno) 
      end
    end
    

    Could look further but had to get the house back up and running, so we could watch the TVeee. So best I can do currently!

    Plugins
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Unsolved