Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8041

Advanced users • Alexa .... Alexa ... ALEXA!!

$
0
0
Hi All,

Been a while since I posted here, but boy am I struggling at the moment. Some years ago I built a pi 3b with a version of fauxmo and LIRC to allow me to control my electric bed via IR. It took a while to get going, but it's been working and stable for at least five years. Unfortunately my ageing pi died last week and I've been forced to dig out another pi 3b that I had stashed and rebuild it. No small task given it's relatively unusual use case.

I've installed the latest Raspberry Pi OS and pulled the latest version of fauxmo and the newest version of LIRC. Spent a while making sure everything was up-to-date and installed correctly and rebuilt my configs. LIRC was not much of a problem once I'd revisited a few gotchas and I had to re-generate the codes to control my electric bed from the original remote. Fauxmo is being more of a problem. I have it installed and configured and Alexa now sees the devices I have created for the various bed functions ... head up, feet up, light on etc.. From the command line it all works fine .... but here's the thing!!

If I put a binary command in the config.json file related to an Alexa command it works perfectly.

If I put a script in the config.json file related to an Alexa command it will not run it! I get the confirmation sound from Alexa but nothing runs.

I've been working on this for over a week now and tried everything I can think of. I even managed to find an old config.json file from a backup and tried that with the new setup, but it experiences the same issue.

I guess it's a bit of a long shot that many other people have a similar setup, but if anyone can point me in the right direction on how to fix this I'd be really grateful. At present I can successfully use Alexa to switch on my bedside light as it can work with a single binary command ("irsend send_once jbed light"). I need to use a script for putting the bed up and down as it utilises a press and hold on the remote to activate the bed movement, and this is achieved with a send_start and send_stop type of command. Previously I had these commands in a script, but of course now this does not work ... the only thing that works is if you have a single binary command in the config.json.

Help!!

Statistics: Posted by ripface — Mon Apr 28, 2025 7:43 pm



Viewing all articles
Browse latest Browse all 8041

Trending Articles