Navigation

    Discussion Forum to share and further the development of home control and automation, independent of platforms.

    SmartHome Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Unsolved
    1. Home
    2. a-lurker
    • MSR No longer Setting Reactions

      T

      Hello Everyone -

      I have a peculiar situation that I'm hoping to get some help with.

      Running Vera which is still handling my Zwave, MySensors, Zigbee, and still a balance of my Reactors.

      However, I've also been running MSR for several months in preparation for an eventual move off of Vera.

      Vera had one of its meltdowns this morning related to my Opensprinkler plug in.

      After getting that straightened out, I added the OpenSprinkler plugin to HAAS and that's when I started having issues.

      My existing MSR reactors (even simple ones) don't seem to fire their reactions. I can see the conditions go "true". If I manually fire the Reaction, it works fine.

      I do see this a lot in the logs:

      [1.0.2-21350]2022-05-16T19:02:44.518Z <Rule:INFO> Rule#rule-460 evaluation in progress; waiting for completion

      (Various rules - 460 is just an example)

      Is there anything I can do to further troubleshoot?

      Multi-System Reactor
    • Reactor (Multi-System/Multi-Hub) Announcements

      toggledbits

      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 Telegram Messages Stopped Working

      T

      My MSR has been working flawlessly until a couple of days ago when it stopped sending Telegram Messages (or should I say they stopped getting through!). I have updated to MSR version 22004. The reactor.log is updating and is showing no errors:

      [latest-22004]2022-05-15T17:52:31.417Z Engine:NOTICE Starting reaction Message Test (re-l37h2fkj)
      [latest-22004]2022-05-15T17:52:31.417Z Engine:INFO Message Test all actions completed.
      [latest-22004]2022-05-15T17:52:31.704Z Engine:INFO Enqueueing "Message Test" (re-l37h2fkj)
      [latest-22004]2022-05-15T17:52:31.735Z Engine:NOTICE Starting reaction Message Test (re-l37h2fkj)
      [latest-22004]2022-05-15T17:52:31.736Z Engine:INFO Message Test all actions completed.
      [latest-22004]2022-05-15T17:52:32.007Z Engine:INFO Enqueueing "Message Test" (re-l37h2fkj)
      [latest-22004]2022-05-15T17:52:32.035Z Engine:NOTICE Starting reaction Message Test (re-l37h2fkj)
      [latest-22004]2022-05-15T17:52:32.036Z Engine:INFO Message Test all actions completed.
      [latest-22004]2022-05-15T17:52:41.324Z Engine:INFO Enqueueing "Variable Telegram Test" (re-kvnm57c3)

      If I use the following in my web browser the telegram message gets through:

      https://api.telegram.org/botxxxxx......./sendMessage?chat_id=xxxxx......&text=Test Message HTTPS

      I am running MSR on my QNAP network attached storage. Any assistance would be appreciated.

      Just another question...... I would like to post in the HOME HARDWARE VERA section of Smarthome, but I do not have the option to set up a new post. Do I need to request access for this?

      Multi-System Reactor
    • Lovelace initial setup

      PerH

      I've just started to look at HASS UI, and have seen enough to see that it has an infinite number of ways to show enitites and devices in all forms and shapes.. But for starters i'd like to have something familiar, so how do i go about getting a sidebar for rooms like in openluup?

      I know i can put them in the actual left sidebar, but i'd prefer to keep that for configuration pages..

      on each room page i'd like to sort the lights, the heaters, the sensors together, and i saw somewhere that HASS will do that for you if you play your cards (pun) right.. can't find it again now..

      Any pointers to a beginner?

      Home Assistant
    • SSL Certificate for Multi System Reactor via LetsEncrypt

      W

      Details of runtime environment:

      Reactor (Multi-hub) stable-22055-9b40e12 Running as a service on Windows Server 2022 Std 21H2 Connecting to HASS (HASSOS) Is a migration WIP from OpenLuup/Reactor

      A complete description of your objective:

      Using LetsEncrypt, application "certifyTheWeb", retrieve and apply SSL certificate to Multi System Reactor

      A description of your approach/solution/implementation so far:

      Reviewed Config files, can't seen mention of certificate files in there

      Actual Question:

      How do I apply a certificate to whatever web server Reactor uses? I'm familiar with managing certificates on IIS and Apache but Reactor doesn't use either of these and I have not been able to locat ethe config file that Reactor uses for this. Which config file needs editing to apply a certificate? Does it use the computer certificate store or it's own store (e.g. pem files)

      The reason I want to achieve this, other than the general goodness of having everything I can in TLS is that I have Reactor as an IFRAME in my HASS console and as HASS is HTTPS and Reactor is HTTP then the iframe refuses to open.

      Search for "certificate" or "ssl" did not reveal anything relevant in this forum.

      Multi-System Reactor
    • MSR ZEN32 weird behavior

      R

      @toggledbits
      Hi Patrick,
      Running HASS 2022.5.3
      MSR zwavejs-22126-834c3e9

      Seeing weird behavior in MSR with regards to my Zen32's. Not sure how to capture info that might be relevent but will describe what I am seeing.
      In the example below I pressed scene 001 4 times. It flashed and changed the primary value to "4". The remaining buttons were previously showing the PV as "double" I pushed each button one time and they flashed and displayed the PV as 4.
      zen32.JPG

      In the zwavejs2mqtt debug screen that sequence looks like this.

      2022-05-10 09:38:44.078 INFO ZWAVE: Node 45: value notification: 91-0-scene-001 5 2022-05-10T16:38:44.081Z CNTRLR « [Node 045] received CentralScene notification { "nodeId": 45, "ccId": "Central Scene", "ccCommand": "0x03", "payload": "0x898501" } 2022-05-10 09:38:45.982 INFO ZWAVE: Node 45: value notification: 91-0-scene-002 0 2022-05-10T16:38:45.984Z CNTRLR « [Node 045] received CentralScene notification { "nodeId": 45, "ccId": "Central Scene", "ccCommand": "0x03", "payload": "0x8a8002" } 2022-05-10 09:38:47.807 INFO ZWAVE: Node 45: value notification: 91-0-scene-003 0 2022-05-10T16:38:47.810Z CNTRLR « [Node 045] received CentralScene notification { "nodeId": 45, "ccId": "Central Scene", "ccCommand": "0x03", "payload": "0x8b8003" } 2022-05-10 09:38:48.858 INFO ZWAVE: Node 45: value notification: 91-0-scene-004 0 2022-05-10T16:38:48.861Z CNTRLR « [Node 045] received CentralScene notification { "nodeId": 45, "ccId": "Central Scene", "ccCommand": "0x03", "payload": "0x8c8004" }

      Let me know what other info you would like me to supply.
      I have played around with a bunch of other key stroke combo's and it looks like buttons 2-5 display what ever button 1 is set to.
      Have tested this on 4 different ZEN32's and it is same on all.

      Multi-System Reactor
    • HASS 2022.5 issue with ZwaveJS in MSR

      R

      Running zwavejs-22118-baab576 in MSR, HASSOS 2022.5.1

      Due to an unreported issue in HASS, when I upgraded the 2022.5 yesterday, it dropped ZwaveJS2MQTT from my HASSOS build. Finally got it reinstalled and it appears to be working the way it was previously.
      MSR is now showing zwavejs down and in entities, nothing is updating.

      Seeing this in the logs:
      ZWaveJSController#zwavejs ws_open caught [Error]Error: connect ECONNREFUSED 192.168.0.16:3000

      Are there additional steps needed that are not mentioned in the manual?
      At a loss to figure out what is causing issue.

      Multi-System Reactor
    • Syncing of updates...

      CatmanV2

      ....but not what you think, probably.

      I doubt there's an answer here to this, and it's about Iphone locator (sorry!)

      Hopefully the question is, at least, slightly interesting.

      Polling on the phone is currently set to 5 minutes and IPhone locator appears to update every 5 minutes as I also get an update in the OpenLuup log every 5 minutes.

      The 'problem' is that the Iphone locator (and therefore any conditions based upon a change in value) are happening 4 minutes and some seconds after the phone polls and updates its position. So effectively the phone is moving for nearly 10 minutes before any notification takes place. Which is a bit slow for my desired application.

      As an example:

      2022-05-05 17:27:08.244 luup.variable_set:: 55.urn:upnp-org:serviceId:IPhoneLocator1.MsgText2 was: 28.35 Km @ 0.00 Km/h on 2022-05-05 17:17 now: 28.35 Km @ 0.00 Km/h on 2022-05-05 17:22 #hooks:0 2022-05-05 17:32:12.340 luup.variable_set:: 55.urn:upnp-org:serviceId:IPhoneLocator1.MsgText2 was: 28.35 Km @ 0.00 Km/h on 2022-05-05 17:22 now: 27.77 Km @ 6.92 Km/h on 2022-05-05 17:27 #hooks:0

      Where you can see that the phone must have updated its location between 17:27:08.244 and 17:28:00.000

      Anyone got an bright ideas how I can reduce the discrepency?

      Cheers!

      C

      Software
    • Global Expression – Reference Error

      wmarcolin

      Hi!

      After several tests, restarting the computer where the MSR is, and the MSR itself by Tools > Restart, I have a persistent error in the logs.

      32d45bc3-51f8-4718-a113-3381e9d7edf2-image.png

      Looking at the global expression (screen below), I see that it is highlighted as an error, however, if I look at two other expressions above that have the same structure, they do not present an error, so I do not think the problem is with the expression's code.

      ca8a7867-4ac7-4f9a-9913-15a80da18f05-image.png

      This expression uses a group, which validates 4 devices of type door sensor, whether the status is true or false, door open or closed.

      "dgc_entrance_open": name: DGC Entrance Open select: - include_entity: - "hubitat>37" - "hubitat>38" - "hubitat>99" - "hubitat>130" filter_expression: > entity.attributes?.door_sensor?.state == true

      I also compared it with other groups, the structure is identical.

      Looking at the 4 devices in this group, I see that all are active in the MSR, have similar variables, are used in other groups and rules that do not present a problem.

      52b099f4-b9c4-46cb-ad3d-c873b09b7e13-image.png

      Looking at the log, I understand that it refers to some object that would be null, at which point I am lost on what to actually look at.

      [latest-22118]2022-05-02T22:33:11.711Z <Engine:INFO> Reaction Engine starting [latest-22118]2022-05-02T22:33:11.719Z <Engine:INFO> Checking rule sets... [latest-22118]2022-05-02T22:33:11.746Z <Engine:INFO> Checking rules... [latest-22118]2022-05-02T22:33:11.748Z <Engine:INFO> Data check complete; no corrections. [latest-22118]2022-05-02T22:33:11.892Z <Engine:ERR> [Engine]Engine#1: error evaluating expression EntranceOPEN: [ReferenceError]ReferenceError: Invalid scope in reference to member attributes of (object)null [latest-22118]2022-05-02T22:33:11.893Z <Engine:ERR> [Engine]Engine#1: expression: sort(each id in ( getEntity('groups>dgc_entrance_open').attributes.sys_group.members ): getEntity(id).name) [latest-22118]2022-05-02T22:33:11.894Z <Engine:CRIT> ReferenceError: Invalid scope in reference to member attributes of (object)null ReferenceError: Invalid scope in reference to member attributes of (object)null at _run (C:\MSR\reactor\common\lexp.js:1449:31) at _run (C:\MSR\reactor\common\lexp.js:1443:33) at _run (C:\MSR\reactor\common\lexp.js:1443:33) at _run (C:\MSR\reactor\common\lexp.js:1536:38) at _run (C:\MSR\reactor\common\lexp.js:1480:33) at C:\MSR\reactor\common\lexp.js:1283:29 at Array.forEach (<anonymous>) at _run (C:\MSR\reactor\common\lexp.js:1282:28) at run (C:\MSR\reactor\common\lexp.js:1663:22) at Object.evaluate (C:\MSR\reactor\common\lexp.js:1699:20) [latest-22118]2022-05-02T22:33:12.232Z <Engine:NOTICE> Reaction Engine running! [latest-22118]2022-05-02T22:33:12.233Z <Rule:INFO> Rule#rule-kxjp2el2 (Mode DAY) started [latest-22118]2022-05-02T22:33:12.234Z <Rule:INFO> Rule#rule-kxjp7kc8 (Mode EVENING) started [latest-22118]2022-05-02T22:33:12.234Z <Rule:INFO> Rule#rule-kxjparz7 (Mode NIGHT) started [latest-22118]2022-05-02T22:33:12.234Z <Rule:INFO> Rule#rule-kxjpd0d6 (Mode AWAY ∆) started [latest-22118]2022-05-02T22:33:12.235Z <Rule:INFO> Rule#rule-kxjqrcr9 (Mode PARTY) started [latest-22118]2022-05-02T22:33:12.235Z <Rule:INFO> Rule#rule-kxjqyhnu (Mode VACATION ∆) started

      Finally, if I return the expression and press the Try This Expression button, it is executed and the error disappears.

      102e5013-b9aa-4c26-98f5-1ae545f8897f-image.png

      This situation started to occur on the latest version of Reactor 22118, on a Windows 10 Bare Metal installation. Does anyone have a similar scenario?

      Sorry for the long post, I tried to document as best as possible to try to identify the problem.

      Thanks.

      Multi-System Reactor
    • Cheapest platform on which to run MSR

      T

      Please can anyone give me advice on a cheap way to run MSR (both initial cost and ongoing electricity cost). I currently run it on my QNAP network drive (which works very well incidentally). However, this draws a constant 35Watts (£90/yr @ 30p/kWh) and given the recent rise in fuel costs I am evaluating the best way forwards. Note, I only really need to turn my QNAP on for an hour a week to back-up my computer data. I understand that MSR can run on a Raspberry PI, but I am not competent with Linux! Thanks.

      Multi-System Reactor
    • Build 22118 - entity updates

      G

      I just noticed that the new hotness picked up the entities from when I added an integration temporarily to my Home Assistant and popped a lovely info notice into the Alerts pane.

      I know the info is new - but when did MSR suddenly become more real-time with devices being added to hubs? This is great!

      Multi-System Reactor
    • [Solved] Is there a cap or max number of devices a Global Reaction should not exceed?

      G

      Noticed in the last few nights that my Global Reaction to turn on a mere six lights in the evenings the same two devices no longer turn on. One is a dimming smart bulb, the other is a wall outlet.

      This has been running flawlessly for months - just in the last few nights I've noticed these two devices being left behind and yes, it's always these two devices only.

      "What changed?"

      No Hubitat firmware updates No new devices added to Hubitat list itemTwo MSR updates (the last two, I keep up with the latest) list itemHome Assistant releases (should have zero bearing, HA is nothing more than pretty dashboards) list itemAdded MQTT to MSR

      I did do a z-wave "repair" last night and am waiting to see if this helps.

      Is there any maximum or cap on number of devices that should be included in a Global Reaction?

      *Marked as solved as the question asked was answered. The issue persists but the question was answered.

      Multi-System Reactor
    • [Solved] Which version of npm should we be running for reactor-latest-22118-0f0772c.tar.gz

      G

      I've borked my install of reactor-latest-22118-0f0772c.tar.gz for some reason and am retracing steps. Running npm i --no-save --omit dev prompted to update npm and I did (current version now 8.6.0). Currently, attempts to load via browser/s (Brave and Safari) result in "This site can’t be reached192.168.1.xxx refused to connect." I am still able to SSH into the RPi.

      I haven't panicked yet but did just pull my config and storage directories - I believe I read where that's enough for a back-up if a clean install ends up being needed.

      So the question of the day: which version of nmp should we be running on for the latest Reactor?

      Multi-System Reactor
    • Is a global timestamp expression possible ?

      B

      I’ve looked and can’t find the answer which concerns me that the answer is obvious and thats why I can't find the answer to this.

      I’m new to MSR and this is my first post, so please bare with me 🙂

      What I’m trying to do is have a global expression that contains the current time so I can use it in Global reactions as well as Rulesets as part of my syslog messages.

      Example of what I’m experiencing:
      In Expressions, create a global expression: gMyTOD = strftime("%T %D”)
      In Rulesets, in a rule, create a local expression: MyTOD = strftime("%T %D”)

      In that same rule create a Notify type of Syslog.
      Set syslog message to: gMyTOD time is ${{gMyTOD}} and MyTOD time is ${{MyTOD}}
      Trigger the rule.

      The result is that the local expression (MyTOD) contains the correct time but the global expression (gMyTOD) does not update and reflects the wrong time in the final syslog message.

      Is there a different approach I should be using?

      Thank you in advance for any insight.

      -bh

      Multi-System Reactor
    • Restart router when it's gone offline?

      F

      Hi!
      Once a month or so, my internet access is lost, and I have to cut the power to the router, to restart it. When I'm away this become a problem, so I thought that if I got a zigbee switch (in Home Assistant), problem is solved. But how do I (MSR) know if it's offline?

      What's the easiest and most effective way to make this work? Do I ping a few websites every ten minutes or so, or is there a better approch? If I'm going to ping, what URL is recommended?

      For information, I have a set up with Asus routers, Home Assistent with zigbee-, z-wave and wifi devices (a total of appr. 150) and every of my 60-70 automation is done by MSR.
      I run MSR ver. 22080-ae7212f (docker on my Home Assistant blue). HA ver 2022.4.6.
      Thanks in advance.
      Take care, you all!
      /Fanan

      Multi-System Reactor
    • Latest ALTUI version brakes Reactor

      M

      FYI.

      Recently a new ALTUI version got pushed out, release 2553. After the update Reactor is no longer showing any of the Control panels in a sensor. looking at the ALTUI changes they seem minimal so in J_ReactorSensor_UI7.js I upped the _MAX_ALTUI_VERSION to 2553 and all seems to be working again.

      Vera/openLuup plugins
    • MSR for Scene Controllers

      therealdb

      I still have some code running on my Vera that I want to port and it's related to scene controllers.

      I'm mostly using Fibaro's switch/roller shutter and on the Vera side I'm getting sl_CentralScene/sl_CentralSceneAttr, but it seems too fast to be intercepted by MSR.

      What's anyone using? Thanks.

      Multi-System Reactor
    • Best strategy to get the difference between pulses in MSR

      therealdb

      So, I have a rule set that it's triggered when a local variable changes. Since it's tied to my solar production, it could change very frequently, so I've just added a reset delay to calm it down, but it's not working as intended.

      What I really need is a way to, let's say, define a percentage and define a variable to understand if the new value has changed +/- 10% before going true.

      I've tried a couple of ways, but I'm posting here anyway, in case anyone has found a better way to tackle this. Thanks!

      Multi-System Reactor
    • Status of MSR in Home Assistant

      Matohl

      Perhaps a dumb question. Can I check from Home Assistant that MSR is up and running? I would like to see that in a status page in HA. I can of course ping the other Pi but it doesn't say anything about the MSR status.

      Skärmavbild 2022-04-23 kl. 18.23.03.png

      Multi-System Reactor
    • Notifications from Alerts

      Crille

      @toggledbits Is there a way to get Current Alerts as an entity so I could monitor those and send notifications if needed.
      My usecase is sometimes openLuup crashes and MSR picks that up pretty quick, sending a pushover notification to me would get my attention to restart it.
      Of course there are many ways to monitor connectivity but since MSR already is doing that it would be neat to take advantage of it.

      Multi-System Reactor
    For those who registered but didn't received the confirmation email, please send an email to support@smarthome.community with the email you used
    A
    • Profile
    • Following 0
    • Followers 1
    • Topics 14
    • Posts 119
    • Best 21
    • Groups 0

    a-lurker

    @a-lurker

    31
    Reputation
    38
    Profile views
    119
    Posts
    1
    Followers
    0
    Following
    Joined Last Online

    a-lurker Unfollow Follow

    Best posts made by a-lurker

    • RE: Help with Luup Reloads

      Mmmmm - interesting - I've had a very similar experience with a couple of Veras. One of the Veras; I recently turned off the WiFi and I have never heard from it since; even though it has always successfully conversed via a hardwired LAN interface for years.

      akbooer I recommend you ditch the Edge - it's costing you money at about 0.24 kW hrs per day. Further still, I recommend you use openLuup. It works well and the developer? - don't stuff around. Please donate as he or she requests.

      posted in Vera
      A
      a-lurker
    • RE: Sun position or light sensor for blinds?

      @akbooer said in Sun position or light sensor for blinds?:

      Yes, it's all been done. You need @futzle's Heliotrope plugin.

      Out of interest; I've modified/updated and re released Futzle's Heliotrope plugin in the AltApp store (with Futzle's permission).

      Likewise; I've modified/updated and re released Chris Jackson's EDS one wire server plugin in the AltApp store (with Chris's permission).

      posted in Code/Snippet library
      A
      a-lurker
    • List of plugins available at the Alternative App Store

      The plugins listed here are available via the Alternative App Store. The app store becomes accessible via a new menu item in the Alternative User Interface once configured.

      Both the Alternative User Interface (AltUI) and AltAppStore (AltAppStore) plugins need to be installed on Vera to access the store. With openLuup; this is all "automatically" set up and ready to go as part of the openLuup suite.

      The Alternative App Store can be found here.

      Publishing a plugin in the store is pretty easy. First your plugin code must be available in GitHub. Publish it, using the Publish command in the AltAppStore web page. You need to enter the salient information and it's ready to go.

      Plugin icons can be stored on GitHub eg like so. After a "few days" the raw json describing the plugin appears here.

      Vera 3 users should note the store will not work, as Vera 3 doesn't have the https capability required to access GitHub. However, the apps can always be downloaded from GitHub and manually installed.

      For those just interested in what the store contains; refer to the list below - as of 2021 July 27 there were about 75 plugins available:

      Plugin Comments
      ABC:
      Aeratron fans
      Alternative App Store Built into openLuup
      ALTHue
      ALTUI
      Amcrest Dahua
      AutoVirtualThermostat
      BroadLink-Mk2
      Canal Plus Not in GitHub
      Countdown Timer Originated by Futzle
      DEF:
      DALI Planet
      DarkSky Weather Service is rumoured to be closing in late 2021. The "Multi Provider Weather Station" plugin can potentially be used as a replacement.
      DataYours
      DelayLight
      DeusExMachinaII
      Domoticz Bridge Non functional: needs work check here
      Domoticz Bridge 2 Originated by 999LV and updated by perhusaas
      DreamColorESP8266
      DreamColorLedRGB
      Ecobee
      Edisio Gateway
      EDS One Wire Server Originated by Chris Jackson
      EKM metering
      Emby Interface
      Enphase Envoy Solar Monitor
      EventWatcher
      Ezlo Bridge
      FritzBox Sensor
      GHI:
      Google Calendar 3
      Harmony Hub Control
      Heliotrope Originated by Futzle. openLuup incorporates the same functionality, so this plugin is not required in that casse.
      Homebridge 2 openLuup
      HomeWave Push
      HundredGraphs Logger
      IKEA Tradfri
      Image Map Remote
      Info Viewer For Vera only
      IPhone Locator
      IPX800
      Irrigation Caddy
      JKL:
      KSenia Lares 16 Bridge
      LuaView
      MNO:
      Multi Provider Weather Station
      Netatmo
      Network Monitor
      OpenSprinkler
      OpenTherm Gateway
      openWeather
      PQR:
      Paradox EVO IP150 web page scrapper
      Pioneer Receiver
      Rachio
      Rainforest Eagle Based on robertmm's work
      RaZberry (ALPHA)
      Reactor
      RGB Controller
      Rules Engine
      STU:
      SiteSensor
      SMA inverter
      Smartmeter Reader
      Solar Meter
      Sonos Originated by lolomodo and updated by toggledbits.
      Sony Bravia IP
      Surveillance Station Remote (BETA)
      Switchboard
      Telegram
      Tesla Car
      UPS Sensor
      UPnP Event Proxy OpenWRT only - originated by Futzle
      VWX:
      VeraAlexa
      Virtual HTTP Devices MQTT commands & status are only available with openLuup. http & Lua can be used by Vera and openLuup.
      Virtual Pronto Remote
      Virtual Sensor
      VW CarNet
      WES
      Xee
      YZ:
      Yamaha RX HTTP
      Z-Way
      ZiBlue Gateway
      ZiGate Gateway
      posted in Code/Snippet library
      A
      a-lurker
    • RE: Power outage and all the Vera devices were moved to room MiOS-xxxxx. How to fix?

      @Buxton OK got the systemd stuff working - thanks for that. A of couple notes for future readers:

      • The script files need to be executable, so the permissions should be set to 0755.
      • the scripts should use \n, not \r\n line endings ie Unix style
      • you need to run this once to get the necessary symlinks built:
      sudo systemctl enable openluup
      posted in Vera Bridge
      A
      a-lurker
    • RE: Yamaha Plugin

      Logs are are "good".

      posted in Vera/openLuup plugins
      A
      a-lurker
    • RE: Sun position or light sensor for blinds?

      Just tell him/her, I'm going to subscribe to this site using his or her users name if he/her isn't quick 🙂

      posted in Code/Snippet library
      A
      a-lurker
    • RE: Power outage and all the Vera devices were moved to room MiOS-xxxxx. How to fix?

      akbooer thanks for the help. I seem to have it sorted out now. I do note that in the console/utilities/backups, that if you click on one of any the backups listed, a *.json file is presented for download rather than a *.lzap file. Not that it matters, as openLuup_reload seems to take either file type as a parameter and handle it accordingly. Like wise if you click on the "Backup Now" button, you a presented with a file that begins with "backup_backup.openLuup ...." Looks like the backup directory name has been prefixed to the filename. Not that matters either. A back up is a back up.

      posted in Vera Bridge
      A
      a-lurker
    • RE: DarkSky weather plugin...

      openweathermap looks good. You could probably get the DarkSky plugin to do both. They even have a mapping table already available:

      OpenWeather to DarkSky mapping

      posted in Plugins
      A
      a-lurker
    • RE: Luup : Hue Energy (watts) Calculator

      I few things that would help:
      Some report of what went wrong: whether that be a log output or code test window output. Otherwise it's unlikely your code (IMHO) will be looked at by forum members.
      General readability: All variables should be declared, if at all possible, at the start before all the functions are declared. Declaring global variables inside a function is not good eg huelights. Declare them local at the start. It's important to decide if your functions should be local or global. In most cases they should be local. The master code that gets everything going should also be in a function called startup() or initialise() or similar. Then have a look at what the api call returns.

      posted in Code/Snippet library
      A
      a-lurker
    • RE: Using luup.call_delay() in the browser code test boxes

      @akbooer said in Using luup.call_delay() in the browser code test boxes:

      but have forgotten the details of how Vera behaved!

      Just to remind you; badly.

      OK not surprised I'm going around in circles - I should know better by now. I modified the example code to write to the log, instead of the UI. In Vera, in either Vera's UI or AltUI the log shows:

      LuaInterface::CallFunction_Timer-5 function delayTest failed [string "local altui_device = 5..."]:10: bad argument #1 to 'insert' (table expected, got string)
      

      Using AltUI with openLuup, I get similar, where 0x27151d0 is the called function (as printed by the test code):

      luup.delay_callback:: function: 0x27151d0 ERROR: [string "RunLua"]:10: bad argument #1 to 'insert' (table expected, got string)
      

      OK so then I test it in one of openLuup's three console test windows (I came across these just recently) and as expected with your code; it all works! I think I figured it had all failed because I never saw the test code printed in the log. Your console test windows just show this, rather than listing the code:

      openLuup.server:: POST /data_request?id=XMLHttpRequest&action=submit_lua&codename=LuaTestCode2 HTTP/1.1 tcp{client}: 0x33b3328
      

      So it can be made to work - looks like altUI and Vera UI need to pass the function reference, not the function name string? Or whatever is needed.

      Out of interest I have noted that luup.call_delay can use sub one second delays in openLuup as previously mentioned on the Vera forum. I'm unsure if Vera can or can't.

      I did some tests and found on a rasPi that occasionally, a one second delay could be well over one second on occasions (have seen two seconds). There could be any number of reasons for this - just measuring the time alone affects the timing (I used socket.gettime()). Plus with different things happening at the same time, it can get weird. But I do have a plugin that runs code every minute and receives/handles a lot of bytes, one by on, via the infamous Vera "'incoming" feature. I should probably rewrite that plugin code one day, if I can rember how it all worked.

      There may even be an argument to code a finite reduction in all delays by some fudge factor representing the delay processing time eg say 20 milliseconds but that's getting too pedantic.

      posted in General Discussion
      A
      a-lurker

    Latest posts made by a-lurker

    • RE: OW-SERVER: 1-Wire to Ethernet Server - MSR Functionality

      I have done the mods and retested. Hopefully they will work. When the plugin is updated it will show the "PluginVersion" as 0.53 rather than the current 0.52

      The github page has been updated to improve upon the previous paltry documentation - have a read of it. You only need to upload two files to Vera, as all the others are unchanged:

      J_OWServer.js
      L_OWServer.lua

      Make sure both are uploaded via the Vera UI. Be careful to uncheck the "Restart Luup after upload" checkbox situated below the "Upload" button - so you don't go through two loads. ie uncheck for the first file you upload and then recheck before you upload the second.

      There were a few changes needed - the plugin was originally written over ten years ago and things have moved on a little since then.

      Note that there is no "Automatic" creation of the child devices. You select which sensors you want in the Vera UI and then hit the "Add" button. The system then restarts and the child devices will became available.

      Let me know how it goes.

      posted in Multi-System Reactor
      A
      a-lurker
    • RE: OW-SERVER: 1-Wire to Ethernet Server - MSR Functionality

      OK I've figured out what's going wrong (till proved otherwise!). I need to rehash some code, test and post to GitHub - give it a day or so.

      posted in Multi-System Reactor
      A
      a-lurker
    • RE: OW-SERVER: 1-Wire to Ethernet Server - MSR Functionality

      All looks fine to me. It's now got a json library and it's reading from the one wire server and finding all the devices. It's also the correct plugin version number. Have you checked the "No room" for see if the child temperature sensors have turned up. If none - need to do a luup engine restart. It can take a while before actual temperatures are displayed ( I think it works out to 45 seconds). They then update at the default rate of every 20 seconds.

      posted in Multi-System Reactor
      A
      a-lurker
    • RE: OW-SERVER: 1-Wire to Ethernet Server - MSR Functionality

      Looks promising - hopefully you should see under the AltUI variables tab "DebugEnabled". You can set it to one and restart the Luup engine and get more log info. You should also see "PluginVersion", which should probably be 0.52? No mention on whether AltUI detected a json library?

      "Could this be a fundamental problem with my particular vera plus, because I have to install the device manually. It will not install via ALTUI?" No don't think so.

      posted in Multi-System Reactor
      A
      a-lurker
    • RE: OW-SERVER: 1-Wire to Ethernet Server - MSR Functionality

      Not quite right. You only need the files in the folder called "Luup_device". When uploaded they should not be uploaded as a folder. Here is the list of files that need to be directly uploaded:

      S_OWServer.xml
      D_OWPressureSensor.json
      D_OWPressureSensor.xml
      D_OWServer.json
      D_OWServer.xml
      I_OWServer.xml
      J_OWServer.js
      L_OWServer.lua
      S_OWPressureSensor.xml
      

      Did you check for a json library using AltUI? Because you will need one of some description.

      posted in Multi-System Reactor
      A
      a-lurker
    • RE: OW-SERVER: 1-Wire to Ethernet Server - MSR Functionality

      Looking at the log it says its missing json.lua. This message tells me you are still running the old plugin from the MIOS store.

      Not sure what hardware you are using? The old Vera 3 can't access the Alt App store as the comms library is too antiquated. Regardless you can just download the files from GitHub and overwrite the mios ones. Use the Vera user interface (ie not directly with SSH) as Vera compresses the files when you upload them via the UI. In Vera 3 they end up in etc\cmh-ludl as "lzo" files

      The latest version of the plugin looks for ten different possibly available json libraries - see this GitHub link.

      If you look in (a Vera 3) /usr/lib/lua you may find dkjson.lua, which in this case is a sym link to /mios/usr/lib/lua/dkjson.lua

      You can use the command in AltUI --> Misc --> OsCommand -->Find Json to see what might be available to you. Note that this search doesn't always find what's available. But I would expect dkjson.lua is available and will be found and used by the latest version of the plugin.

      posted in Multi-System Reactor
      A
      a-lurker
    • RE: OW-SERVER: 1-Wire to Ethernet Server - MSR Functionality

      Pretty sure you can get it to work. Use the most recent version of the plugin here. The plugin in the MIOS App Store is well out of date.

      Your screen capture can be interpreted as the following - how many devices to you have attached?

      Devices: 14
      Chn 1 error count: 0
      Chn 2 error count: 0
      Chn 3 error count: 0
      EDS OW server web page
      

      You need to do a few luup engine restarts to get the child devices to show up.

      You can use AltUi to install the plugin from the Alt App Store: see More->AppStore. Not using AltUI? It's highly recommended.

      If I remember correctly, all the one wire devices are created automatically on first run of the plugin. So on my dashboard it says "No new devices to add" as they have already been added.

      "J_OWServer.js file as @dbemowsk suggested" - this bug has already been resolved in the plugin at the link above, so please use the J_OWServer.js file that comes with the Alt App store plugin.

      Many of the plugins in the MIOS App Store are hopelessly out of date - refer to the Alt App store list. for updated versions.

      All else fails; check the log - once again this can be seen using AltUi -> Misc -> OS Command --> Tail Logs

      posted in Multi-System Reactor
      A
      a-lurker
    • RE: OW-SERVER: 1-Wire to Ethernet Server - MSR Functionality

      @talisker said in OW-SERVER: 1-Wire to Ethernet Server - MSR Functionality:

      @a-lurker Does the Plugin work in U17?

      Pretty sure it does - I'm using the plugin under openLuup but I used to have it running on a Vera.

      posted in Multi-System Reactor
      A
      a-lurker
    • RE: OW-SERVER: 1-Wire to Ethernet Server - MSR Functionality

      There's a plugin for the OW-server that works great. Been using it for years.

      https://smarthome.community/topic/247/list-of-plugins-available-at-the-alternative-app-store?_=1642227742093

      posted in Multi-System Reactor
      A
      a-lurker
    • RE: AltUI will not update under openLuup (Vera: not sure what it does)

      Yep - totally agree. Regardless I'm totally appreciative to yourself and AMG0. All my stuff just works. So much so, I rarely have to make a post here or on the dark side. My only fear is what happens to the poor suckers that might buy my house in the (long term) future! My home automation works great but needs some very very very serious massage sometimes! Regardless the wall on/off switches still work. Mmmmm I think so - at least? I rarely touch them!!

      posted in Plugins
      A
      a-lurker