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. cw-kid
    • 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 1
    • Topics 92
    • Posts 746
    • Best 105
    • Controversial 0
    • Groups 0

    cw-kid

    @cw-kid

    128
    Reputation
    115
    Profile views
    746
    Posts
    1
    Followers
    0
    Following
    Joined Last Online

    cw-kid Unfollow Follow

    Best posts made by cw-kid

    • I'm no longer a PLEG user !

      Been using PLEG for about 8 or 9 years, I had 100 Conditions / Actions in PLEG, these are now all disabled and I've recreated them on MSR.

      Still learning MSR and how to do somethings but everything I was doing in PLEG was fairly easy to convert over to MSR once I found my feet a bit and got going.

      Thanks to everyone who answered any of my questions along the way when I got stuck.

      I have some Vera scenes I'd like to also convert to MSR, so not quite done yet. 😁

      posted in Multi-System Reactor
      cw-kid
      cw-kid
    • RE: How to auto start on Rpi reboot ?

      @toggledbits said in How to auto start on Rpi reboot ?:

      rpi-install.sh

      9f322ffb-ca93-464b-9c47-fbec7c7e12b4-image.png

      This is the reactor.service file it created:

      # This file allows you to run your Reactor installation under systemd,
      # so it can be started at boot. Copy this file (as root or under sudo)
      # to /etc/systemd/system, and then run "systemctl daemon-reload". You
      # can then able Reactor to start at boot "systemctl enable reactor".
      # The usual systemctl subcommands can also be used to start, stop, and
      # restart reactor at will (e.g. "systemctl restart reactor").
      
      [Unit]
      Description=Multi System Reactor
      After=network.target
      
      [Service]
      Type=simple
      User=pi
      WorkingDirectory=/home/pi/Documents/reactor
      ExecStart=/usr/bin/node app -p
      Restart=on-failure
      RestartSec=5s
      
      [Install]
      WantedBy=multi-user.target
      
      

      I followed the rest of the instructions and I could see a reactor.pid file had been created and reactor was running again.

      I then rebooted my Pi and after it rebooted MSR is running again.

      So everything appears to have worked OK.

      Thanks

      posted in Multi-System Reactor
      cw-kid
      cw-kid
    • RE: Preview of Multi-System Reactor

      P.S. I really like the new Entity Attribute picker and search dialogue box.

      Would of saved me a lot of time if we had it earlier but its definitely a big improvement.

      posted in Multi-System Reactor
      cw-kid
      cw-kid
    • RE: Replacing SiteSensor Plugin (Vera) with MSR

      I've tried the Vera Multi-String plugin, it looks just like the type of plugin I was needing and looking for.

      You can have up to five variables on a device.

      6ec01036-3703-4888-8692-d47231b990d2-image.png

      83c68d4c-977a-422c-861b-11f16cbfe804-image.png

      You can then have your rule in MSR send the data to each variable etc.

      The Multi-String plugin devices data is also outputted in the Vera SDATA stream so these device will also work with the Home Remote dashboard app.

      { "name": "Covid-19 Stats", "altid": "", "id": 133, "category": 0, "subcategory": -1, "room": 0, "parent": 0, "variablename1": "Confirmed", "variable1": "4329180", "variablename2": "Recovered", "variable2": "3787312", "variablename3": "Critical", "variable3": "615", "variablename4": "Deaths", "variable4": "126573", "variablename5": "", "variable5": "", "options": "", "configured": "0" },
      

      So I recommend using the Multi-String plugin rather than trying to create your own modified Generic IO devices as I was doing.

      posted in Multi-System Reactor
      cw-kid
      cw-kid
    • RE: Not so quiet around here :)

      Gees, I know a lot of those names, didn't know Pabla and Crille were banned and I certainly didn't know ElCid was banned.

      Well I always speak my mind and if something doesn't work I'll say it doesn't.

      posted in General Discussion
      cw-kid
      cw-kid
    • RE: Support for 3rd party Vera plugins ?

      AltHue Plugin for Vera:

      CONFIRMED AS WORKING - HUE SCENES

      The ServiceID's are now exposed in an Entity Action in an MSR rule or Global Reaction.

      You need to select the main AltHue device in your Entity Action, then select hue_scene from this list.

      3ece807e-067a-482f-b6b0-fb292b8823cb-image.png

      Go in to the AltHue main device in Vera UI7 web GUI and go in to the "Hue Scenes" area and find the scene in the list that you want to start in your MSR rule or Global Reaction.

      Copy its ID number.

      d961abcf-20cc-42f6-9b54-2f13702b66f0-image.png

      Back in MSR edit the Entity Action and paste in the ID number.

      ac481ffe-6a11-45cb-851f-e89e7ec00b49-image.png

      When I ran my MSR Global Reaction, my hue scene is started and my lights are now in Arctic Aurora.

      CONFIRMED AS WORKING - EFFECT COLORLOOP

      Next I created another Global Reaction and tried starting the Effect ColorLoop

      Choose the set_effect from the drop down list.

      The child ID is the AltHue child device aka the light that you want the colorloop to be on.

      and enter "colorloop" in the Effect field.

      0b01caba-2889-4148-a67e-69f35369d7c2-image.png

      When you run the Reaction, If the light is already turned ON the colorloop will start.

      However if the light is turned off nothing will happen, so I added an action to turn on the light first then run the colorloop effect, which is working.

      a20d30fe-a2e1-4534-95dc-d9d84ee82304-image.png

      posted in Multi-System Reactor
      cw-kid
      cw-kid
    • RE: Need help backing up Raspberry Pi

      @catmanv2 said in Need help backing up Raspberry Pi:

      Have you got another SD card? Restore to that

      No I haven't. Not the same size anyway.

      I think I will buy another SanDisk 64GB SD card and make sure I can actually restore to a new card etc.

      posted in General Discussion
      cw-kid
      cw-kid
    • RE: Support for 3rd party Vera plugins ?

      HARMONY POWER AND ACTIVITY STATUS - WORKING

      If I use this HTTP command it lists all the Activities on my Lounge Harmony Hub.

      http://VERA-IP/port_3480/data_request?id=lr_Harmony184&cmd=list_activities

      { "status": "OK", "msg": "OK", "data": { "activities": [ { "ID": "27585584", "Activity": "ChromeCast Video" }, { "ID": "23834935", "Activity": "Media Center" }, { "ID": "23834936", "Activity": "XBOX" }, { "ID": "23864128", "Activity": "Wii-U" }, { "ID": "43190809", "Activity": "Nintendo Switch" }, { "ID": "23834933", "Activity": "Freeview" }, { "ID": "-1", "Activity": "PowerOff" }, { "ID": "42772934", "Activity": "Fire TV" }, { "ID": "36455394", "Activity": "ChromeCast Audio" }, { "ID": "42766865", "Activity": "BT TV" } ] }, "code": 200 }

      In MSR I can see x_vera_plugin_harmony.activity_status ServiceID

      When there are no activities running e.g. OFF the status returned is 0

      And when I am in my Watch TV "BT TV" activity, the status is 2, so you should be able to work out which activity is what status number ?

      Activities OFF - Status = 0

      e716268a-4201-415d-9cbe-ec665c619628-image.png

      Watch TV Activity - Status = 2

      c60a6247-b893-47b5-9857-c4e22677d331-image.png

      So I created a rule that when my Harmony hub is OFF then turn off some LED strip lights.

      b1329efd-91e5-485e-8640-16a027c77d62-image.png

      Alternatively there is a ServiceID called x_vera_plugin_harmony.power_status

      It is FALSE when all my Harmony Activities are turned OFF, so we can potentially use this instead.

      99b89c25-cde9-494a-9a14-c46da8230463-image.png

      And finally I looked at x_vera_plugin_harmony.current_activity this will return the activity ID numbers.

      I know -1 = Powered OFF so I could have used this also.

      When my Harmony is in Watch TV activity "BT TV" its showing a number ID of 42766865 which is correct. If you look at my output at the start listing all the activities and their ID numbers.

      3393fcea-4e87-4d73-b41a-1e029a902b15-image.png

      So I could now create an MSR rule that does something only when I am in the Watch TV Harmony activity etc.

      posted in Multi-System Reactor
      cw-kid
      cw-kid
    • RE: Vera watch variable / startup LUA how ?

      @therealdb OK its working ! I just pasted the raw code in to the startup LUA area and the virtual motion sensor now follows the real devices tripped status.

      I am writing a user guide for the Everspring EH403 Floodlight device, as it doesn't configure correctly after pairing with Vera.

      I will credit you for your code in the guide when I publish it on the forum.

      Thanks

      posted in General Discussion
      cw-kid
      cw-kid
    • RE: Expression value trigger not working ?

      I just edited the rule and ticked "ignore case" again and saved and the rule is still working and triggering, so that was a red herring as you say.

      posted in Multi-System Reactor
      cw-kid
      cw-kid

    Latest posts made by cw-kid

    • RE: Way to copy or export Alerts?

      @Crille

      Brilliant good to know thanks

      posted in Multi-System Reactor
      cw-kid
      cw-kid
    • RE: Way to copy or export Alerts?

      I'm confused I have 99 Alerts saying I have lots of devices and scenes that no longer exist on my Ezlo Plus controller.

      However the devices and scenes are still on the controller.

      I then wondered if some how all the device ID numbers had changed?

      I just check four devices from the MSR Alerts list and using their ID numbers I used the Ezlo Online API Tool to give me a list of all devices.

      In note pad I then search for these device ID numbers and they are still the same, meaning the number listed in the MSR Alerts, is still the same device ID number for the same correct device name from the Ezlo API Tool output.

      What gives ?

      posted in Multi-System Reactor
      cw-kid
      cw-kid
    • Way to copy or export Alerts?

      Hi

      Is there a way to copy text from an Alert or export them?

      I wanted to copy a device ID number that MSR says no longer exists on my Ezlo Plus controller.

      Thanks

      e7f39b4c-c283-4d47-a73a-e77974c0b2ae-image.png

      posted in Multi-System Reactor
      cw-kid
      cw-kid
    • RE: How to shutdown a Windows 10 PC ?

      OK just setup the rest of my MSR rule now with a Reset reaction, that gets the Vera Plus to run a LUA / os.execute shutdown command sent to the Windows 11 PC.

      So now when I start my Logitech Harmony activity for the Windows Games PC, MSR triggers the rule and gets Vera to send a WOL packet to the PC to wake it up.

      And when I end the Harmony activity the reset reaction in the MSR rule gets Vera to shutdown the PC.

      I even managed to get my Harmony Elite remote to launch RetroArch or Steam via buttons on the LCD screen and I also added a ALT+F4 button to exit the Windows apps.

      Next thing to figure out is how to split out the HDMI audio to a pair of PC speakers.

      Thanks.

      posted in Multi-System Reactor
      cw-kid
      cw-kid
    • RE: How to shutdown a Windows 10 PC ?

      Its working now !

      In Putty connected to my Vera Plus I ran a shutdown command to the Windows 11 PC it then said:

      Host '192.168.1.47' is not in the trusted hosts file.

      I hit Y to continue and Vera has just shutdown the Windows 11 Mini-PC via SSH.

      Thanks.

      posted in Multi-System Reactor
      cw-kid
      cw-kid
    • RE: How to shutdown a Windows 10 PC ?

      OK let me try that then.

      posted in Multi-System Reactor
      cw-kid
      cw-kid
    • RE: How to shutdown a Windows 10 PC ?

      @toggledbits said in How to shutdown a Windows 10 PC ?:

      If the Windows PC was previously known to the Vera before your upgrade, it's likely that the SSH key was regenerated on the Windows PC side when you did the upgrade, so the Vera SSH has the old host key. You can remove it from the known_hosts file on the Vera side.

      The Mini-PC was not known to the Vera before. I updated to Windows 11 and then install OpenSSH on the Windows 11 PC.

      Before that I did nothing with Vera and the Mini-PC running Windows.

      Oh I think I see what might be happening now. Looking in the known_hosts I already have an entry for the static LAN IP address of the Mini-PC but that is for Linux Debian on the Mini-PC.

      Before when I was messing about with Ezlo Softhub I setup a dual boot on the Mini-PC for Windows 10 and Debian Linux.

      Guess I can't have two known hosts for the same IP address but different OS's.

      posted in Multi-System Reactor
      cw-kid
      cw-kid
    • RE: How to shutdown a Windows 10 PC ?

      @catmanv2

      I always struggle with this type of stuff. Patrick helped me in the past on this Vera forum thread here.

      On that old post I wanted my Vera Plus to be able to ssh into my Raspberry Pi with no password prompt.

      I could then create MSR rules that instruct Vera to run a command like this to say reboot the Raspberry Pi etc.

      os.execute("ssh pi@192.168.1.101 sudo reboot")

      posted in Multi-System Reactor
      cw-kid
      cw-kid
    • RE: How to shutdown a Windows 10 PC ?

      I updated this PC to Windows 11 and installed OpenSSH Server on it. I was then able to login to it directly via Putty on my other Windows 10 laptop, I was prompted for the username and password and I could then issue a shutdown /p command and it did then shutdown the Mini-PC.

      I then tried to add my Vera Plus public key on to the Windows 11 PC so that Vera can ssh directly to it with no username and password prompt etc. However its not working I get this error every time.

      ecdsa-sha2-nistp256 host key mismatch for 192.168.1.47 !
      

      192.168.1.47 being the Windows 11 OpenSSH Server

      I created an authorized_keys file on the Windows 11 PC in this location:

      C:\Users\myusername\.ssh

      And in the authorised_keys file I pasted in the Vera Plus pubic key.

      I also followed the instructions on this article here to enable "Public key authentication" on the OpenSSH Server on the Windows 11 PC.

      Then reading this Microsoft article it suggested if my windows user is in the administrators group I need to instead create a administrators_authorized_keys file in C:\ProgramData\ssh\

      So I tried that but I still get the host key mismatch error when I connect to the Vera Plus via putty and then tried to ssh to the Windows 11 PC.

      posted in Multi-System Reactor
      cw-kid
      cw-kid
    • RE: How to shutdown a Windows 10 PC ?

      OK thanks I will take a read and report back.

      posted in Multi-System Reactor
      cw-kid
      cw-kid