1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RPi + Other Software Enabling lights from external devices

Discussion in 'Software Support' started by Darryl Mooreho, 8 February 2021.

  1. Darryl Mooreho

    Darryl Mooreho New Member

    Messages:
    2
    Hardware:
    RPi3
    Has anyone come up with a nice solution for enabling and disabling their lights without killing the power to the whole lot.
    Ideally I'd like to be able to do it with a push button or http/ip command.

    I have been looking all weekend and can't find anything to help me on this.
     
  2. davieboy

    davieboy Active Member

    Messages:
    242
    Hardware:
    RPi1/Zero, RPi2, RPi3, RPi4
    did you do a forum search, lots of posts for home assistant, scripts, relays and switches, the crudest easiest way i came up with was a bash script that disabled the LEDDEVICE when screensaver activated, just depends on your setup really and how you want it to work.
     
  3. Biocas

    Biocas New Member

    Messages:
    2
    Hardware:
    RPi4
    I use a program called SSH button on an android phone. As long as the phone is on the same wifi as the server, you just need to create the command to send and then click it. I have commands setup to do all kinds of things to the server without ever having to open a computer. Led turn on and off, Smoothing on and off, Blackbar detection on and off, Reboot of Hyperion, and the complete shutdown of the Pi.
     

    Attached Files:

    • Like Like x 1
  4. Darryl Mooreho

    Darryl Mooreho New Member

    Messages:
    2
    Hardware:
    RPi3
    Thanks for the replies guys and gals. I'm looking at controlling it from Control4 which means it needs to be ideally 232 or HTTP.
     
  5. jeroen warmerdam

    jeroen warmerdam Raspberry 3B / APA102 / Hyperion.NG relaisbox

    Messages:
    619
    Hardware:
    RPi3
    thats really nice, do you have those commands that we need to execute in Hyperion.Ng ?
    i like the option to just turn something ON/OFF in SSH instead on WebUI

    i made it before with Raspberry SSH lite app but only 2 buttons were allowed without a membership/purchase.
     
  6. Biocas

    Biocas New Member

    Messages:
    2
    Hardware:
    RPi4
    Here are my commands in my SSH for the buttons I have.
    Led Off: hyperion-remote --disable LEDDEVICE
    Led On: hyperion-remote --enable LEDDEVICE
    Smoothing Off: hyperion-remote --disable SMOOTHING
    Smoothing On: hyperion-remote --enable SMOOTHING
    Black Bar Detection Disable: hyperion-remote --disable BLACKBOARDER
    Black Bar Detection Enable: hyperion-remote --enable BLACKBOARDER
    Hyperion Off: sudo systemctl stop hyperion.service
    Hyperion On: sudo systemctl start hyperion.service
    Pi Reboot\Hyperion Reboot: sudo reboot
    Pi SHutdown\Hyperion Shutdown: sudo shutdown -h now
     
  7. NeeeeB

    NeeeeB Active Member

    Messages:
    251
    Hardware:
    RPi3, +Arduino, +nodeMCU/ESP8266
    have a look here, you'll find everything you need:
    https://docs.hyperion-project.org/en/json/
     
    • Agree Agree x 1