Announcement

Collapse
No announcement yet.

Node-RED on AWS

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Node-RED on AWS

    I'm running Node-RED on an AWS EC-2 instance. Is there a way to reference my HomeSeer (I'm running HS4 on a HomeTroller Zee S2) as a server in the Node-RED HS Device node?

    #2
    Originally posted by david.i.tanzer@gmail.com View Post
    I'm running Node-RED on an AWS EC-2 instance. Is there a way to reference my HomeSeer (I'm running HS4 on a HomeTroller Zee S2) as a server in the Node-RED HS Device node?
    Living dangerously...Are we?...

    At your own risk try : https:// {your username}:{password}@myhs2.homeseer.com:{port of your HomeSeer System}

    And in HomeSeer custom settings https:// {the access address of your AWS Node-RED}:1880/homeseer/webhook

    No guaranties if this will work but...you're the one doing the hacking!


    Else, you may need to contact this guy here : https://www.youtube.com/watch?v=n_1wX7kKx7k (Unrelated but he knows his stuff)


    Eman.
    TinkerLand : Life's Choices,"No One Size Fits All"

    Comment


      #3
      Ha! I have the feeling that I need to go directly to my HomeSeer box, so I don't think myhs.homeseer.com will work for this. I tried port forwarding, but I couldn't get that to work either. Perhaps Node-RED needs to be running on my local network? Or maybe I need to set up a VPN?

      Comment


        #4
        It should look like in the image below but I have not tested.... We did that trick with a remote speaker client on a Laptop and it worked!. But what I think it only works on plug-ins

        Click image for larger version  Name:	Node-RED 2.png Views:	0 Size:	20.1 KB ID:	1483290




        You may need to contact spud or Michael McSharry to secure your mqtt nodes from AWS back to HomeSeer.



        There is also this : https://flows.nodered.org/node/node-...ib-aws-iot-hub (Which should be local on a Raspberry pi)

        How to start right here : https://nodered.org/docs/getting-started/raspberrypi




        Eman
        TinkerLand : Life's Choices,"No One Size Fits All"

        Comment


          #5
          So, port forwarding DOES work! I simply created a dummy port (I used 1880 because that's what Node-RED uses) and forwarded it on to the internal IP of my Zee S2 at port 80. Bingo! It works!

          Comment


            #6
            Originally posted by david.i.tanzer@gmail.com View Post
            So, port forwarding DOES work! I simply created a dummy port (I used 1880 because that's what Node-RED uses) and forwarded it on to the internal IP of my Zee S2 at port 80. Bingo! It works!
            You go boy! But secure your network and can also check out those links I posted at # 4

            Try this guy again : https://www.youtube.com/watch?v=80vIin4xGp8

            Eman.
            TinkerLand : Life's Choices,"No One Size Fits All"

            Comment


              #7
              Originally posted by david.i.tanzer@gmail.com View Post
              So, port forwarding DOES work! I simply created a dummy port (I used 1880 because that's what Node-RED uses) and forwarded it on to the internal IP of my Zee S2 at port 80. Bingo! It works!
              Port forwarding works and is great until your system is hacked.

              Comment


                #8
                drhtmal, do you have an alternative if Node-RED isn't running on my local network?

                Comment


                  #9
                  Eman, thanks for your suggestions. I don't believe using myhs2.homeseer.com will work for Node-RED--I think it needs to talk directly to an IP. And the Raspberry Pi documentation is for installing it on a local device, in this case, of course, a Rapsberry Pi. In my case, I'm running it on an AWS EC2 box. As well, I'm using the HomeSeer-provided Node-RED node: https://flows.nodered.org/node/node-...ntrib-homeseer which I don't believe uses MQTT.

                  This is very cool, though. Changes to my HomeSeer devices immediately reflect in Node-RED flows, and the Node-RED sourced control of my HomeSeer network is very fast!

                  Comment


                    #10
                    I'd be considering a VPN or at the very least locking down port 1880 to only accept traffic from AWS IP's...
                    HS4 Pro Edition 4.2.5.0 running on Lenovo ThinkCenter & Debian Linux
                    Plugins: Z-Wave (via Nortek USB stick

                    Home Assistant 2021.10.6 running on HA "Blue" ODROID-N2
                    Add-ons: Android Debug Bridge, Duck DNS, ESPHome, File Editor, Glances, HA Google Drive Backup, InfluxDB, Log Viewer, MariaDB, Mosquitto broker, NGINX SSL Proxy, Node-RED, Portainer, SSH & Web Terminal, Samba, TasmoAdmin, UniFi Controller, Visual Studio Code, WireGuard, Zigbee2mqtt, Z-Wave JS to MQTT
                    Integrations: AccuWeather, Alexa Media Player, Glances, Google Nest, HACS, HomeSeer, Insteon, IPP, Life360, Local IP, Logitech Harmony Hub, Mobile App, MQTT, My Garage, OpenWeather, Spotify, Tuya Local. Ubiquiti UniFi, Z-Wave JS
                    Insteon: 2413S Dual Band PLM
                    Zigbee: zzh! CC2652R Rev A
                    Z-Wave: RaZberry daughtercard on RPi 1B via ser2net

                    Comment


                      #11
                      Originally posted by david.i.tanzer@gmail.com View Post
                      Eman, thanks for your suggestions. I don't believe using myhs2.homeseer.com will work for Node-RED--I think it needs to talk directly to an IP. And the Raspberry Pi documentation is for installing it on a local device, in this case, of course, a Rapsberry Pi. In my case, I'm running it on an AWS EC2 box. As well, I'm using the HomeSeer-provided Node-RED node: https://flows.nodered.org/node/node-...ntrib-homeseer which I don't believe uses MQTT.

                      This is very cool, though. Changes to my HomeSeer devices immediately reflect in Node-RED flows, and the Node-RED sourced control of my HomeSeer network is very fast!
                      You could also have 2 or more (but 2 are enough in my case) instances of Node-RED (Local and the AWS EC2 box) Depending on what you are running, you can have the remote one enable when you are away from home but have the local one deal with the in-house automations (your ball)

                      I run 2 locally (one on ioBroker and the stand alone which also has an mqtt instance reason being I can't run the Node-RED NEEO nodes on the ioBroker instance and the same goes for the ioBroker Nodes, they come bandied with the server
                      • As for mqtt nodes, they add more juice to the mix , they add to the alchemy...


                      Eman.
                      TinkerLand : Life's Choices,"No One Size Fits All"

                      Comment


                        #12
                        Originally posted by Eman View Post

                        You could also have 2 or more (but 2 are enough in my case) instances of Node-RED (Local and the AWS EC2 box) Depending on what you are running, you can have the remote one enable when you are away from home but have the local one deal with the in-house automations (your ball)

                        I run 2 locally (one on ioBroker and the stand alone which also has an mqtt instance reason being I can't run the Node-RED NEEO nodes on the ioBroker instance and the same goes for the ioBroker Nodes, they come bandied with the server
                        • As for mqtt nodes, they add more juice to the mix , they add to the alchemy...


                        Eman.
                        Why would people like to life on the edge and and an additional point of failure?

                        ---
                        John

                        Comment


                          #13
                          Originally posted by John245 View Post

                          Why would people like to life on the edge and and an additional point of failure?

                          ---
                          John
                          Well,

                          What he didn't explain about is what he was using the AWS EC2 box for (Why not install Node-RED locally and avoid running it remotely)

                          Unless I missed something?... https://aws.amazon.com/ec2/instance-types/
                          • Now like you can see in the above posts everything diverted into security issues
                          • I explained myself, what I do with my 2 local instances...I guess that clears everything...

                          So if he is OK with his instance, all he has to deal with is this : https:// {the access address of your AWS Node-RED}:1880/homeseer/webhook

                          Eman.
                          TinkerLand : Life's Choices,"No One Size Fits All"

                          Comment

                          Working...
                          X