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

Elcid

@Elcid
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
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
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
251
Topics
20
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • An electricians or wiring experts here?
    ElcidE Elcid

    Hey @cw-kid can i see photos of all your switches and the light fitting so i can establish the wiring method and where you can put the dimmer.
    Are you going to change the switches to momentary?

    I have seen your photos on old forum but they are unclear. The red wire going to earthing position seems odd. Is it just a red sleeve on a bare earth wire or is it a a spare wire they just earthed for safety.

    When you take more photos can you get a clear shot of the cables leaving the box an a clear shot of back of switches showing the markings on switch.

    A safety note , you are using metal switches, so there should be an earth fly lead from the earth on box to the switch. removing the switch from the box now means the metal on the switch is not earthed.

    General Discussion

  • npm ERR! code EBADPLATFORM reactor 20022
    ElcidE Elcid

    i get the following error when i run
    ~/reactor $ npm i --no-save --omit dev
    Reactor is running and i see no ill effects so far
    Thought i would report for info.

    ~/reactor $ npm i --no-save --omit dev
    npm ERR! code EBADPLATFORM
    npm ERR! notsup Unsupported platform for inotify@1.4.6: wanted {"os":"linux","arch":"any"} (current: {"os":"android","arch":"arm"})
    npm ERR! notsup Valid OS:    linux
    npm ERR! notsup Valid Arch:  any
    npm ERR! notsup Actual OS:   android
    

    and here is log for more info

    0 info it worked if it ends with ok
    1 verbose cli [
    1 verbose cli   '/data/data/com.termux/files/usr/bin/node',
    1 verbose cli   '/data/data/com.termux/files/usr/bin/npm',
    1 verbose cli   'i',
    1 verbose cli   '--no-save',
    1 verbose cli   '--omit',
    1 verbose cli   'dev'
    1 verbose cli ]
    2 info using npm@6.14.10
    3 info using node@v14.15.4
    4 verbose npm-session e65bf5b70b2ee3fd
    5 silly install loadCurrentTree
    6 silly install readLocalPackageData
    7 http fetch GET 200 https://registry.npmjs.org/dev 1079ms
    8 http fetch GET 200 https://registry.npmjs.org/dev/-/dev-0.1.3.tgz 161ms
    9 silly pacote tag manifest for dev@latest fetched in 1336ms
    10 timing stage:loadCurrentTree Completed in 2965ms
    11 silly install loadIdealTree
    12 silly install cloneCurrentTreeToIdealTree
    13 timing stage:loadIdealTree:cloneCurrentTree Completed in 11ms
    14 silly install loadShrinkwrap
    15 timing stage:loadIdealTree:loadShrinkwrap Completed in 316ms
    16 silly install loadAllDepsIntoIdealTree
    17 silly resolveWithNewModule dev@0.1.3 checking installable status
    18 http fetch GET 200 https://registry.npmjs.org/inotify 788ms
    19 http fetch GET 200 https://registry.npmjs.org/inotify/-/inotify-1.4.6.tgz 796ms
    20 silly pacote range manifest for inotify@>= 0.1.6 fetched in 1636ms
    21 silly resolveWithNewModule inotify@1.4.6 checking installable status
    22 timing stage:rollbackFailedOptional Completed in 2ms
    23 timing stage:runTopLevelLifecycles Completed in 4975ms
    24 verbose stack Error: Unsupported platform for inotify@1.4.6: wanted {"name":"inotify","version":"1.4.6","engines":{"node":">=0.8"},"os":["linux"],"dependencies":{"bindings":"^1.3.1","nan":"^2.12.1"},"optionalDependencies":{},"peerDependenciesMeta":{},"devDependencies":{},"bundleDependencies":false,"peerDependencies":{},"deprecated":false,"_resolved":"https://registry.npmjs.org/inotify/-/inotify-1.4.6.tgz","_integrity":"sha512-WW8/uqIA04O3AePQVe/Ms3ZLR0yGamaz8YOEpaXc4WBAGOPZfzu58wWErEPSUYaPyDrJRIeCn6PEIQgC1ZyQ5w==","_shasum":"c5a51852df1647d1a589d46c4baa2771ed36b8d2","_shrinkwrap":null,"_id":"inotify@1.4.6","_from":"inotify@>= 0.1.6","_requested":{"type":"range","registry":true,"raw":"inotify@>= 0.1.6","name":"inotify","escapedName":"inotify","rawSpec":">= 0.1.6","saveSpec":null,"fetchSpec":">= 0.1.6"},"_spec":"inotify@>= 0.1.6","_where":"/data/data/com.termux/files/home/reactor/node_modules/dev"} (current: {"os":"android","cpu":"arm"})
    24 verbose stack     at checkPlatform (/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/npm-install-checks/index.js:46:14)
    24 verbose stack     at thenWarnEngineIssues (/data/data/com.termux/files/usr/lib/node_modules/npm/lib/install/validate-args.js:63:5)
    24 verbose stack     at /data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/iferr/iferr.js:3:64
    24 verbose stack     at checkEngine (/data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/npm-install-checks/index.js:25:10)
    24 verbose stack     at module.exports.isInstallable (/data/data/com.termux/files/usr/lib/node_modules/npm/lib/install/validate-args.js:60:3)
    24 verbose stack     at resolveWithNewModule (/data/data/com.termux/files/usr/lib/node_modules/npm/lib/install/deps.js:677:10)
    24 verbose stack     at /data/data/com.termux/files/usr/lib/node_modules/npm/lib/install/deps.js:600:7
    24 verbose stack     at /data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/iferr/iferr.js:3:64
    24 verbose stack     at /data/data/com.termux/files/usr/lib/node_modules/npm/node_modules/call-limit/call-limit.js:28:43
    24 verbose stack     at processTicksAndRejections (internal/process/task_queues.js:75:11)
    25 verbose pkgid inotify@1.4.6
    26 verbose cwd /data/data/com.termux/files/home/reactor
    27 verbose Linux 4.9.76
    28 verbose argv "/data/data/com.termux/files/usr/bin/node" "/data/data/com.termux/files/usr/bin/npm" "i" "--no-save" "--omit" "dev"
    29 verbose node v14.15.4
    30 verbose npm  v6.14.10
    31 error code EBADPLATFORM
    32 error notsup Unsupported platform for inotify@1.4.6: wanted {"os":"linux","arch":"any"} (current: {"os":"android","arch":"arm"})
    33 error notsup Valid OS:    linux
    33 error notsup Valid Arch:  any
    33 error notsup Actual OS:   android
    33 error notsup Actual Arch: arm
    34 verbose exit [ 1, true ]
    

    Depandencies

    {"dependencies": {
        "@influxdata/influxdb-client": "^1.18.0",
        "@mdi/font": "^5.9.55",
        "body-parser": "^1.19.0",
        "bootstrap": "4.6.0",
        "bootstrap-icons": "1.5.0",
        "cookie": "^0.4.1",
        "digest-fetch": "^1.2.1",
        "diskusage-ng": "^1.0.1",
        "express": "^4.17.1",
        "feather-icons": "^4.28.0",
        "font-awesome": "^4.7.0",
        "gridstack": "^5.0.0",
        "jquery": "3.6.0",
        "jquery-ui-dist": "1.12.1",
        "js-yaml": "^3.14.1",
        "node-fetch": "^2.6.7",
        "nodemailer": "^6.5.0",
        "qs": "^6.10.1",
        "serve-static": "^1.14.1",
        "uuid": "^8.3.2",
        "ws": "^7.5.6"
      }
    
    Multi-System Reactor

  • Looking for ideas on how to implement an automation.
    ElcidE Elcid

    There are plenty of 24v thermostats with remote sensors here in UK (about £30). The OP wanted "Trying to determine the best platform for a set it and forget it black box that works with as close to zero maintenance as possible."!

    So my thinking is thermostat in tandem with external sensor, A little wiring job done. You could also probably use a shelly 1 with temp sensor addon if you want feedback.

    General Discussion

  • Looking for ideas on how to implement an automation.
    ElcidE Elcid

    Hi, would it not be simpler to add a second external thermostat on the return loop, which mimics ( connects to same wires) the external stats functions. So if loop goes below set point it switches to aux heat

    General Discussion

  • Multidimensional Array
    ElcidE Elcid

    @toggledbits said in Multidimensional Array:

    There is no === operator in the expression language, it's just ==

    Not according to your doc's.
    Screenshot_20211126-211238.png

    Also used in a test expression and working.

    Screenshot_20211126-211533.png

    Noted used "in" rather than "of" as I thought he wanted a 2D array not a object/dictionary.

    Multi-System Reactor

  • Multidimensional Array
    ElcidE Elcid
    ${{[["Window 1","Status On"],["Window 2","Status On"],["Window 3","Status Off"],["Window 4","Status On"]]}}
    

    should work
    and to find all Status on's

    each val in testarray : if val[1] === "Status On" then val[0] endif
    

    and to find the value of Window 1

    (each val in testarray : if val[0] === "Window 1" then val[1] endif)[0]
    
    Multi-System Reactor

  • Reactor not starting on latest 21294
    ElcidE Elcid

    just confirming 21297 working with original app.sh

    Multi-System Reactor

  • Reactor not starting on latest 21294
    ElcidE Elcid

    That's how i start MSR on my android system, then the console is clear and usable. How would you suggest I start it now under termux?

    Multi-System Reactor

  • Reactor not starting on latest 21294
    ElcidE Elcid

    ok i removed :${NODE_PATH} from app.sh on line 11 and now it starts and shows in browser using nohup ./app.sh &

    Multi-System Reactor

  • Reactor not starting on latest 21294
    ElcidE Elcid

    server/lib/Logger.js is there in the reactor folder
    I can start reactor with NODE_PATH=$(pwd) node app.js and see it in browser
    but using nohup ./app.sh & i can not open reactor in browser

    app,sh

    #!/bin/bash
    
    WD="."
    if [ "$1" == "-C" ]; then
    	WD=${2:-.}
    	shift 2
    fi
    WD=`realpath "${WD}"`
    
    cd $WD || exit 1
    export NODE_PATH="${WD}:${NODE_PATH}"
    rm -f app.stop
    while [ ! -f app.stop ]; do
    	node app.js $* >> logs/console.log 2>&1
    	[ $? -eq 127 ] && break;
    	sleep 5
    done
    
    exit 0
    

    is the : in line 11 the error?

    Multi-System Reactor

  • Reactor not starting on latest 21294
    ElcidE Elcid

    Just updated to latest 21294, ran usual update, It appears to start ok in console, but will not load in browser. The NODE_path looks correct but the console log show the below error.

    log

    NODE_PATH /data/data/com.termux/files/home/reactor:
    [latest-21294]2021-10-23T15:55:41.542Z <app:null> Reactor latest-21294-c13ea5d starting on v14.15.4
    [latest-21294]2021-10-23T15:55:41.546Z <app:INFO> Process ID 14540; platform android/arm #1 SMP PREEMPT Wed Jan 16 09:21:08 CST 2019; locale en_US.UTF-8
    [latest-21294]2021-10-23T15:55:41.547Z <app:INFO> Basedir /data/data/com.termux/files/home/reactor; data in /data/data/com.termux/files/home/reactor/storage
    [latest-21294]2021-10-23T15:55:41.548Z <app:INFO> NODE_PATH /data/data/com.termux/files/home/reactor:
    /data/data/com.termux/files/home/reactor/app.js:231
            throw new Error(a0_0x4c6635(0xd9) + process[a0_0x4c6635(0xdb)][a0_0x4c6635(0x107)] + '\x20does\x20not\x20point\x20to\x20the\x20Reactor\x20install\x20directory');
            ^
    
    Error: Environment NODE_PATH=/data/data/com.termux/files/home/reactor: does not point to the Reactor install directory
        at Object.<anonymous> (/data/data/com.termux/files/home/reactor/app.js:231:15)
        at Module._compile (internal/modules/cjs/loader.js:1063:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
        at Module.load (internal/modules/cjs/loader.js:928:32)
        at Function.Module._load (internal/modules/cjs/loader.js:769:14)
        at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
        at internal/main/run_main_module.js:17:47
    NODE_PATH /data/data/com.termux/files/home/reactor:
    [latest-21294]2021-10-23T15:55:41.796Z <app:null> Reactor latest-21294-c13ea5d starting on v14.15.4
    [latest-21294]2021-10-23T15:55:41.800Z <app:INFO> Process ID 14547; platform android/arm #1 SMP PREEMPT Wed Jan 16 09:21:08 CST 2019; locale en_US.UTF-8
    [latest-21294]2021-10-23T15:55:41.801Z <app:INFO> Basedir /data/data/com.termux/files/home/reactor; data in /data/data/com.termux/files/home/reactor/storage
    [latest-21294]2021-10-23T15:55:41.801Z <app:INFO> NODE_PATH /data/data/com.termux/files/home/reactor:
    /data/data/com.termux/files/home/reactor/app.js:231
            throw new Error(a0_0x4c6635(0xd9) + process[a0_0x4c6635(0xdb)][a0_0x4c6635(0x107)] + '\x20does\x20not\x20point\x20to\x20the\x20Reactor\x20install\x20directory');
            ^
    ```===group
    ```java
    

    ===

    Multi-System Reactor

  • "kinda smart" switch to put behind a normal light switch
    ElcidE Elcid

    @huhnmann You could still use the shelly 1 in the same way as a i3. You can disiconnect the relay from the switch. You then end up with what you required, and you are still left with future options if you change you requirements.
    p.s. It is OCD no matter how much you deny it.

    General Discussion

  • "kinda smart" switch to put behind a normal light switch
    ElcidE Elcid

    @akbooer said in "kinda smart" switch to put behind a normal light switch:

    I use the MK Grid switch hardware (in the UK)

    I use Click Mode, good quality. These are not grid design but still all switches can be interchanged, the have mulitple inserts and colours. And the bonus of being cheaper than MK. and take less space in the box.

    General Discussion

  • "kinda smart" switch to put behind a normal light switch
    ElcidE Elcid

    @huhnmann said in "kinda smart" switch to put behind a normal light switch:

    That light switch has to work exactly as before.

    fitting a shelly 1 , the light should function as before but also have smart capabilities, so you get the best of both worlds

    General Discussion

  • "kinda smart" switch to put behind a normal light switch
    ElcidE Elcid

    The i3 is a bit wasteful if only a single switch. If it is a single switch why not go with a shelly 1 then you make the light smart and can also send http request or subscribe to device mqtt stat topic.

    General Discussion

  • Broadlink setup
    ElcidE Elcid

    @catmanv2 I never had any luck with the BL plugin under vera or openLuup. They plugin never found any devices. I deregistered device and connected it to wifi only, and still no discovery. This is on Android.

    Strange thing I finally tried discovery with a Ezlo plus and it discovered it first time.

    Vera/openLuup plugins

  • Sustained condition is missing from MSR
    ElcidE Elcid

    This seems to work and stops the race condition, and there is no delay in reaponse from other device.
    biuld the same rule for the other device. Both set the global expression dimming to 1 to stop the other reacting , and feeding back
    Screenshot_20210914-184140.png Screenshot_20210914-184237.png Screenshot_20210914-184311.png Screenshot_20210914-185552.png

    Multi-System Reactor

  • Sustained condition is missing from MSR
    ElcidE Elcid

    I dont think you need sustained.
    You can set ezlo dimmer > 0.
    Then set a expression to grab the ezlo dimmer level.
    Then in set reaction, set vera dimmer to ${{name_of_expression}},
    and reset reaction set to vera dimmer to 0.

    You can make the same rule in reverse for vera dimmer

    Then if you turn on vera dimmer it will turn on ezlo, and if you turn of ezlo it will turn off vera.

    Needs a bit more thought to follow dimming changes after that.

    Multi-System Reactor

  • Sustained condition is missing from MSR
    ElcidE Elcid

    @eonnet, Dam I update yesterday morning, new update that evening lol.

    So up date to latest 56 and the sustained is still there and set to changes.Screenshot_20210914-140102.png

    Multi-System Reactor

  • Sustained condition is missing from MSR
    ElcidE Elcid

    There for me on latest 21243 using chrome for android
    Maybe try another browser
    Screenshot_20210914-130221.png

    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