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. Elcid
    • Testing reaction set global expression

      R

      Hi @toggledbits

      Just a quick question. I noticed that I can't test a "set variable" action when the rule is not active. I wanted to set a global expression in a reaction and wanted to test it by pushing the "Run action now" button in the border of the reaction, but it didn't do anything. Only when I activated the rule, the button worked.

      Is this a bug or is this by design?

      I'm running the latest docker build:
      latest-23114-e4060aae

      Multi-System Reactor
    • Can't post screen shots here now?

      cw-kid

      I wanted to asked a question with some screen shots but I am getting an error when I try to copy and paste an image from paint into this forum post editor.

      "Error something went wrong parsing server response" it was saying.

      Multi-System Reactor
    • Home Assistant add-on

      M

      I've done a bit of repackaging of MSR to make it work as an add-on under Home Assistant mostly for my own purposes but hopefully it makes it a bit easier to install and get going.

      GitHub - mrw298/hassio-reactor-addon GitHub - mrw298/hassio-reactor-addon

      Contribute to mrw298/hassio-reactor-addon development by creating an account on GitHub.

      Multi-System Reactor
    • DelayLight replicate in MSR

      P

      Hi Everyone,

      I am just starting to move over from Vera to Home Assistant using MSR.

      On vera I had been using DelayLight. I have tried to replicate it with help from youtube (https://www.youtube.com/watch?v=fc_ij0D1hXE) Reactor for Vera #006 - Emulating DelayLight in Reactor.

      I have created 6 rules that sort of work. but I am just wondering if this is best practice or should can it be built in 1 rule like the old vera way?

      Multi-System Reactor
    • Having an Echo device play mp3?

      F

      Hi!
      I tried to find an answer in both the forum and by myself, without any luck. I'm trying to make my Echo device play a mp3 file. The same mp3 file is easy to play with other smart speakers (Sonos, Google/Nest) - that it no problem. Same approch do not work with Echo devices. The mp3 files I want to use is located on my HA installation (config/www/audio), running on ver. 2023.5.4. I have MSR ver 23114.
      Is there a way to do this easily?
      Thanks!
      /Fanan

      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
    • Sending numbers as payload type in actions enhancement

      J

      I'm controlling a HVAC device through the MQTTController. While setting up the entity config in reactor.yaml, I started with this on the action block:

      set_setpoint: topic: "ezlo_mqtt/set/item/%topic%/set/Tsetpoint" payload: expr: "parameters.setpoint" type: raw

      However, as the setpoint is a number in the UI, things were not fully parseable as a number and nothing was outputted to mqtt.

      So I've added this code to MQTTController.js at line 1449 to add the payload type 'number':

      } else if ( 'number' === act.payload.type ) { payload = String( payload ); } else if (''raw' !== ( act.payload.type || 'raw' ) ) {

      After this change, I was able to set the payload type to number:

      set_setpoint: topic: "ezlo_mqtt/set/item/%topic%/set/Tsetpoint" payload: expr: "parameters.setpoint" type: number

      And things worked as intended, being able to send numbers in the actions bit of a rule set.

      Multi-System Reactor
    • MIOS - UI5 web login

      Black Cat

      Can anyone help with the MIOS UI5 weblink? Not the getvera one.
      Still running UI5 on a couple of sensors & lights and need to tweak PLEG but for the life of me I can't remember the link to tunnel back to the trusty machine....

      General Discussion
    • SiteSensor > how to fill in Value Expressions (json data) SOLVED !

      M

      I still use Vera controllers in combination with ReactorSensors. I have several Reactor sensors in use to retrieve weather data from Wunderground (i have a personal weather station), my smartmeter etc.

      Recently I installed solar panels with a SolarEdge inverter. SolarEdge has an API to retrieve my power production data from their cloud.
      Output is in json.

      So I created a new Reactor Sensor. Connection is working (query okay).
      But I encounter problems at the Value Expressions. Either I get ""query okay" but no data or I get "query okay but 1 expressions failed"

      This is the json output

      {"overview":{"lastUpdateTime":"2023-05-12 10:45:57","lifeTimeData":{"energy":476310.0,"revenue":216.577},"lastYearData":{"energy":433001.0},"lastMonthData":{"energy":433001.0},"lastDayData":{"energy":8262.0},"currentPower":{"power":5647.0},"measuredBy":"INVERTER"}}

      So it has different layers/levels.

      I tried to put in the Value Expressions field several combinations to get the energy data of today (8262.0), like:

      response.lastDayData.energy
      response.overview.lastDayData.energy
      response.overview.lastUpdateTime.lastDayData.energy

      all fail...

      Who can help me with this ?

      Vera/openLuup plugins
    • openweather plugin ?

      DesT

      Hey guys....

      long time 😉

      Since Dark weather is no more active, thanks Apple. Anyone switch to openweather to get weather data ?

      Plugins
    • Smart devices and mesh

      J

      The wifi on my router is turned off, and wifi around the house is provided using a mesh - 3 units altogether (one connected directly to the router) that are spread around the house.

      I would like to start automating certain tasks around the house and intend to try adding a few smart sockets to my setup.

      The mesh system I have supports both 2.4GHz and 5GHz, and does not provide me with the option to control them - i.e. turn one or both on/off, give each a different SSID, etc.

      The devices I wish to purchase/use only support 2.4GHz.

      Will turning the mesh units off and temporarily turning the 2.4GHz wifi on the router to allow me to set them up be enough? Will I then be able to return to my usual setup and everything will work as it should?

      Many thanks in advance

      General Discussion
    • Smart bed sensor

      C

      Hey everyone, I'm currently working on developing a bed sensor that can detect when you're out of bed. It could be used to trigger other smart home gadgets, like lights or blinds, temperature etc.
      The sensors are placed under the legs of your bed post. Should look and feel like "smart furniture pads" with size 2 inches in diameter and 1/4 inch thick.
      Before we go any further, I'd love to get your thoughts on this - would a bed sensor like this be something you'd find useful? We're still in the early stages of development, so any feedback you have would be greatly appreciated. Thanks in advance!

      smart möbeltass.JPG

      General Discussion
    • JSON payload in MQTTController entities actions (+ reverse color mapping to RGB)

      M

      Some background
      I'm trying to integrate a Zigbee device into the MSR using zigbee2mqtt bridge and MQTTController. The device in question is a cheap mood light that has following properties that I'd like to control:

      switch (on/off) brightness color

      I'v already managed to get the switch part working and can toggle the light on/off. Also the brightness value is mapped back to MSR. In zigbee2mqtt it has a value range from 0 to 254, so this the reason for the expression:

      expr: 'payload.brightness / 254'

      Here's the entity definition (don't know whether the type should be something else than the Switch)

      zigbee-lidl-mood-light: name: 'Lidl Mood Light' friendly_name: 'Mood Light' type: Switch uses_template: lidl-moodlight

      And the corresponding template (NOTE: rgb_color has not been defined in this example):

      lidl-moodlight: init: "zigbee2mqtt/%friendly_name%/get/state" query: "zigbee2mqtt/%friendly_name%/get/state" capabilities: - power_switch - toggle - dimming primary_attribute: power_switch.state events: "zigbee2mqtt/%friendly_name%": "power_switch.state": json_payload: true expr: 'upper(payload.state) == "ON"' "dimming.level": json_payload: true expr: 'payload.brightness / 254' actions: power_switch: "on": topic: "zigbee2mqtt/%friendly_name%/set/state" payload: 'ON' "off": topic: "zigbee2mqtt/%friendly_name%/set/state" payload: 'OFF' set: topic: "zigbee2mqtt/%friendly_name%/set/state" payload: expr: "parameters.state ? 'ON' : 'OFF'" type: raw toggle: topic: "zigbee2mqtt/%friendly_name%/set/state" payload: 'TOGGLE'

      The problem
      In order to control the brightness or the RGB color values, I would have send a JSON payload in corresponding actions. But I have no idea how to define it in the template. The reason why the switch part is working is that the zigbee2mqtt accepts also plain ON / OFF / TOGGLE string payloads in that case.

      But the brightness should be controlled with the following payload:

      {"brightness": 196}

      And the RGB color like:

      {"color":{"rgb":"46,102,150"}}

      Here's the link for the documentation (the Exposes part defines the messages).

      So how should I define the JSON payload for example for the dimming action? It definitely should be some sort of expressions since I have to map the MSR real value (0...1) to (0...254) for the zigbee2mqtt.

      actions: dimming: set: topic: "zigbee2mqtt/%friendly_name%/set" payload: expr: ????? type: json

      Another problem is the RGB value. I could use the rgb_color capability for the setting but the problem is that the zigbee2mqtt only reports the current color in hue/saturation or xy coordinates.

      Here's an example of published message after setting the color:

      Topic: zigbee2mqtt/Mood Light QoS: 0 { "brightness":254, "color":{ "hue":240, "saturation":100, "x":0.1355, "y":0.0399 }, "color_mode":"xy", "color_temp":574, "linkquality":96, "state":"ON" }

      I would have to map those values back to RGB, but is it even possible with existing constructs in MQTTController's templates?

      Help would be appreciated @toggledbits
      br,
      mgvra

      Multi-System Reactor
    • Another Vera --> Home Assistant migration question

      T

      Good morning all,
      I've got a stable Home Assistant running on a RPI 4 with a Aeotec Z-Stick 7 Plus, and of course the Z-wave JS integration. I've manually moved a handful of devices, and I'm overall much happier with the HA z-wave capability than I am with Vera. There are still some things I'm trying to figure out that I have in Vera that I'm not sure how they'll work in HA, but no deal breakers.

      I've got all of my automation on MSR and off of luup Reactor, so really the only thing left for me is to migrate my Z-wave network. I saw @rafale77's post about using a Zwave.me UZB1 to Zway, but of course that's not what I'm using.

      Is there a similar method that I can use my Aeotec Z-Stick 7 plus to Home Assistant? I have around 70 Z-wave devices (give or take devices that generate multiple instances in Vera), so manual unpairing, including, etc, would be quite a chore.

      Vera
    • Home Assistant push notification for Reactor version update possible?

      T

      Good evening,
      I was wondering if it would be possible to send out a push notification when there is a update to MSR to HA users. I know how to set up notifications through Reactor to HA users, but I'm unsure what to look for in regards to updates. I know that MSR itself will tell me there is an update, but unless I'm logged into MSR in a browser, I'm not always going to see that.

      Just updated to latest-23114-e4060aae MSR
      Home Assistant 2023.4.6
      Supervisor 2023.04.1
      Operating System 10.0

      Multi-System Reactor
    • ChatGPT - finally I can now retyre in piece and quite, knowing everting is in goof hands.

      A

      ChatGPT samples:

      Me:

      Tell me about an iot program called openLuup.

      It:

      OpenLuup is an open source home automation system that is built on the VeraLuup platform. It is designed to be easy to install and configure, and provides users with a powerful and versatile way to control their home automation devices. OpenLuup offers a wide range of features, including support for many popular home automation devices, scheduling, scripting, and integration with other services. OpenLuup is designed to be customizable, allowing users to create their own home automation systems. It is an excellent choice for those looking to create their own home automation system without spending a lot of money.

      Me:

      Write an iot program using openLuup.

      It:

      --openLuup IoT Program-- -- Initialize Variables -- local device_id = "MyHomeDevice" local temperature_sensor_id = "MyTemperatureSensor" local temperature_threshold = 75 -- Create Devices -- luup.create_device("OpenLuup Temperature Sensor", 0, device_id, "D_GenericSensor1.xml", "I_GenericSensor1.xml", "S_TemperatureSensor1.xml", "") luup.variable_set("urn:upnp-org:serviceId:TemperatureSensor1", "CurrentTemperature", 0, device_id) -- Start Timer -- luup.call_delay("check_temperature", 10, "", false) --Function to Check Temperature-- function check_temperature() local current_temperature = luup.variable_get(temperature_sensor_id, "CurrentTemperature", 0) --Check Temperature Threshold-- if current_temperature >= temperature_threshold then --Send Alert-- luup.call_action("urn:micasaverde-com:serviceId:HomeAutomationGateway1", "SendTextMessage", {PhoneNumber="1234567890", Message="ALERT! Temperature exceeded threshold!"}, 0) end --Reset Timer-- luup.call_delay("check_temperature", 10, "", false) end

      Me:

      Write an iot program using openLuup.

      It:

      Write an iot program using openLuup. -- openLuup IOT Program -- -- Variables local lampState = false local lampTime = 0 -- Functions function lampTimer() if lampTime > 0 then lampTime = lampTime - 1 if lampTime == 0 then luup.variable_set('urn:upnp-org:serviceId:SwitchPower1', 'Status', 0, lampDeviceID) lampState = false end end end -- Setup luup.call_delay('lampTimer', 60, 0) -- Main Loop while true do -- Check for motion if luup.variable_get('urn:micasaverde-com:serviceId:MotionSensor1', 'Tripped', motionSensorDeviceID) == '1' then if not lampState then luup.variable_set('urn:upnp-org:serviceId:SwitchPower1', 'Status', 1, lampDeviceID) lampState = true -- Set lamp timer to 5 minutes lampTime = 300 end end luup.sleep(1) end

      What??

      luup.sleep(1)

      Not good - looks like I still have some semblance of a job to fulfill.

      Me:

      An iot program called openLuup was written by akbooer. Who is akbooer?

      It: (note: answer redacted and as I understand it, also incorrect re: AltUI):

      akbooer is the pseudonym of the software developer and home automation enthusiast. He is the creator of the openLuup home automation software, which is an open-source version of the Vera home automation system. He is also the creator of the AltUI graphical user interface for openLuup.

      Me:

      Who created of the AltUI graphical user interface for openLuup.

      and

      Me:

      Who created of the AltUI graphical user interface for the home automation system Vera.

      Names two different people - mmmm.

      Regardless very impressive - give it a few more years.

      General Discussion
    • Disabled groups in reactions

      tunnus

      MSR tooltip says that "disabled groups are ignored, as if they did not exist (conditions don't run)".

      Just want to clarify if it's by design that actions beneath disabled groups should run? They do run, but intuitively I was expecting them to be disabled as well.

      Running the latest build under Docker.

      Multi-System Reactor
    • Any interest in a Subcategory for Homebridge?

      parkerc

      Being an iPad/iPhone user, I use Homebridge for a number of things. Although it runs completely independently from my main Vera home set up.

      Is anyone else using Homebridge and if there is enough interest would a subcategory be of use ?

      Software
    For those who registered but didn't received the confirmation email, please send an email to support@smarthome.community with the email you used
    • Profile
    • Following 0
    • Followers 0
    • Topics 20
    • Posts 251
    • Best 59
    • Controversial 0
    • Groups 0

    Elcid

    @Elcid

    78
    Reputation
    44
    Profile views
    251
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Location England

    Elcid Unfollow Follow

    Best posts made by Elcid

    • RE: Not so quiet around here :)

      @cw-kid I have not been able to login since the 28/03.
      As to rebel, just a little more blunt than you. As I see it someone was on a purge.
      Shame they are purging people that help others, specially vera support, still plenty of support here though.

      posted in General Discussion
      Elcid
      Elcid
    • My Wandering

      I am a Electrician. I installed hundreds of smart devices for others prior to having my own home automation. In 2013 I bought a new house and decided to make it smart. I did some homework and settled on Z-wave and VeraPlus.
      My installation comprises of
      25 Z-wave dimmer/switch inserts
      3 Z-wave door sensors
      10 sonoff devices(basics,TH16 and Mini) ,
      4 Tuya(lamps and RGB strips) ,
      6 shellys(connected to motion sensors and 2 controlling dead DIY bolts )
      3 Amazon Dots(gen2)
      2 Broadlink (RMPro's)
      4 DIY RF Venetian Blinds
      2 Multi button DIY remotes
      1 NVR
      1 Network drive/Media server/ftp server.
      1 smart thermostat heating and hot water
      4 wired 240v/battery Aico smoke and heat detectors (connect to zwave via Relays)
      1 robot hover.
      1 Siren
      Node-red server running on android.
      Testing openluup on android.
      Automate App running on andorid Boxes/phones.
      All tv's are connected to android boxes.
      No windows PC.
      Debian running on android box.
      Plugins Reactor, AlexaTTS, Switchboard and Virtual HTTP Switch.

      I can control all of my devices from anyone of these platforms Vera/OpenLuup, Node-red, Automate(phone/tv box) or Alexa.
      All devices have a standard/manual switch for anyone to control, and can be controlled even if my VeraPlus stopped working or internet out. My system is stable and may get a luup reload every couple of weeks.

      None of my sonoff's or tuya have been flashed. I found Shelly very late into game and will be using these more now i found them, as they offer local control.

      I have some coding knowledge from the 90's, but have never worked in the industry.

      posted in Blogs
      Elcid
      Elcid
    • RE: Alarm Clock

      I now have node-red setting a silent switching of a v device, by saying "wake me up at [any time and/or day]". also depending which echo i use i can set a different v device, so different morning routines for each bedroom.

      @catman you can also do all your H A Bridge devices in node red to, as it has the local hue lights bridge to. So you could replace H A Bridge with node-red. It would not be difficult to set a http request to set your virtual alarm.

      posted in Plugins
      Elcid
      Elcid
    • First post to say hello

      Hi to all, Thought i would join as not to miss out on anygood information that you developers may share here.

      note- The input box for text does not display to well.I can not see what i am typing.
      Android 8 full sreen on tv box using firefox mobile view.
      If i use desktop view everything is ok.

      posted in General Discussion
      Elcid
      Elcid
    • RE: This is me

      @CatmanV2 said in This is me:

      Well, if I see further, it's because I stand of the shoulders of giants. I've got where I got because of the experts here.

      Well said.

      posted in Blogs
      Elcid
      Elcid
    • RE: Not so quiet around here :)

      @cw-kid

      Yes i am here, as always I will help anyone who asks.

      Just for info - I have no idea what the reason for my suspension, I have contacted CS but they seem to be just ignoring my request for a clear reason.

      As to GDPR if they run servers in europe then we are covered by GDPR, even if they move the servers to the US, as I think there is a privacy agreement with the US.

      aleksandr

      GDPR in the USA | GDPR compliance in US | GDPR and PII

      GDPR in the USA | GDPR compliance in US | GDPR and PII

      GDPR in USA - find out how its affect USA, and become compliant with Cookiebot CMP today.

      posted in General Discussion
      Elcid
      Elcid
    • RE: Setting RGB colour values

      0.5019607843137255, 0, 0.5019607843137255 You may want to round them. LOL

      posted in Multi-System Reactor
      Elcid
      Elcid
    • RE: Removing Orange Notification

      Yes thanks for your efforts @DesT

      posted in Comments & Feedback
      Elcid
      Elcid
    • Lua example http post request with json body
      -- https request  json body
      -- Enable potentially unsafe lua code in,  user account - security
      local https = require "ssl.https"
      local http = require "socket.http"
      local ltn12 = require "ltn12"
      local json = require "dkjson"
      local payload = {{"test", "test", null, 0}}  --payload to be sent
      
      local request_body = { secret = "1.KAddd87s8s8FasL7-ze4KG_p5hrVg4Kee1-t3vnwGFhI=", to = "test@gmail.com", device = null, priority = "high", payload = payload } --the json body
      local response_body = {}
      request_body = json.encode(request_body)
      
      local r, c, h, s = https.request {
        url = 'https://llamalab.com/automate/cloud/message',
        method = 'POST',
        headers = {
          ["Content-Type"] = "application/json",
          ["Content-Length"] = string.len(request_body)
        },
        source = ltn12.source.string(request_body),
        sink = ltn12.sink.table(response_body)
      }
      
      
      posted in Code/Snippet library
      Elcid
      Elcid
    • RE: Expressions and LuaXP Functions

      isNaN([1,2,3]) and isNaN("ten"/2) and isNaN("ten" + "eight") are all true

      posted in Multi-System Reactor
      Elcid
      Elcid

    Latest posts made by Elcid

    • RE: An electricians or wiring experts here?

      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.

      posted in General Discussion
      Elcid
      Elcid
    • npm ERR! code EBADPLATFORM reactor 20022

      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"
        }
      
      posted in Multi-System Reactor
      Elcid
      Elcid
    • RE: Looking for ideas on how to implement an automation.

      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.

      posted in General Discussion
      Elcid
      Elcid
    • RE: Looking for ideas on how to implement an automation.

      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

      posted in General Discussion
      Elcid
      Elcid
    • RE: Multidimensional Array

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

      posted in Multi-System Reactor
      Elcid
      Elcid
    • RE: Multidimensional Array
      ${{[["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]
      
      posted in Multi-System Reactor
      Elcid
      Elcid
    • RE: Reactor not starting on latest 21294

      just confirming 21297 working with original app.sh

      posted in Multi-System Reactor
      Elcid
      Elcid
    • RE: Reactor not starting on latest 21294

      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?

      posted in Multi-System Reactor
      Elcid
      Elcid
    • RE: Reactor not starting on latest 21294

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

      posted in Multi-System Reactor
      Elcid
      Elcid
    • RE: Reactor not starting on latest 21294

      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?

      posted in Multi-System Reactor
      Elcid
      Elcid