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. ArcherS
    • 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 0
    • Topics 10
    • Posts 250
    • Best 61
    • Groups 0

    ArcherS

    @ArcherS

    77
    Reputation
    31
    Profile views
    250
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    ArcherS Unfollow Follow

    Best posts made by ArcherS

    • RE: openLuup: Tasmota MQTT Bridge

      Thought it could be good for future users to give a short write up on how to set up Tasmota devices reporting sensors into OpenLuup with the new Tasmota bridge.

      First setup the Tasmota device:
      Browse to the Tasmota device IP and then select "Configuration"
      5037d753-42b7-4014-a4d9-1fd120adfcbb-image.png Go into Configuration Other
      Make sure "Mqtt enable" is set and give a Device Name
      61776069-bf6e-4d2d-b9a5-95451c08b62c-image.png Then into Configuration MQTT
      Give IP adress and port of OpenLuup Mqtt server
      Give a Client name
      Set user and password
      Set topic name
      701d2925-8897-4a7b-8bac-55f13654213b-image.png

      If you want to change how often the Tasmota device pushes data over Mqtt you can do that in the Console for the Tasmota by using the "TelePeriod" command. By default TelePeriod is set to 300 seconds, e.g. "TelePeriod 60" sets it to once every minute. (Just typing "TelePeriod" shows the current value.)

      Second set up OpenLuup:
      Paste the following into Lua Startup:

      luup.attr_set ("openLuup.MQTT.Port", 1883)
      luup.attr_set ("openLuup.MQTT.Username", "luup")
      luup.attr_set ("openLuup.MQTT.Password", "password")
      luup.attr_set ("openLuup.MQTT.PublishVariableUpdates", true) -- Not requred for Tasmota, publish every variable update if wanted
      

      Save and reload Luup engine, you should now get the Tasmota bridge in OpenLuup
      218be9a6-ec10-471a-8e96-65e2462e2d5c-image.png

      You should also get the Tasmota device you setup above
      9eb70057-37e2-4f77-a4c1-2dc5462d5840-image.png On my OpenLuup it got placed in the room "Tasmota".

      Next step is to set up devices for the sensor data you want to get from the Tasmota device. This data is pushed into variables for the Tasmota device (if you hover above a variable name you see the sensor, e.g. "BME280"):
      47c8cd4f-bd2d-499c-86db-0903c792c753-image.png

      Download the plugin "Virtual Sensor" if you do not have it.
      099ba5c9-a5f5-4200-ba6e-5f8d32021544-image.png Go into Virtual Sensors, tab "Virtual Sensors" and create the new virtual sensors you need for the data you want to display from the Tasmota device, you want one virtual sensor per value.
      4deddfff-45bf-4af5-9379-1f45a1ab6644-image.png

      Next step is to set the data from the Tasmota variables to the corresponding virtual sensors.
      Go into the Virtual Sensor plugin, into the tab "Virtual Sensors"
      Select the Tasmota device in the first drop down and then the variable in the second:

      6ba15680-9d35-41bb-a2e2-df5d85115094-image.png

      Job done! Now repeat for all the variables you wish to add into OpenLuup. 🙂

      posted in Plugins
      A
      ArcherS
    • RE: Tinkering with Tasmota sensors

      @therealdb I built my outdoor sensor from what I had in the garage, very much DIY in other words. 🙂
      I used an outdoor junction box, to this I hot glued a plastic dome from an old motion sensor for the light sensor. I also added a short piece of plastic pipe for the BME280 so that it is outside of the box to get better readings. To keep spiders etc out of the pipe I added an old stainless mesh dome to the end of it.
      In the box is also a 240V/5V transformer.

      The intention is to mount it on the north wall of the house outside of the sun. At the moment it is laying on the window sill.
      utesensor.jpg

      Some more small tips on rules:
      It is possible to create up to three rules for each sensor.
      It is possible to have several "Do" stamements in each rule.
      Rule<x> ON <trigger1> DO <command> ENDON ON <trigger2> DO <command> ENDON ...

      It is very easy to find out the name of each sensor for using in the rules by looking at: http://IP_address/cm?cmnd=Status%2010

      A rule is defined by pasting the rule from e.g. notepad to the Console window of the sensor.
      After that the rule needs to be enabled by Rule1 1, Rule2 1 etc.
      After enabling a rule check in the console that the rule is sending values.
      A rule is deactivated by Rule1 0 etc.
      To see the contents of a rule just type Rule1 etc.
      To delete a rule type Rule1 " etc.

      My recommendation is for people to look at the Tasmota rules documentation, it is very good.
      .
      //ArcherS

      posted in Hardware
      A
      ArcherS
    • RE: Help with Z-Way plugin

      Thank's for a really quick reply! That indeed did the trick, I knew it was something easy I missed.
      Now I just need to go through my Reactors and re-map my z-way devices. Not too much work.

      //ArcherS

      posted in Zway Bridge
      A
      ArcherS
    • RE: Remotec ZRC90

      Checked with v20.7.14 and the "sl_CentralScene" variable is updated with the key pressed.

      Thanks again for the update! 🙂

      posted in openLuup
      A
      ArcherS
    • RE: Tinkering with Tasmota sensors

      Some time ago I stumbled on some rather nice looking temperature and humidity sensors from Xiaomi and how to get them to communicate with a Tasmota ESP32 with BLE.

      Xiaomi temp sensor.jpg

      I ordered an ESP32 on Ebay and a three-pack of the sensors from Bangood. The sensors are quite cheap, you can find them for €4-5 in the usual sites.

      The sensors are quite small, approx 4.5cm and run on a CR2032 battery. Time will tell how long the batteries will last. With the custom firmware you can change the reporting interval.

      I have now been running this for little over two months and it works surprisingly well, bringing the temperature and humidity data into OpenLuup.

      In short what you do is the following:

      • Download the beta Tasmota for ESP32, flashing is a bit different from the regular Tasmota but pretty straight forward

      • Enable bluetooth with setoption115 1

      • The Xiaomi sensors can used both with stock firmware and flashed with a custom firmware that removes the encryption from the transmit of data, I flashed them with a Win10 laptop and it was super easy. You can even roll back the original firmware if you want.

      The Xiaomi sensors will then be included by the ESP32 Tasmota device and can be sent to OpenLuup with rules, brought in with Sitesensor or now via MQTT.

      73f83e12-af75-458a-b021-cd9d413260fc-image.png

      posted in Hardware
      A
      ArcherS
    • RE: External antenna on razberry board

      It seems as if it is possible to modify it with an external antenna.
      Here is an article on how to modify the Razberry2 EU:
      Modify Razberry2 (translated)

      Is is in Swedish, hopefully the translated text is understandable. 🙂
      In short you cut away the built-in antenna and solder on an antenna connector for the external antenna. You of course need an antenna for the frequency in your country, the article is for 868 MHz (EU).

      //ArcherS

      posted in Z-Wave.me
      A
      ArcherS
    • RE: Easy way to convert to SSD from SD card on Pi with MSR

      @matteburk if you have a Pi 3B+ then you are in luck since it will boot from USB without doing anything.
      If it is a Pi 3B then you have to change a "USB boot bit", see e.g. this instruction.

      I took the easy route and bought a new Pi 3B+ when I moved my Z-way server to SSD from SD. They are quite cheap anyway and I guess I can get use of the Pi 3B for something else later on.

      As @toggledbits says the Pi's are a bit picky on SSD adapters. I had two old 2.5" cases laying around, one worked and the other did not. The SSD migration cable that came with a Samsung SSD that I used for another PC also works.

      Edit: And if you buy a new Pi 4 they should now also have USB boot out of the box. Assuming the box has not been sitting on the shelf in the store for too long of course. 🙂

      posted in General Discussion
      A
      ArcherS
    • RE: openLuup: MQTT server

      @akbooer thanks for the assistance and patience, now it works! 🙂

      Edit: Added the humidity to the code:

      local json = require "openLuup.json"
      
      function MyMQTThandler (topic, message)
        local info = json.decode (message)
        local t = info.AM2301.Temperature
        local h = info.AM2301.Humidity
        luup.variable_set ("urn:upnp-org:serviceId:TemperatureSensor1", "CurrentTemperature",  t, 216)
        luup.variable_set ("urn:micasaverde-com:serviceId:HumiditySensor1", "CurrentLevel",  h, 228)
      end
      
      luup.register_handler ("MyMQTThandler", "mqtt:tele/tasmota_test/SENSOR")
      
      posted in openLuup
      A
      ArcherS
    • RE: Tinkering with Tasmota sensors

      @buxton yes it opens up new possibilities. On the Tasmota bluetooth webpage some other devices are listed, e.g. a soil humidity meter.

      So far it has been quite stable for more than two months.
      The Tasmota ESP32 is still beta, I assume it will get better over time.

      I will also make the ESP32 to report over Mqtt now that OpenLuup has support for it, hopefully that will make the setup even more stable.

      posted in Hardware
      A
      ArcherS
    • RE: Luup reload required after server reboot

      @rafale77 I tried this way of delaying at startup and it works fine. It does not cause delays when reloading luup which is a clear benefit.

      posted in openLuup
      A
      ArcherS

    Latest posts made by ArcherS

    • RE: Considering changing to HA - but what installation method?

      Just for fun I decided to test and setup Home Assistant OS on two virtual machines.

      The first is a HA OS VM on a Windows 10 i5 NUC with VirtualBox. Quite easy to setup, some information can be found on the HA website, I also looked at this guide.

      The second VM I installed on an old Core2 PC. I installed Proxmox and then HA OS in a VM. A bit more complicated to setup but there is a good guide here. The Core2 seems ok for this setup, in comparison with the old Athom PC that did not do the job.

      Both installations seem to work ok. I will test them later on with a backup of my production setup to see if that changes anything.
      The Windows installation got corrupted when I had to hard reset the PC. As expected HA OS did not like that, however quite easy just to delete the VM and set it up again. I only had a test installation of HA on the VM, but as always a backup of HA is a good idea.

      I have not tested any USB devices (e.g. Zwave stick) since I do not use it. As far as I have understood it both should work with USB devices.

      What to use? The plan is to stay with my current Debian/Docker setup since it has so far been very stable. If the HA devs continues to move away from the Docker installation I may need to reconsider this.

      The other VM's could be an option for test rigs I think.
      I like the Proxmox setup, it feels quite solid and is built for VM. The Windows setup feels a bit more uncertain with the MS Windows 10 automatic updates etc.

      posted in Home Assistant
      A
      ArcherS
    • RE: An electricians or wiring experts here?

      @cw-kid it is really difficult to say. I think your drawing looks quite similar to the one I posted, but not quite sure, it could be different. The earthing in the pattress box is unfamiliar with me, the boxes here are in plastic. But I assume it is simply an earth to the box since it is made of metal.

      The colours are always tricky in old houses. They can have changed, different standards over time etc. Not to be trusted in other words. The only way to know is really to try understand what they all are and where they all go.
      You may need to disconnect the cables on the two switches to fully map things out. Marking the original position of all cables, cutting the power while working etc. 🙂

      I do not have any Dimmer 2, but will it not need neutral to operate? This means that you would need to get neutral to behind one of the light switches.

      Another solution could be to put the Fibaro at the light instead, if it fits safely there and is allowed in your location. That could perhaps be a solution not having to get new cables drawn into the boxes.

      Regarding your switches momentary should work or are even needed for being able to dim the light.

      I found a sketch showing one way to connect two momentary switches to a Fibaro Dimmer (the older version I think since it says "O" for the connnection that goes to the light). Maybe it could be of use.
      As always continue with care and cross-check with the Fibaro diagram, they could have changed something in the new version.

      f4e3f986-2d6b-42b7-a054-e68d60607563-bild.png

      Basically if I understand the sketch correctly the two switches need to be connected in parallel over S1 and SX.

      Not sure I can help more, good luck! 🙂

      posted in General Discussion
      A
      ArcherS
    • RE: An electricians or wiring experts here?

      In Sweden the most usual connection in that situation is a "stairway connection". It typically is done like this:

      618783f3-e7ce-4bc1-8c58-1d6486e49859-bild.png

      Maybe what you have is something like this connection?

      posted in General Discussion
      A
      ArcherS
    • RE: Considering changing to HA - but what installation method?

      I am running HA Supervised in a Docker container on Debian on a small i5 Lenovo. Installed HACS without any problems, there are a few guides on how to do it.
      It has been stable so far anyway.

      The only concern I have is that it seems as if the HA developers want to push users away from the Docker way of running HA over to the HA OS way.
      What this means is that the requirement now is more or less a vanilla Debian with only HA in Docker. If you do not stick to this the installation becomes "unsupported".
      My installation was "supported" but now I can see that it has become "unsupported" due to the Portainer installation.
      My idea was to add e.g. MSR in Docker at some point in time, but maybe the Docker route will be a dead end for HA?

      It could be so that a HA OS installation on a VM, e.g. in Proxmox is the better choice in the longer run. The other option to only install HA OS on e.g. a fairly modern NUC seems a waste of resources to me since you cannot use it for anything else then.

      I tested Proxmox and it seemed quite nice, the problem was that the old Athom PC I used was too old for the combination Proxmox/HA. So if I will go down that route I need to reinstall my i5 from scratch. Hmm.

      To be honest I think it is a bit annoying that HA has complicated the setup/installation so much, not sure why they did that.

      posted in Home Assistant
      A
      ArcherS
    • RE: openLuup: MQTT server

      Answering my own question, perhaps of some use for someone else. 🙂

      Today I upgraded my Home Assistant to 2021.11.5 and the connection to the OpenLuup Mqtt server seems so far to work as it should.
      (Running on OpenLuup v21.11.8)

      posted in openLuup
      A
      ArcherS
    • RE: HVAC Control

      I have a setup that works quite nicely for controlling my "mini split" HVAC.
      It is a quite old unit that is more or less totally stupid, it has a remote and that's it.

      Some time ago I put together a Tasmota IR device that can control quite a few different HVAC units including mine. Pretty cheap, not too difficult to build and with a nice case it looks ok.

      One nice aspect of the Tasmota solution is that both receives and sends IR so I mounted the IR Transciever close to the HVAC so that it also recieves commands from the IR remote. Another upside with the Tasmota route is that it is independent of what hub one uses since it is Wifi and Mqtt.

      The next question was how to control it. With the help from @therealdb and his excellent VirtualDevices plugin together with the Mqtt capability of OpenLuup I managed to get a working solution in place.There is some information in the Mqtt Bridge thread on this.

      Since I use Homewave the next logical step was to be able to control it from inside Homewave. A few dimmers with fixed steps and a Reactor with some logic and I got something working in place to control on/off, temperature and mode.
      Not the prettiest solution but it does the job. The limitations in the old Vera gui and device types do show.
      42532144-7ce0-44b3-a315-7144ff4a13e9-bild.png

      After recently having started playing around with Home Assistant I found a really nice integration for Tasmota IR HVAC control. It was really easy to get in place, it looks quite nice and can control most/all of the functions on the HVAC.

      a73a0416-93a1-4e7d-b72d-3b31dd954791-bild.png

      posted in Hardware
      A
      ArcherS
    • RE: openLuup: MQTT server

      @toggledbits said in openLuup: MQTT server:

      Also I can't connect my Home Assistant 2021.11.5 to the broker. This in the logs:

      I may have missed this, but was this solved?

      The reason is that I am currently on Home Assistant 2021.10.06 and was planning to upgrade to the latest 2021.11.5.
      On 2021.10.6 I am using the Mqtt server in OpenLuup and it is working fine.

      posted in openLuup
      A
      ArcherS
    • RE: MQTTController map different values from same topic?

      @Crille I do not use the MSR (yet! 🙂 ), but I do have a Tasmota device reporting three Xiaomi Mi BLE devices to OpenLuup over Mqtt.

      They report the following:

      {"Time":"2021-11-24T16:00:25","ATC-6d5d44":{"Temperature":20.6,"Humidity":48.0,"DewPoint":9.2,"Battery":76,"RSSI":-89},"ATC-9446bf":{"Temperature":19.6,"Humidity":52.0,"DewPoint":9.5,"Battery":42,"RSSI":-84},"ATC-f159bf":{"Temperature":19.6,"Humidity":55.0,"DewPoint":10.3,"Battery":45,"RSSI":-84},"TempUnit":"C"}
      

      on the following topic:

      tele/TasmotaBLE/SENSOR
      

      The message contains all three devices each under their name.

      Not sure how about the syntax in MSR but in e.g. Home Assistant you write something in this direction in the config.yaml to retrieve the temperature for one device.

        - platform: mqtt
          name: "Temperatur"
          state_topic: "tele/TasmotaCO2Ax/SENSOR"
          value_template: "{{value_json['ATC-6d5d44'].Temperature}}"
          device_class: temperature
          unit_of_measurement: "°C"
      
      posted in Multi-System Reactor
      A
      ArcherS
    • RE: openLuup: Shelly Bridge plugin

      @akbooer said in openLuup: Shelly Bridge plugin:

      Can you give latest development (v21.11.8) a try?
      I don't think I'm quite there yet, but the dimmer control should work to some extent.
      This is surprisingly hard, since the status/control aspect of the Shelly dimmer is not quite the same as that of a ZWave one... I've always hated the way that Vera handled dimmers anyway! But I'm doing the best I can.

      I installed v21.11.8 and now it almost seem to work. 🙂

      In short what is not entirely in place is that the dimmer slider on the AltUI desktop in some cases does not follow the set value.

      Example:
      When I change the dim value in the Shelly GUI it updates in OpenLuup inside the dimmer but the slider on the desktop does not update.

      Starting with the dimmer off and all sliders on 1% and then dim to 40% on the Shelly GUI gives:

      In the Shelly GUI:
      e7c627df-45d9-4f5f-93f4-2bfc5f859970-image.png

      On the desktop in AltUI:
      9f36d698-ca0d-43a2-a25b-61b9f0b72b0f-image.png

      Inside the dimmer controller in AltUI:
      0b967f7c-784b-424e-a2da-84e705a94309-image.png

      Variables:
      ee2d8d13-d247-4e89-9ca9-25fa44dc6b97-image.png

      light/0/status:
      {"ison":true,"source":"http","has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"mode":"white","brightness":40}

      If I instead change the dim value from AltUI either from inside the dimmer controller or from the desktop it works and everything is updated. Also the slider inside the AltUI dimmer seems to work as it should.

      Let me know if you need more information.

      Based on your input I tested the latest fw (v1.11.4) on a Shelly Plug and it does indeed seem to work with Mqtt. Great news that it actually works now.

      posted in Plugins
      A
      ArcherS
    • RE: openLuup: Shelly Bridge plugin

      @akbooer said in openLuup: Shelly Bridge plugin:

      Well, we'll see (the device arrived yesterday)...
      Latest development version of openLuup (v21.11.2) has an initial attempt to service the Dimmer2 device:

      inputs are handled exactly as the switch device – so, essentially, as a scene controller showing the latest activated scene: short press; long press; etc... This should work for both input switches (if you have any with two.)
      on/off button on the control panel should work for the dimmer bulb.
      slider control is not yet implemented.

      ...my current issue is that, although I now have the Shelly Dimmer2 device, I don't have any dimmable bulbs! Everything I have is LED, and they're either non-dimmable or smart devices anyway. In particular, I can't tell whether the power and Watts parameters work correctly for the dimmer.
      So I'd appreciate a listing of any bugs that you find, and I'll continue to work on the slider control.
      Incidentally, I've update to the latest firmware for this device: 20210909-150154/v1.11.4-DNSfix-ge6b2f6d since it came with a very old version that didn't even publish the model number. It seems to work fine, but I've not updated any other of my devices.

      @akbooer thank you for the effort, I installed v21.11.2 and have tested this a bit. 🙂

      For a start I have my switch connected to "sw 1". It is a single button switch, defined as a "one button mode" in the Shelly GUI.
      "sw 1" seems to report as "light/0" in the Mqtt message.

      It does not work fully in OpenLuup yet, below I list what I have found.

      Turning on/off with the physical switch:

      • The status in AltUI does change when turning the light on and off.

      • When I turn the light "off" with the physical switch I have:
        light/0:
        off
        light/0/status: {"ison":false,"source":"input","has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"mode":"white","brightness":80}

      • When I turn the light "on" with the physical switch (at 80%) I have:
        light/0:
        on
        light/0/status:
        {"ison":true,"source":"input","has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"mode":"white","brightness":80}

      Turning the light on/off in AltUI:

      • The light does not turn on/off when I turn it on/off in AltUI.

      • When I turn it "on" in AltUI I have:
        light/0:
        off
        light/0/status:
        {"ison":false,"source":"input","has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"mode":"white","brightness":80}
        relay/0/command:
        on

      • When I turn it "off" in AltUI I have:
        light/0:
        off
        light/0/status:
        {"ison":false,"source":"input","has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"mode":"white","brightness":80}
        relay/0/command:
        off

      When I turn it "on" in AltUI it looks like this:
      55db41a9-7577-41f1-a89f-5b517af01877-image.png

      When I turn on the light with the physical switch it looks like this:
      99f567b5-50e2-43fc-be6d-64f7d9ef76e4-image.png

      In Mqtt Explorer I have the following:
      Light on (i.e. turned on with the physical switch):
      33a274c4-2c2f-4f8e-a364-ab80d6bbee0b-image.png

      Light off (i.e. turned off with the physical switch):
      d1d21430-8705-46bc-b857-606884d367da-image.png

      Turning on in AltUI (but light off):
      f79f10d4-0c08-4cd7-a9f7-4fa7b42cc589-image.png

      Turning off in AltUI (light still off):
      52144f39-c0d3-4206-bc60-378e0fc9805e-image.png

      The "relay/0/command" command that is sent from AltUI does in other words not to give any effect on the Shelly device. In fact with a fresh Mqtt Explorer session it only emerges when turning on/off in AltUI.

      Hopefully this gives some hints to what is wrong. Let me know if you need more information.

      @akbooer said in openLuup: Shelly Bridge plugin:

      ...my current issue is that, although I now have the Shelly Dimmer2 device, I don't have any dimmable bulbs! Everything I have is LED, and they're either non-dimmable or smart devices anyway. In particular, I can't tell whether the power and Watts parameters work correctly for the dimmer.

      Dimmable LED lights are a bit tricky still. Some of them work and some of then do not work very well. It can be a bit of a pain to find good ones. The upside is that the Shelly dimmer can be changed from trailing and leading edge dimming (under "Calibration"). This should hopefully mean that it can be a little bit better to adapt to different lights.

      @akbooer said in openLuup: Shelly Bridge plugin:

      Incidentally, I've update to the latest firmware for this device: 20210909-150154/v1.11.4-DNSfix-ge6b2f6d since it came with a very old version that didn't even publish the model number. It seems to work fine, but I've not updated any other of my devices.

      Excellent news that the latest FW seems to work, I will test it later on one of my devices. 🙂

      posted in Plugins
      A
      ArcherS