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

RPi + OSMC Alexa and NAS

Discussion in 'Software Support' started by Claudio Branco, 7 May 2020.

  1. Claudio Branco

    Claudio Branco Cranco

    Messages:
    80
    Hardware:
    RPi3
    Greetings

    How can I use Alexa to start / stop the Hyperion service?

    Would it be possible to run a NAS service on the same PI simultaneously?

    Any help would be appreciated been struglin
     
  2. Claudio Branco

    Claudio Branco Cranco

    Messages:
    80
    Hardware:
    RPi3
    I currently have my pi running Hyperion plugged to a smart socket
    So I can actually start stop Hyperion on command through Alexa , but through a power cycle. If a attach an HDD to it for NAS purposes the power cycles could ruin my disks. Like this I would be able to power cycle pi and then start or stop the service with having to worry about power cycles ruining 8TB
     
  3. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,574
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    you can write a script that listens for your alexa command, and toggles that script to turn on/off hyperion...but dont know how, we dont have an alexa support yet
     
  4. Claudio Branco

    Claudio Branco Cranco

    Messages:
    80
    Hardware:
    RPi3
  5. Claudio Branco

    Claudio Branco Cranco

    Messages:
    80
    Hardware:
    RPi3
    Correct me if I'm wrong

    My understanding is that I use home assistant

    Ha bridge to simulate the Hyperion as a hue light for Alexa to control ?
    Am I looking at it wrong ?
     
  6. milhouse

    milhouse New Member

    Messages:
    27
    Hardware:
    RPi3
    What I did...
    set up a virtual switch in smartthings
    make that virtual switch available to alexa - should be able to turn on/off the switch
    set up a python script that basically creates a web server that passes commands to the pi.
    https://hyperion-project.org/threads/control-hyperion-through-a-small-web-server.3022/

    use webcore to make a web call when the virtual switch changes

    If you are using smartthings/webcore already it's a small effort. If you are using HA you probably also have a rules engine in place.
     
  7. Claudio Branco

    Claudio Branco Cranco

    Messages:
    80
    Hardware:
    RPi3
    Thank you for your reply!

    What a mission :/

    I currently voice control the smart plug via Alexa . But this does a power on / off at source (power cycle) should I be worried that a cold turkey shut down could damage compenents in the long run? It's been like this for almost a year and it's ok

    Because like that just easier to get another pie for the NAS . Would get a 4 for the NAS and keep the 3 for Hyperion.

    Im just most concerned for the power issue
     
  8. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,574
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    or you use wled in between and toggle the leds on and of with alexa
     
  9. Claudio Branco

    Claudio Branco Cranco

    Messages:
    80
    Hardware:
    RPi3
    Hmm could you explain further please ? Wled?
     
  10. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,574
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    https://github.com/Aircoookie/WLED

    you can use and esp8266 board to controll your leds, it is compatible with hyperion + has a alexa hue simulation option, where you can use alexa to turn on and off the leds

    or the method with milhouse explained is also good to go
    but i have no tutorial or help, you have to search for it
     
  11. Claudio Branco

    Claudio Branco Cranco

    Messages:
    80
    Hardware:
    RPi3
  12. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,574
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    look on amazon for a wemos d1 mini
     
  13. Claudio Branco

    Claudio Branco Cranco

    Messages:
    80
    Hardware:
    RPi3
  14. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,574
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    Nope, try it without, if it doesnt work, you can add a level shifter too
     
  15. Claudio Branco

    Claudio Branco Cranco

    Messages:
    80
    Hardware:
    RPi3
    Thanks again

    I currently have a level shifter installed. So you think I should remove it add the ESP and see if it works of not add the level shifter again ? In the same position?
     
  16. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,574
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    if you already have one, just add it to the esp, then you are on the safe side!
     
  17. Claudio Branco

    Claudio Branco Cranco

    Messages:
    80
    Hardware:
    RPi3
    So connection would be

    Pi - esp - level shift
    Or
    Pi - level shift- esp (power maybe?)
     
  18. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,574
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    the esp has wifi, so you dont connect the esp to the pi...
    pi-> wifi --> esp->levelshift