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
Time series documentation
tunnusT
Is the current manual (incl. examples) up to date with how retention value is handled in time series configuration? Referring to this post
Multi-System Reactor
MQTT templates for ZIgbee scene controller, or a better way?
CatmanV2C
Topic thumbnail image
Multi-System Reactor
Reset a delay
CatmanV2C
I'm sure this has been asked, and answered, but damned if I can figure it out Use case: I have a rear garden with lights. A door from the kitchen into the garden and a door from the garage. Currently if I open the kitchen door the lights come on (yay) and a 3 minute delay starts. After 3 minutes, no matter what else happens, the lights go off (Boo! But also yay!) What I would like is for the 3 minute delay until the lights go off to start from the latest door open event. That is, if I'm going from kitchen to garage, and back again, the lights stay on until there's three minutes of no activity. I've tried 'hacking' with a virtual switch, but can't seem to stop the delay. Any pointers? TIA C
Multi-System Reactor
Genuinely impressed with Zigbee and HA / Reactor
CatmanV2C
Just for the record, in case anyone is following, I'm really rather impressed. I have installed one of these: https://www.amazon.co.uk/dp/B0B6P22YJC?ref=ppx_yo2ov_dt_b_fed_asin_title&th=1 That's connected (physically) to the VM running on my Synology, with a 2m USB extension. The same host also runs Openluup, Mosquito, HA Bridge. Yesterday I installed Zigbee2mqtt. That was a bit of a PITA but mostly because of ports and permissions. Once up and running, and the correct boxes ticked, immediately visible in Home Assistant via the MQTT integration, and thence into Reactor I've only got two devices. I bought the cheapest sensor I could find, which is a door sensor. Dead easy to add to ZIgbee2mqtt and again, immediately visible in HA. https://www.amazon.co.uk/dp/B0FPQLWRW1?ref=ppx_yo2ov_dt_b_fed_asin_title The dongle is on the top floor of the house, and I wanted the sensor on the back door (just about as far apart as it's possible to get short of going into the garage) When I moved the sensor downstairs it dropped out pretty instantly (which wasn't a huge surprise) so quick bit of research found out that smart plugs will act as routers so... https://www.amazon.co.uk/dp/B0FDQDPGBB?ref=ppx_yo2ov_dt_b_fed_asin_title Took me about 30 seconds to connect. Updated the name. Instantly visible in Reactor with the new name pushed over from Zigbee2mqtt. And lo, the door sensor now has a signal of 140 and works as far as I can tell perfectly and instantly (unlike my z-wave one). A few more of those will be purchased and used to replace the Tuya wifi cloud devices and the (continually failing) Z-wave plugs (yeah, they were TKB so....) Commended to the house. Thanks for everyone that got me on the right lines. C
Zigbee
Zigbee2mqtt installed! sytemctl not happy :(
CatmanV2C
Hello oh great ones. After a couple of hours messing with ports and permissions I have Zigbee2mqtt installed and running on my virtual pi Can connect to the front end and everything Odd one though, simply cannot get systemctl to work and the error is, well, unhelpful. The service file is this: [Unit] Description=zigbee2mqtt After=network.target [Service] Environment=NODE_ENV=production Type=notify ExecStart=/usr/local/bin/node index.js WorkingDirectory=/opt/zigbee2mqtt StandardOutput=inherit # Or use StandardOutput=null if you don't want Zigbee2MQTT messages filling syslog, for more options see systemd.exec(5) StandardError=inherit WatchdogSec=10s Restart=always RestartSec=10s User=pi [Install] WantedBy=multi-user.target Straight out of the docs with the change to point to my local node install (which we know works as it's the same as the very fine Reactor is using. Running manually pnpm start in /opt/zigbee2mqtt works fine However: catman@openluup:/etc/systemd/system$ sudo systemctl start zigbee2mqtt.service Job for zigbee2mqtt.service failed because the control process exited with error code. See "systemctl status zigbee2mqtt.service" and "journalctl -xe" for details. Which I have catman@openluup:/etc/systemd/system$ sudo systemctl status zigbee2mqtt.service ● zigbee2mqtt.service - zigbee2mqtt Loaded: loaded (/etc/systemd/system/zigbee2mqtt.service; disabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Tue 2025-12-16 12:32:42 GMT; 4s ago Process: 3093 ExecStart=/usr/local/bin/node index.js (code=exited, status=217/USER) Main PID: 3093 (code=exited, status=217/USER) and -- A start job for unit zigbee2mqtt.service has begun execution. -- -- The job identifier is 17477. Dec 16 12:35:16 openluup systemd[3178]: zigbee2mqtt.service: Failed to determine user credentials: No such process Dec 16 12:35:16 openluup systemd[3178]: zigbee2mqtt.service: Failed at step USER spawning /usr/local/bin/node: No such process -- Subject: Process /usr/local/bin/node could not be executed -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- The process /usr/local/bin/node could not be executed and failed. -- -- The error number returned by this process is ERRNO. Dec 16 12:35:16 openluup systemd[1]: zigbee2mqtt.service: Main process exited, code=exited, status=217/USER -- Subject: Unit process exited -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- An ExecStart= process belonging to unit zigbee2mqtt.service has exited. -- -- The process' exit code is 'exited' and its exit status is 217. Dec 16 12:35:16 openluup systemd[1]: zigbee2mqtt.service: Failed with result 'exit-code'. -- Subject: Unit failed -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- The unit zigbee2mqtt.service has entered the 'failed' state with result 'exit-code'. Dec 16 12:35:16 openluup systemd[1]: Failed to start zigbee2mqtt. -- Subject: A start job for unit zigbee2mqtt.service has failed -- Defined-By: systemd -- Support: https://www.debian.org/support -- -- A start job for unit zigbee2mqtt.service has finished with a failure. Which strikes me as very odd. Any blindingly obvious things I'm missing? TIA! C
Zigbee
Any thoughts on which is better
CatmanV2C
Obviously a quiet forum, but perhaps it's time I'm looking at rolling Zigbee into my system, in large part for the Aqara FP300 presence sensors which seem to finally provide a solution to if the wasp is actually in the box. My current set up is as follows: One Debian VM on Synology NAS running: Z-wave Server Open Luup Multi system reactor HA bridge Mosquito MQQT broker This machine has a UZB Z-wave stick connected via the USB port on the NAS Another HAOS VM on the same NAS running HAOS I've got some older Z-wave stuff that I keep around until it fails. I have some Tuya stuff integrated in HA My thought was to get either a SMLIGHT SLZB-06M or an Aqara Hub M2 Integrate them via Zigbee2MQQT (running on the Debian machine) and then expose them in HA so I can continue to automate in MSR. Thoughts on which of those devices wold be preferable long term. Both are POE capable which is good. It also appears I could add a USB dongle to the NAS and expose it to the HAOS machine. Any thoughts from the assembled experts here? TIA C
Zigbee
Single protocol?
CatmanV2C
Another question to the hive mind. Prompted by the fact that I lost yet another z-wave device over the weekend due to a power issue. It looks like z-way server is reporting another device failed (although it's working fine) and message queue is far too long IMHO. Also the failed device has been removed in the expert interface, but still there in the 'normal' one. Sigh. Currently I have z-wave, Tuya, thinking about Zigbee.... Does anyone use one single protocol for everything? Right now I'm feeling that as the z-wave stuff dies, I'm just gonna replace it with something else.... C
General Discussion
HDMI oddness
CatmanV2C
Not really Smart Home stuff, but going to ask as we have smart people... Bear with me on this one. Asking here because of the font of knowledge! For many eek years I have had a Virgin V6 box and a Raspberry Pi running Kodi connected to my TV through a cheap *** HDMI switch. It all worked beautifully but the absolutely critical thing was that the TV remote passed the signals back to the Pi to allow remote control of Kodi. Couple of changes of late: Installed a soundbar on the TV using the ARC (audio return channel). That then turns the soundbar on and off when the TV turns on and off and the TV volume control controls the soundbar volume direct. Everything continues to work Upgraded the software of the Tivo box to Virgin 360. This is literally software only. You get sent a snacky new Bluetooth remote hit 'upgrade' on the screen and off it goes. Now, things are not playing well. Typically when I turn on to watch Kodi the soundbar comes on (as it should) but the TV either puts out sound through its own speakers and the soundbar, or just the soundbar. It's not possible to control the volume of the soundbar through the TV. Also it's not longer possible to control Kodi using the TV remote. If I turn the TV360 box off, i.e. power it down, before turning on to watch Kodi, everything is fine. This makes little to no sense to me. My assumption is that the cheap *** HDMI switch is getting something from the TV360 connection that it didn't used to get when the software was Tivo and that's screwing up the HDMI communications. I'm upgrading the switch to something a little less chap, but wondered if anyone could validate my theory at all? TIA C
General Discussion
Reactor Loading Screen Safari
S
Topic thumbnail image
Multi-System Reactor
Constraints states visually do not match actual
S
Topic thumbnail image
Multi-System Reactor
Oh the joy of pairing
CatmanV2C
When I remember the old days Just added a new Tuya plug (OK so it's cloud) Start to finish, visible in HA and MSR < 30 seconds... C
Vera
Home Assistant Connect ZWA-2 & ZBT-2
therealdbT
Topic thumbnail image
Hardware
[MSR] Feature request: For Each action on arrays/groups
therealdbT
Topic thumbnail image
Multi-System Reactor
[Solved] Error: Command timeout
G
at _ClientAPI._commandTimeout (http://192.168.1.100:8111/client/ClientAPI.js:807:179 Seeing this randomly when returning to open browser tab after being away awhile. Once, maybe twice a day. "What did you do to trigger it?" Literally nothing, just walked away and returned and there it was. Actions taken in reasonably close proximity to this particular instance of it popping up: I'd restarted the MSR container in Portainer. I'll try to grab some logs here shortly.
Multi-System Reactor
Issue with MSR UI becoming unresponsive
S
I'm having an issue with MSR's UI being very unresponsive. It started happening a couple days ago and I didn't make any changes that would have caused this except adding some meross lan devices in HA. When I go into an entity action and use the search functionality, it usually will start filtering and then get to a place after a few letters are entered where it will take 30 seconds or more (sometimes minutes) for the UI to show what I am typing. During this time MSR ui is completely unresponsive. I've tried multiple browsers and multiple computers. HA and MSR are both deployed in docker. I have run HTOP on the host and when the problem happens there are no CPU/Memory spikes at all. From a functionality standpoint MSR is working perfectly. This seems to be an UI issue only. Do i need to ditch Docker and run MSR on a Proxmox VM? I have both stand alone Docker and Proxmox environments. I dont mind doing that I just want to be able to use the UI again... Installation method Home Assistant Container Core 2025.7.3 Frontend 20250702.3 nothing crazy in the logs except some openweather map stuff that doesn't make any sense as it is working fine in MSR Any help would be greatly appreciated Reactor latest-25328-b2ed1365 app 25328 configuration from /var/reactor/config NODE_PATH /opt/reactor:/opt/reactor/node_modules [latest-25328]2025-11-30T20:01:53.843Z <app:null> Reactor build latest-25328-b2ed1365 starting on v24.11.1 /usr/local/bin/node [latest-25328]2025-11-30T20:01:53.844Z <app:null> Process ID 1 user/group 0/0; docker; platform linux/x64 #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025; locale (undefined) [latest-25328]2025-11-30T20:01:53.844Z <app:null> Basedir /opt/reactor; data in /var/reactor/storage [latest-25328]2025-11-30T20:01:53.844Z <app:null> NODE_PATH=/opt/reactor:/opt/reactor/node_modules [latest-25328]2025-11-30T20:01:53.865Z <app:null> Resolved timezone=America/New_York, environment TZ=America/New_York; offset minutes from UTC=-300 [latest-25328]2025-11-30T20:01:53.867Z <default:null> Module i18n v25141 [latest-25328]2025-11-30T20:01:53.867Z <app:null> Configured locale (undefined); selected locale(s) en-US.UTF-8 [latest-25328]2025-11-30T20:01:53.879Z <app:null> Loaded locale en-US for en-US [latest-25328]2025-11-30T20:01:53.879Z <app:null> Local date/time using configured timezone and locale formatting is "11/30/2025, 3:01:53 PM" [latest-25328]2025-11-30T20:01:53.889Z <Structure:null> Module Structure v25326 [latest-25328]2025-11-30T20:01:53.890Z <Capabilities:null> Module Capabilities v24312 [latest-25328]2025-11-30T20:01:53.904Z <Plugin:null> Module Plugin v25141 [latest-25328]2025-11-30T20:01:53.923Z <Timer:null> Module Timer v25279 [latest-25328]2025-11-30T20:01:53.924Z <TimerBroker:null> Module TimerBroker v25314 [latest-25328]2025-11-30T20:01:53.927Z <Entity:null> Module Entity v25251 [latest-25328]2025-11-30T20:01:53.929Z <Controller:null> Module Controller v25253 [latest-25328]2025-11-30T20:01:53.930Z <AlertManager:null> Module AlertManager v25318 [latest-25328]2025-11-30T20:01:53.937Z <default:null> Module Ruleset v25283 [latest-25328]2025-11-30T20:01:53.937Z <default:null> Module Rulesets v25141 [latest-25328]2025-11-30T20:01:53.942Z <GlobalExpression:null> Module GlobalExpression v25258 [latest-25328]2025-11-30T20:01:53.953Z <Predicate:null> Module Predicate v25328 [latest-25328]2025-11-30T20:01:53.956Z <Rule:null> Module Rule v25323 [latest-25328]2025-11-30T20:01:53.958Z <GlobalReaction:null> Module GlobalReaction v25292 [latest-25328]2025-11-30T20:01:53.959Z <Engine:null> Module Engine v25325 [latest-25328]2025-11-30T20:01:53.964Z <httpapi:null> Module httpapi v25328 [latest-25328]2025-11-30T20:01:53.972Z <wsapi:null> Module wsapi v25328 [latest-25328]2025-11-30T20:01:53.994Z <TaskQueue:null> Module TaskQueue 24138 [latest-25328]2025-11-30T20:01:53.994Z <VeraController:null> Module VeraController v25141 [latest-25328]2025-11-30T20:01:54.179Z <HassController:null> Module HassController v25325 [latest-25328]2025-11-30T20:02:13.797Z <OWMWeatherController:null> Module OWMWeatherController v25268 [latest-25328]2025-11-30T20:02:13.800Z <SystemController:null> Module SystemController v25323 [latest-25328]2025-11-30T20:02:13.807Z <MQTTController:null> Module MQTTController v22092 [latest-25328]2025-11-30T20:02:20.630Z <OWMWeatherController:CRIT> FetchError: request to https://api.openweathermap.org/data/2.5/weather?lat=xxxxxxxxxx&lon=-xxxxxxxxx&appid=xxxxxxxxxxxxxxxxxxxxxxxxxx&units=standard&_r=1xxxxxxxxxxxxxxfailed, reason: [-] FetchError: request to https://api.openweathermap.org/data/2.5/weather?lat=xxxxxxxxxxx&lon=-xxxxxxxxxxxxxxxxxx&appid=xxxxxxxxxxxxxxxxxxx&units=standard&_r=xxxxxxxxxxxxxxxfailed, reason: at ClientRequest.<anonymous> (/opt/reactor/node_modules/node-fetch/lib/index.js:1501:11) at ClientRequest.emit (node:events:508:28) at ClientRequest.emit (node:domain:489:12) at emitErrorEvent (node:_http_client:108:11) at TLSSocket.socketErrorListener (node:_http_client:575:5) at TLSSocket.emit (node:events:508:28) at TLSSocket.emit (node:domain:489:12) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) at processTicksAndRejections (node:internal/process/task_queues:89:21
Multi-System Reactor
Date/time condition
tunnusT
Topic thumbnail image
Multi-System Reactor
Is there a way to turn this section (image in post) off?
toggledbitsT
Topic thumbnail image
Comments & Feedback
Device log?
G
@toggledbits is there a log that will show me what rule is turning on a specific device? I've got a switch that has been kicking on at 2200 ET for several nights now and the reactor.log doesn't have a thing in it that I can see on a device level (it being more rules-based).
Multi-System Reactor
Midnight crossing not working in date/time condition (build 25325)
tunnusT
Topic thumbnail image
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
About
Posts
260
Topics
36
Shares
0
Groups
0
Followers
1
Following
0

Posts

Recent Best Controversial

  • 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

  • zigbee2mqtt and openLuup
    A a-lurker

    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.

    Plugins

  • openLuup: Shelly Bridge plugin
    A a-lurker

    Doco corrected.

    Plugins

  • openLuup: Shelly Bridge plugin
    A a-lurker

    I've got something about pretty printing here. No doubt in my writings, I have made a few errors here and there but that can happen. OK on the "Generic status update over MQTT" - I'll fix that in the paragraph immediately above here.

    Plugins
  • Login

  • Don't have an account? Register

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