Multi-System Reactor

693 Topics 6.8k Posts
  • [Solved] MSR doesn't like January?

    Locked
    9
    0 Votes
    9 Posts
    193 Views

    @toggledbits said in MSR doesn't like January?:

    OK. Build 21221 is up with the rule editor fix for date/time January.

    Thank you. I can confirm that the (every month) no longer appears when I edit the rule.

  • Set Entity value in expression?

    Locked
    20
    0 Votes
    20 Posts
    474 Views
    The performAction() expression function will perform an action from an expression. If you have an object stored in a variable old_status that contains data like this: [ { id: "vera>Livingroom Fan", status: true }, { id: "vera>Loft Fan", status: false }, { id: "vera>Office Fan", status: true } ], then you can set those statuses in one expression: each d in old_status: performAction( d.id, "power_switch.set", d.status )

    This is exactly what i was looking for! thank you!!!!!! i was looking at the docs and completely glossed over that section...

  • Having issues with a shell command

    Locked
    60
    0 Votes
    60 Posts
    1k Views

    Everything appears to all be working nicely now.

    The only issue is sometimes I see this error alert

    c0eaae29-9778-441e-9430-f6a61a5dfe4a-image.png

    ad4be8c1-9a9e-491b-b368-b9ce238820fa-image.png

    I assume it happens when the "ps4wakercheck" variable hasn't been populated with any data and therefore the "ps4wakerparse" variable has nothing to parse.

    The ps4waker check rule is now using the wrapper script also, so if for whatever reason it didn't get data returned on its first attempt, it does on the second or subsequent attempts.

  • 0 Votes
    2 Posts
    99 Views

    MSR uses the same approach as Reactor for Vera. It computes the "edge" time and sets a timer for it, then goes idle. When the timer expires, the task is awakened and the event is handled. If the condition changes during timing so that it's no longer true, the timer is simply cancelled and the event never occurs. This is true for all time-based condition options, as well as all time condition types (Date/Time, Weekday, Sunrise/Sunset).

    This avoids "polling" for time (like PLEG with its now keyword), which makes better use of system resources (less wasted CPU, for example), and also keeps to-the-second (actually millisecond internally) resolution in timing of events. It also improves the recovery across reboots/reloads -- Reactors know exactly whenever they come back up how much time is left to meet the original time criteria on the nose, or if it was missed altogether during the downtime.

  • Running as a Windows Service

    Locked
    8
    1 Votes
    8 Posts
    195 Views

    Perfect, in the services panel the Reactor appears and I can then control it. Strangely in Task Manager does not appear the Reactor in running processes.

    But ok, situation solved.

  • Pushover duplicate messages.

    Locked
    15
    0 Votes
    15 Posts
    415 Views

    Ok, done. Much better, thank you!

  • Size of console.log

    Locked
    3
    0 Votes
    3 Posts
    97 Views

    @toggledbits Ok, thank you. Time to change to systemd then!

  • Unable to connect to HASS

    Locked
    10
    0 Votes
    10 Posts
    370 Views

    @rogero said in Unable to connect to HASS:

    Doh. Found an ID10t error. Had the wrong IP address in the Reactor config. I definitely have too many computers at my house.

    I have a spreadsheet so I can recall WTF they all do and their IP addresses. Something of an issue when mostly stuff just works. Mostly. </Aliens>

    C

  • This topic is deleted!

    Locked
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • MSR Logic vs Reactor question

    7
    0 Votes
    7 Posts
    258 Views

    Went with Patrick's suggested approach. I do like the old reactor a bit better for this instance. Less clutter. Sure there was a technical reason to do it this way. Guess I can create multiple rule sets to group them by.

  • HASS version not supported?

    Locked
    4
    0 Votes
    4 Posts
    185 Views

    OK. Thanks.

  • 0 Votes
    12 Posts
    269 Views

    @toggledbits

    Appears to have done the trick the Ezlo-Plus controller is back again in Entities.

    Thanks

  • Ezlo device capabilities

    Locked
    31
    0 Votes
    31 Posts
    882 Views

    Setting node path worked, still not getting ir_remote_send_codes to work though. I added to the PR

  • Entities area is this expected?

    Locked
    4
    0 Votes
    4 Posts
    156 Views

    I updated to build 1.0.0-21200-16a604f this morning and now the Reactor System can be seen again in the Entities area.

  • Multi-System Reactor Developer Preview AVAILABLE

    Locked
    124
    4 Votes
    124 Posts
    9k Views

    Build 21197 (1.0 release candidate 3)

    Additional capabilties for eZLO devices PR 0000229: Fixed an issue with attempt NaN write when certain sun conditions cannot be calculated in some "extreme" latitudes (e.g. sunset in Tromso NO in mid-summer: sun doesn't set; no astro dusk/dawn in mid-summer northern UK, etc.). PR 0000228: Fixed an issue with sequence (..after..) condition option not reselecting predecessor condition on subsequent rule edit.

    I don't regard this as a vital update; this is mostly just informational. But if you're affected by either of the above PRs, you may want to make the upgrade.

    On track for 1.0 release in 7/19. I've already changed the structure of the download directory.

  • 0 Votes
    3 Posts
    190 Views

    Are you able to ssh into a QNAP NAS? I would assume you can. If so, try docker ps and see what it says. If it gives you a permissions error, try sudo docker ps. If either works (even if it lists no processes), then you can use docker commands. The following is a script that you can run. If you needed sudo to run the test command earlier, then run the script using sudo. Read the comments before running the script. There are things you need to modify before the first time you run the script, and after the first time.

    #!/bin/sh # You can save this as a script: update_msr.sh # Set permissions: chmod 755 update_msr.sh # # Before running this, stop and delete the existing container yourself. # After you have started MSR for the first time using # this script, you can uncomment the two docker # commands below and the script will do it for you from then. #docker stop reactor #docker container rm reactor # # Pull the new image: docker pull toggledbits/reactor:latest-generic-amd64 # # Create and start the new container: Adjust TZ as needed, and # provide the path to your Reactor data directory where shown: docker run --name reactor -d --restart on-failure -p 8111:8111 \ -e 'TZ=America/New_York' \ -v /PATH/TO/YOUR/DATA:/var/reactor \ --mount type=bind,src=/etc/localtime,target=/etc/localtime \ --network host \ toggledbits/reactor:latest-generic-amd64
  • Cannot save Restriction in MSR Rule Set

    Locked
    2
    0 Votes
    2 Posts
    96 Views

    OK. I see this. It is saving it, just not redisplaying it on reload due to a race condition with an asynchronous task. I'll do a build later today with a fix.

  • Issues connecting to Ezlo Controller

    Locked
    16
    0 Votes
    16 Posts
    375 Views

    @toggledbits said in Issues connecting to Ezlo Controller:

    you press a button in Home Remote, that makes the request to MSR (over WiFi directly, or is there a cloud component to that app?

    Its direct on the WLAN from the Home Remote app to the MSR HTTP API.

    I have this exact same setup with my Vera hub for my other colour lights paired to the Vera Plus.

    I haven't noticed those being laggy when pressing the buttons on the Home Remote app page etc.

    But to be fair I don't normally press all the buttons quickly to change colours in that manner. I will try it against a Vera controller as well to see.

  • Lock code as trigger

    Locked
    7
    0 Votes
    7 Posts
    235 Views

    @apocalypsehobby Interesting approach. I'm gonna look into this further.

  • Version 1.0 Pre-release Discussion

    Locked
    46
    3 Votes
    46 Posts
    2k Views

    I was just going to reply to @Fanan about reading examples on the forum can really help point you in the right direction. @LibraSun posted some examples of some things I was struggling with, and that made all the difference. Carefully dissect the examples, refer back to the docs, and the dots will start to connect.

    One thing that I think helped me a whole bunch was an Amazon Prime "The Great Courses" course on programing called "How to Program: Computer Science Concepts and Python Exercises." (only $7.99 a month for access) While it is not an MSR programing language course, it helped give me some foundational knowledge that sort of transfers. An example of this would be the principle of "lists" in Python to help you understand the basics of "arrays" in MSR.

    Small steps and little victories will keep you going.

Recent Topics