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.
W

wokwon

@wokwon
DynamicGroupController and attributes
therealdbT
Hey @toggledbits I'm back to trying to optimize a couple of things based on dynamic group. First of all, I think I found a typo in the doc: primary_attribute: "binary_sensor.state" primary_attribute_value: | d = false; each id in members: d = getEntity(id)?.attributes?.power_switch?.state or d, d I think the correct code snippet is d = false, All that said, my use case for dynamic groups is to group 3 different climate devices, so I could easily command them at the same time. Commands are good, but sometimes I want to check if any of the devices are on, and that's easily done with a similar snippet as the one you have in the docs. But this is limited to the primary attribute, while I want to have any of the attributes in the group to be driven by a similar logic (while all are null in the group). ie, access hvac_control.mode and see if any of the unit is set to cool, or heat. Is that possible, without re-defining an expression in each of my rules? Thanks!
Multi-System Reactor
Bail out of failed reaction?
T
Topic thumbnail image
Multi-System Reactor
Arming Envisalink panel from MSR
T
Topic thumbnail image
Multi-System Reactor
[Solved] DynamicGroupController updating members issue
CrilleC
Edit: Solved in latest-26221. Bare-metal latest-26193 I have this group: "OKforLarm": name: OK för Larm select: - include_controller: vera - include_capability: door_sensor filter_expression: entity.attributes.door_sensor.state It contains the entities I expect but behaves a bit odd. When I open vera>device_10097 the entity attribute door_sensor.state changes to true but it won't show up as member in the group, when I also open vera>device_10095 they both shows as members and when I close vera>device_10095 it disappear from the group but when I close vera>device_10097 it lingers in the group until I restart Reactor.
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
Upgrade Issues
T
Topic thumbnail image
Multi-System Reactor
[SOLVED] Conflicting Set Reaction Groups Appear to Fire Simultaneously in Single Rule Evaluation
G
Topic thumbnail image
Multi-System Reactor
[SOLVED] Question regarding "in" vs "contains" vs contents of the string
G
Topic thumbnail image
Multi-System Reactor
openLuup console disappeared - 500 - Internal Server Error
A
Love openLuup - it just keeps working perfectly. I started looking at trying to add a gen4 Shelly device to the Shelly plugin via L_ShellyBridge.lua. The plugin is a little uncooked (no rudeness intended), so a bit of a rabbit hole for me. All of a sudden no console pages available in either Firefox or Chrome. AltUI works perfectly and all the log files indicate no errors. openLuup still running everything works as it should - just no console pages. I possibly screwed something up but any recently changes files show no problems. The original/ backup of L_ShellyBridge.lua was reinstated but still no console. Bit stumped on this one. Not sure how to debug. Any ideas?
Plugins
Logon screen timeout
G
Noticing since 170 that the lock screen doesn't switch to the logon prompt but, rather, stays on the active UI until such time as you go to click something within it. Then it jumps to the login screen. Brave browser Brave 1.92.139 (Official Build) (arm64) Chromium: 150.0.7871.114
Multi-System Reactor
[MSR] Copy&past of actions and/or drag&drop between set/reset
therealdbT
Hey @toggledbits One thing that bothers me while doing work on new systems/new features, is that I cannot copy&paste actions, and I cannot drag&drop between set and resets. #1 is for when I want to copy an action between different rules opened in two separate browser windows, while #2 is when I just need to flip a bunch of actions in the reset, or move some logic back and forth. Both will be appreciated, but I understand the technical challenges. Thanks!
Multi-System Reactor
Upgrade advice - upgrade from aarch64 to ARM64 image
T
I'm currently on version 26011. I understand that the aarch64 image is no longer supported. So, I therefore need to update to the ARM64 image. Can anyone possibly suggest how I update my docker compose.yaml file (see below). Ideally I'd like to keep my existing reactions etc. rather than start from scratch. # Multi-System Reactor template docker-compose.yml (version 22160) # # Change the lines indicated by "DO"... # services: reactor: container_name: reactor environment: # DO change the TZ: line to set your local time zone. # See valid TZ list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones TZ: GB # # DO NOT change this path. Your directory location is in "source" below. REACTOR_DATA_PREFIX: /var/reactor # DO change the image below to the one you are using (e.g. armv7l or aarch64 for RPi 4) image: toggledbits/reactor:latest-aarch64 restart: "always" expose: - 8111 ports: - 8111:8111 volumes: # DO change the /home/username/reactor below to the directory you created for # your local data; DO NOT change the /var/reactor part - /home/pi/docker/reactor:/var/reactor - /etc/localtime:/etc/localtime:ro tmpfs: /tmp
Multi-System Reactor
Alexa for MSR, any interest?
MikeReadingtonM
Topic thumbnail image
Multi-System Reactor
Ezlo Paid Subscription for Vera Cloud Services
toggledbitsT
It appears that Ezlo is going to new levels of paid subscription for cloud services supporting Vera hubs. I have to congratulate them. It will soon be 8 years since Ezlo acquired Vera, and despite their purported financial and "intellectual" capital, they have to date not produced a viable full replacement for Vera. Now they are going to charge extra for services for a platform that they stopped updating years ago. If you know anyone who hasn't yet fully moved on from Captain Ahab's White Whale Chase, please remind them that my Decouple project is still up on Github to decouple a Vera Plus/Secure/Edge from Vera/Ezlo's cloud services. Veras have been said to misbehave when they can't reach the mother ship. I have also written my first new Vera plugin in... six years? more?... the AlertPushover project will send Vera hub alerts to Pushover, so you can still get messages generated by your Vera hub without paying for Ezlo's cloud service. It's crude but functional (i.e. better than nothing/worth every penny paid). These two projects won't replace the functionality of their cloud service and app for those who need those things. But any that don't, this may help bridge the gap. Hopefully these stragglers who have waited so long and been disappointed so often will get the idea that it's time to move on.
General Discussion
[RESOLVED] Telegram notification broke with latest update
3
Topic thumbnail image
Multi-System Reactor
[RESOLVED] Phantom device, “INFO” appears
wmarcolinW
Topic thumbnail image
Multi-System Reactor
[RESOLVED] Mode Status NULL
wmarcolinW
Topic thumbnail image
Multi-System Reactor
[RESOLVED] HTTP query failing after version 26177
wmarcolinW
Topic thumbnail image
Multi-System Reactor
Question about the find function
wmarcolinW
Topic thumbnail image
Multi-System Reactor
[Answered] OK to remove old json files?
3
Topic thumbnail image
Multi-System Reactor
About
Posts
7
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Reactor: How to call Hass service for noob
    W wokwon

    @Crille said in Reactor: How to call Hass service for noob:

    cmd: page home

    Perfect, it works, thank you so much.
    Capture3.PNG

    Multi-System Reactor

  • Reactor: How to call Hass service for noob
    W wokwon

    Reactor 23063 running on Windows Bare Metal.
    Home assistant 2023.3.1
    ESPHome 2023.2.4

    I've been trying a few ways using some results from search to call a Hass service as a reaction in a Reactor rule.

    Specifically, when the PIR in the room senses motion, wake the NsPanel screen.

    My Reactions otherwise so far are basic If this then that so I'm way behind what others are doing.

    What I want to call as a Reaction:
    Capture1.PNG

    What I've tried (a few variations on):
    Capture2.PNG

    What happens:

    [latest-23063]2023-03-07T07:45:21.688Z <wsapi:ERR> wsapi: error thrown handling client message [Object]{ "command": "perform", "entity": "WOKHASS1>system", "action": "x_hass_system.call_service", "parameters": { "service": "ESPHome: nspensuite_send_command_printf", "data": "page home" }, "qid": 75 }
    [latest-23063]2023-03-07T07:45:21.688Z <wsapi:CRIT> TypeError: Cannot read properties of null (reading '1') [-]
    TypeError: Cannot read properties of null (reading '1')
        at HassController.performOnEntity (C:\reactor\reactor\server\lib\HassController.js:584:108)
        at System.perform (C:\reactor\reactor\server\lib\Entity.js:707:56)
        at WSAPI.clientMessage (C:\reactor\reactor\server\wsapi\wsapi.js:499:48)
        at WebSocket.<anonymous> (C:\reactor\reactor\server\wsapi\wsapi.js:290:158)
        at WebSocket.emit (node:events:520:28)
        at WebSocket.emit (node:domain:475:12)
        at Receiver.receiverOnMessage (C:\reactor\reactor\node_modules\ws\lib\websocket.js:1059:20)
        at Receiver.emit (node:events:520:28)
        at Receiver.emit (node:domain:475:12)
        at Receiver.dataMessage (C:\reactor\reactor\node_modules\ws\lib\receiver.js:517:14)
    

    If someone can convert the 'call service' to a 'reaction' for me, or share their own similar thing I think that's what I need to achieve this goal.

    I suspect if I'm even close to being on the right track, my problems are probably formatting like curly braces etc and lack thereof.

    Thanks in advance.

    Multi-System Reactor

  • MSR Upgrade from 22119 to 22136 fails, service wont start
    W wokwon

    So, following:

    cd \path\to\reactor
    node tools\install_reactor_windows_service.js -u .
    del /s /f node_modules
    npm rm -g node-windows
    
    npm uninstall node-windows
    npm uninstall -g node-windows
    npm install -g node-windows@1.0.0-beta.6
    npm link node-windows
    

    ...extract the Reactor.zip over the old directory...

    node tools\install_reactor_windows_service.js -i .
    

    I'm now running fine with Reactor (Multi-hub) stable-22136.

    Thank you @toggledbits for your support and amazing product.

    Bonus is the SSL now works too (CertifytheWeb with LetsEncrypt will renew it and drop the key files in the correct location). That means I can have Reactor as a tab in the Hass sidebar (previously https Hass --> http reactor would not work).
    bdb4b2e7-f193-4fe1-9012-fdba37630a3e-image.png

    Ractor.yaml:
    99a5f802-c3e4-4bfa-9a29-975de1da4d28-image.png CertifyTheWeb:
    621270ab-242f-47c4-a7ee-d547ce9eb4cf-image.png Browser:
    0f4ac4f9-f330-4186-bb30-fd9cd559da39-image.png

    Multi-System Reactor

  • MSR Upgrade from 22119 to 22136 fails, service wont start
    W wokwon

    @toggledbits Thank you for the info and I'll try this later on and report back.

    Multi-System Reactor

  • MSR Upgrade from 22119 to 22136 fails, service wont start
    W wokwon

    Note this is in the 'rolled back' state, not the 'wont start' state:

    PS C:\reactor\reactor> npm ls
    reactor-multi-system@1.0.3-22041 C:\reactor\reactor
    +-- @influxdata/influxdb-client@1.23.0
    +-- @mdi/font@5.9.55
    +-- @popperjs/core@2.11.2
    +-- body-parser@1.19.2
    +-- bootstrap-icons@1.5.0
    +-- bootstrap@4.6.1
    +-- cookie@0.4.2
    +-- digest-fetch@1.2.1
    +-- diskusage-ng@1.0.2
    +-- express@4.17.3
    +-- feather-icons@4.28.0
    +-- font-awesome@4.7.0
    +-- gridstack@5.0.0
    +-- jquery-ui-dist@1.13.1
    +-- jquery@3.6.0
    +-- js-yaml@3.14.1
    +-- minimist@0.0.10 extraneous
    +-- node-fetch@2.6.7
    +-- node-stream-zip@1.15.0 extraneous
    +-- node-windows@1.0.0-beta.6 extraneous
    +-- nodemailer@6.7.2
    +-- optimist@0.6.1 extraneous
    +-- qs@6.10.3
    +-- serve-static@1.14.2
    +-- uuid@8.3.2
    +-- wordwrap@0.0.3 extraneous
    +-- ws@7.5.7
    `-- xml@0.0.12 extraneous
    
    PS C:\reactor\reactor>
    
    Multi-System Reactor

  • MSR Upgrade from 22119 to 22136 fails, service wont start
    W wokwon

    Windows Server 2022 Build 20348
    Nodejs v16.14.0
    Currently running Reactor (Multi-hub) stable-22119-ae7212f
    Linked to Hass 2022.0.5.4 (on a different box)
    Windows server is dedicated to MSR and doesn't do anything else.

    I'd like to upgrade to 22136 to take advantage of the SSL feature added recently, and also to bring my current version of Hass into the 'supported' column with MSR.

    Following the instructions here: link text, section "Upgrade Windows Bare Metal"

    • Stop Reactor Service
    • Extract the zip, overwriting the reactor folder in c:\reactor\reactor
    • There is no package-lock.json file so I skip that.
    • Run "npm install --no-save --omit dev"

    Next step is to start the service. I start the service and it immediately stops. "Windows could not start the Reactor service on Local Computer. Error 1067: The process terminated unexpectedly".

    Tried rebooting, service won't stay running.

    I suspect I'm missing something, it's probably obvious but I've not been able to figure it out.

    I rolled back the reactor folder version (Windows Shadow copies) and then the service starts fine.

    Anyone else running Windows and know what I'm missing?

    • Tail of log file from running OK version, before upgrade attempt
    [stable-22119]2022-06-01T22:20:19.081Z <Rule:INFO> Lounge Billy Ambient Lighting - Turn On (Rule#rule-l0ki453b) evaluation complete
    [stable-22119]2022-06-01T22:20:19.082Z <httpapi:NOTICE> HTTP API v1 22021 base URL http://172.16.128.6:8111; listening
    [stable-22119]2022-06-01T22:20:19.228Z <app:NOTICE> HTTP server running; registering proxy endpoints.
    [stable-22119]2022-06-01T22:20:19.228Z <app:NOTICE> Starting WSAPI...
    [stable-22119]2022-06-01T22:20:19.229Z <wsapi:NOTICE> wsapi: starting version 21334
    [stable-22119]2022-06-01T22:20:19.656Z <Engine:INFO> [Engine]Engine#1 master timer tick, local time "6/2/2022, 8:20:19 AM" (TZ offset 600 mins from UTC)
    [stable-22119]2022-06-01T22:27:54.788Z <wsapi:INFO> wsapi: connection from ::ffff:172.16.128.5
    
    • Tail of log file from failed to start after upgrade (is identical, ii.e. nothing has been appended to it)
    [stable-22119]2022-06-01T22:20:19.081Z <Rule:INFO> Lounge Billy Ambient Lighting - Turn On (Rule#rule-l0ki453b) evaluation complete
    [stable-22119]2022-06-01T22:20:19.082Z <httpapi:NOTICE> HTTP API v1 22021 base URL http://172.16.128.6:8111; listening
    [stable-22119]2022-06-01T22:20:19.228Z <app:NOTICE> HTTP server running; registering proxy endpoints.
    [stable-22119]2022-06-01T22:20:19.228Z <app:NOTICE> Starting WSAPI...
    [stable-22119]2022-06-01T22:20:19.229Z <wsapi:NOTICE> wsapi: starting version 21334
    [stable-22119]2022-06-01T22:20:19.656Z <Engine:INFO> [Engine]Engine#1 master timer tick, local time "6/2/2022, 8:20:19 AM" (TZ offset 600 mins from UTC)
    [stable-22119]2022-06-01T22:27:54.788Z <wsapi:INFO> wsapi: connection from ::ffff:172.16.128.5
    
    • reactor.wrapper.log (log file the failed to start event points to)
    2022-06-02 08:19:23 - Stopping reactor.exe
    2022-06-02 08:19:23 - ProcessKill 3628
    2022-06-02 08:19:25 - Shutdown exception
    Message:A system shutdown is in progress.
    
    Stacktrace:   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
       at System.Management.ManagementScope.InitializeGuts(Object o)
       at System.Management.ManagementScope.Initialize()
       at System.Management.ManagementObjectSearcher.Initialize()
       at System.Management.ManagementObjectSearcher.Get()
       at winsw.WrapperService.GetChildPids(Int32 pid)
       at winsw.WrapperService.StopProcessAndChildren(Int32 pid)
       at winsw.WrapperService.StopIt()
       at winsw.WrapperService.OnShutdown()
    2022-06-02 08:20:11 - Starting C:\Program Files\nodejs\node.exe  C:\reactor\reactor\node_modules\node-windows\lib\wrapper.js --file C:\reactor\reactor\app.js --scriptoptions= --log "Reactor wrapper" --grow 0.25 --wait 1 --maxrestarts 3 --abortonerror n --stopparentfirst undefined
    2022-06-02 08:20:11 - Started 3272
    2022-06-02 08:30:54 - Stopping reactor.exe
    2022-06-02 08:30:54 - ProcessKill 3272
    2022-06-02 08:30:54 - Found child process: 3280 Name: conhost.exe
    2022-06-02 08:30:54 - Found child process: 3504 Name: node.exe
    2022-06-02 08:30:54 - Stopping process 3280
    2022-06-02 08:30:54 - Send SIGINT 3280
    2022-06-02 08:30:54 - SIGINT to 3280 failed - Killing as fallback
    2022-06-02 08:30:54 - Stopping process 3504
    2022-06-02 08:30:54 - Send SIGINT 3504
    2022-06-02 08:30:54 - SIGINT to 3504 failed - Killing as fallback
    2022-06-02 08:30:54 - Stopping process 3272
    2022-06-02 08:30:54 - Send SIGINT 3272
    2022-06-02 08:30:54 - SIGINT to 3272 failed - Killing as fallback
    2022-06-02 08:30:54 - Finished reactor.exe
    2022-06-02 08:33:41 - Starting C:\Program Files\nodejs\node.exe  C:\reactor\reactor\node_modules\node-windows\lib\wrapper.js --file C:\reactor\reactor\app.js --scriptoptions= --log "Reactor wrapper" --grow 0.25 --wait 1 --maxrestarts 3 --abortonerror n --stopparentfirst undefined
    2022-06-02 08:33:41 - Started 4184
    2022-06-02 08:36:57 - Starting C:\Program Files\nodejs\node.exe  C:\reactor\reactor\node_modules\node-windows\lib\wrapper.js --file C:\reactor\reactor\app.js --scriptoptions= --log "Reactor wrapper" --grow 0.25 --wait 1 --maxrestarts 3 --abortonerror n --stopparentfirst undefined
    2022-06-02 08:36:57 - Started 3100
    
    • Windows event log event:
    Child process [4184 - C:\Program Files\nodejs\node.exe  C:\reactor\reactor\node_modules\node-windows\lib\wrapper.js --file C:\reactor\reactor\app.js --scriptoptions= --log "Reactor wrapper" --grow 0.25 --wait 1 --maxrestarts 3 --abortonerror n --stopparentfirst undefined] finished with 1
    
    Multi-System Reactor

  • SSL Certificate for Multi System Reactor via LetsEncrypt
    W wokwon

    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
  • Login

  • Don't have an account? Register

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