Skip to content

Multi-System Reactor

798 Topics 7.6k Posts
  • How to use the "latch" option/output mode

    Locked
    6
    1 Votes
    6 Posts
    416 Views
    wmarcolinW
    Each day that passes, I am amazed at the amount of resources available in MSR. This "latch" feature is very interesting, and certainly knowing this facility, I will soon find a way to use it.
  • Having trouble with http and basic auth

    Locked
    9
    0 Votes
    9 Posts
    483 Views
    A
    I updated to the latest version and it is working with Digest auth and the new username / password fields. You are going to spoil us with this pace of development
  • Suppressing alerts in HTTP Request actions

    Locked
    4
    2
    0 Votes
    4 Posts
    267 Views
    A
    +1 I am getting occasional network timeouts on a http request that repeats every two minutes (it is emulating a SiteSensor that I had on Vera). I'd like to be able to suppress those alerts as they are expected to happen from time to time and not anything I need to be notified about. Edit: Nevermind.... I posted here before looking at the update you just posted in the announcements thread... I see you already made this change.
  • [SOLVED] Lights on all month UNTIL fourth Thursday of the month

    Locked
    8
    1
    0 Votes
    8 Posts
    362 Views
    toggledbitsT
    @gwp1 said in Lights on UNTIL fourth Thursday of the month: Am I implementing the latch because there is a availability of multiple Friday's in that 22-EOM after range and latching the extra layer of weekday fourth vs any Friday is what caps the grouped sub-range from going beyond that fourth Friday? No, you're using latch because 6 of 7 days of the week aren't Fridays, and as many as 8 days, including another Friday, or as few as 2 with no Friday, may follow the fourth Friday in November of any given year. So once we encounter the fourth Friday, we want to continue to hold that condition state on Saturday, Sunday, Monday, and every other day that may follow through the end of the month. The latch takes care of that easily. I know @LibraSun is into expressions, so another possible solution is to use expressions to gin up the timestamp for midnight on the 22nd day of November (the earliest day of the month a fourth Friday could be) of the current year, and then get its day of the week. Knowing that Friday is weekday index 5, you can increment the date to figure out when the fourth Friday occurs. For example, if 11/22 is already weekday 5, you're on target and no offset is needed (that date is the fourth Friday). But if 11/22 is weekday 1 (Monday), you need to add 4 (days, 5-1) to the timestamp to get it to a Friday. I'll leave what to do if 11/22 is a Saturday (weekday index 6) as an exercise for the reader. Once you've incremented the date, just compare it to the current time to see if you're on or before it.
  • Will MSR have its own Http API? (Luup Requests)

    Locked
    6
    1 Votes
    6 Posts
    465 Views
    toggledbitsT
    See here for now: https://smarthome.community/post/7572
  • Small cosmetic issue in system time display

    Locked
    2
    1
    0 Votes
    2 Posts
    122 Views
    toggledbitsT
    That's JavaScript doing it. Cool, right? No idea why...
  • Replacing Deus Ex Machina with MSR?

    Locked
    3
    1 Votes
    3 Posts
    279 Views
    R
    Thank you.
  • [solved] Ordering of global expressions

    Locked
    22
    0 Votes
    22 Posts
    2k Views
    tunnusT
    @toggledbits can confirm that the fix is working (tested with 21297)
  • Reactor not starting on latest 21294

    Locked
    8
    0 Votes
    8 Posts
    476 Views
    ElcidE
    just confirming 21297 working with original app.sh
  • Jungle telegraph - MQTT coming to MSR?

    Locked
    4
    0 Votes
    4 Posts
    256 Views
    G
    Return of Lobo...?
  • Sorting arrays

    Locked
    8
    2
    0 Votes
    8 Posts
    319 Views
    wmarcolinW
    @toggledbits PERFECT!!! Well, now it's time to review everything I had before and put it in order And best of all, remember that I did 3 steps: List of all devices; Applying the rule, like battery level; Generate a string to send by message putting the device name. Now, with the sort get the name, I can eliminate the third variable, and using format() generate the message directly, SHOW!! The game is getting fun. It's going to be a long night
  • Backing / Restoring MSR Rule Sets and Configuration

    Locked
    2
    0 Votes
    2 Posts
    149 Views
    toggledbitsT
    @talisker Backing up your configuration and storage are simply a matter of copying the entire directory in which the config, logs and storage (and possibly others) are kept. If you look at the container's volume configuration, this would be the directory mapped to /var/reactor within the container. Any method of copying will do, including GUI copy to another folder. Since I don't have a QNAP NAS, I can't advise on how to update the container. Perhaps a QNAP user can chime in on this with some definitive steps. This previous post covered one approach to the process. I don't know if that's the only way, or the best if there are more ways than this one. Please carry on any QNAP-specific upgrade discussion in that (linked) thread.
  • How to? Rule for Vera "Can't Detect Device" errors and reset

    Locked
    21
    1
    0 Votes
    21 Posts
    3k Views
    toggledbitsT
    It was noted in another thread covering a specific case of this topic that it's possible, on some hubs (ahem), for a device to flap its *failed" state quickly, and perhaps is even likely due to temporary network/mesh/device issues, or a simple choice that during restart of the hub devices are marked down until known up. All of this may cause quick, although likely uninteresting, transitions between failed and not-failed. It may therefore be advisable to use the "sustained for" option on any rule that reacts to a change in identified failed devices, to dampen the response to such potentially spurious state changes.
  • Added IP camera to Ezlo, what is causing this

    Locked
    5
    0 Votes
    5 Posts
    252 Views
    CrilleC
    @toggledbits Sustained for is the way to go here, thank you for your advice. I can say that for Zigbee devices their firmware is a mess, a reboot of the controller marks all devices unreachable until they are physically toggled or reporting new sensor values, so rebooting means going around the house like a fool toggling lights and blowing on temp/humidity sensors, and if you don't do it fast enough you have to reboot again to give the devices a new chance to phone home in time.
  • Hubitat primary attribute

    Locked
    3
    2
    0 Votes
    3 Posts
    255 Views
    S
    @toggledbits Confirming Build 21292 fixed the issue. Thank You
  • [Solved] Date and time issue

    Locked
    5
    1
    0 Votes
    5 Posts
    367 Views
    V
    Hi, Install the new version and it is now working as expected. Thanks for looking into it.
  • Fun Stuff

    Locked
    7
    7 Votes
    7 Posts
    684 Views
    LibraSunL
    Too cool for school, sir! I've been in lurk mode lately due to life interrupting, but didn't want this genius move to go unnoticed. Next stop: Cause Ezlo firmware to be deleted from Ezlo boxes, leaving only the good stuff. Watching old Forum tells me they are still moving in many odd directions half a step at a time. Yawn. Should my Vera die, I will almost certainly jump to Hubitat + Reactor.
  • Reactor log timestamps

    Locked
    8
    0 Votes
    8 Posts
    526 Views
    CatmanV2C
    @crille said in Reactor log timestamps: @catmanv2 [image: 1634408917537-reference.jpg] Nice! C
  • Sending a service request to Home Assistant

    Locked
    2
    0 Votes
    2 Posts
    392 Views
    toggledbitsT
    One of the big gaps in the Home Assistant API is that it doesn't expose what services are available on every entity. I don't think it actually knows. But, you can tell MSR that an entity uses a particular service. You should have a file called local_hass_devices.yaml in your config subdirectory. If not, it's no trouble to just add it. There's also a default version in dist-config you can copy. To that file, in the entities section, just add entry for the entity using its canonical ID, and the services you want to add to it. Here's a sample file to give you the general idea: # This file has local definitions/overrides for HomeAssistant devices. --- entities: # Entry shows how an entity can have a service added and its name forced "hass>sensor_connected_clients": name: "WebSocket Clients" services: - homeassistant # This media player is a Sonos device, so it supports TTS "hass>media_player_portable": services: - tts # This media player is a Sonos device, so it supports TTS "hass>media_player_media_room": services: - tts # "hass>switch_power_switch": services: - zwave_js Or, to do it the simplest way possible, there's a call_service action on the system entity for the HassController instance. [image: 1634347894278-5336b43c-b13d-4561-b33f-1cd2e1b61838-image.png]
  • Logic loop? Throttling...

    Locked
    11
    2
    0 Votes
    11 Posts
    648 Views
    wmarcolinW
    @toggledbits your suggestion worked perfectly!! With the version updated to 21286, moving all rules to the Global variable, the warnings ended, and I can see in the log that the action started to be invoked only at the given times, and the variable update as Global occurs only when there is an effective change in the device. Great knowledge exercise and one more lesson from you. Thanks @toggledbits !

Recent Topics