Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. control relay through the ethernet gateway by curl / bash ?

control relay through the ethernet gateway by curl / bash ?

Scheduled Pinned Locked Moved Troubleshooting
7 Posts 4 Posters 2.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kr0815
    wrote on last edited by
    #1

    I want to control a relaysensor directly through a bashscript.
    (for example with curl, but could also be python, php, whatever)

    The sense in it is, i have a server, running FHEM, i control various mysensor nodes through it.

    Sometimes, this server crashes, so i have to unplug power to reboot it.

    My idea is, as i have other servers running 24/7 (raspberry with debian), to be able to control that single relay actuator remotely to reboot the server..
    Is there any easy way to do that, or do i need a second gateway just for that purpose ?

    Best regards

    Klaus

    1 Reply Last reply
    0
    • hekH Offline
      hekH Offline
      hek
      Admin
      wrote on last edited by
      #2

      Not sure how the GW reacts if you have two separate connection open to it. You'll probably have to play with it to see what happens.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kr0815
        wrote on last edited by
        #3

        this was also my concern, i have to confess i don´t know what is sent between the gateway and the server

        Is there an easy solution to try ?

        1 Reply Last reply
        0
        • hekH Offline
          hekH Offline
          hek
          Admin
          wrote on last edited by
          #4

          Why don't you put up a MQTT broker (if you don't already have one) and let your RPI subscribe to some topic.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            TimO
            Hero Member
            wrote on last edited by
            #5

            You could hook a simple relay board to the GPIOs of the RPi and control them with a script. In case you don't have to do this over air.

            1 Reply Last reply
            0
            • K Offline
              K Offline
              kr0815
              wrote on last edited by
              #6

              The raspberry is far away, connected only be network

              I was thinking about a solution with a arduino mini, a network shield and a relay, looks like this is the way i also gonna go now, but had the hope that it would be totally easy to send a already existing mysensors node a simple command

              1 Reply Last reply
              0
              • D Offline
                D Offline
                Dirk_H
                Contest Winner
                wrote on last edited by
                #7

                It is relatively easy to send a command to an existing node (you can do this via serial monitor and a gateway node or even with any other mysensors node). But you did not write the setup of your system. Who will send the command (the fhem gw node)? which node will receive (another node especially for controlling the relais)? I did not get who shall do what with which ressources..

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                18

                Online

                11.7k

                Users

                11.2k

                Topics

                113.1k

                Posts


                Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • MySensors
                • OpenHardware.io
                • Categories
                • Recent
                • Tags
                • Popular