alexa-pi / AlexaPi

Alexa client for all your devices! # No active development. PRs welcome # consider https://github.com/respeaker/avs instead
MIT License
1.33k stars 396 forks source link

Playback and recording LED not working/reacting thru GPIO #421

Open alamodein opened 6 years ago

alamodein commented 6 years ago

Thank you for reporting an issue with AlexaPi.

Make sure you are running the latest version of AlexaPi, and look through issues before submitting.

Check out our Wiki, and make sure to look at Debugging, and Audio debugging in particular before filing an issue.

In order to help troubleshooting, be sure to include the following information:

Output of the audio debugging script.

Your OS (including version) where you are running AlexaPi: Raspbian Strech Linux raspberrypi 4.14.70-v7+

Your hardware platform and model you are running on: Raspberry Pi 3B+

Python release (python2 --version): Python 2.7.13

Description of problem: Please help on issue with GPIO, AlexaPi doesnt activate GPIO 24 or 25 for Playback or record feedback, I dont see LED coming ON. LED is working fine on GPIO 24 or 25 if I use a small python script to turn LED ON and OFF, However thru AlexaPi is not reacting for Playback or Recording. I have verified on config.yaml, GPIO PINS are 24 and 25 for Playback and Recording. Checked changing the GPIO PIN number too. Am I missing something?

Expected: LED to reach for Playback and Recording

Problem-relevant config.yaml entries: platforms:

common config for all platforms (if they support the options)

can be overriden in the the respective platform sections

common:

chip:

GPIO Pin with button connected

button: XIO-P1
# GPIO Pin for the playback/activity light
plb_light: XIO-P3
# GPIO Pin for the recording light
rec_light: XIO-P5

raspberrypi:

GPIO Pin with button connected

button: 18
# GPIO Pin for the playback/activity light
plb_light: 24
# GPIO Pin for the recording light
rec_light: 25
alamodein commented 6 years ago

I have a update. I found the cause of the issue. As its on MagicMirror, I set the Platform as magicmirror. When I changed to raspberrypi, LED start working

Could someone help if to figure out to use both MMM-AlexaPi and LEDs

Konderi commented 5 years ago

I'm having this same issue. Any news for how to get this working with MagicMirror, AlexaPi and LEDs?

EmerickH commented 5 years ago

Hello, Totally don't know if it's going to work but try replacing this line: https://github.com/alexa-pi/AlexaPi/blob/83f71d458dc832cac0f9b0d3807d6d2359d52c8e/src/alexapi/device_platforms/magicmirrorplatform.py#L25 With:

class MagicmirrorPlatform(RaspberrypiPlatform): 

Or

class MagicmirrorPlatform(RPiLikePlatform): 

(and use magicmirror platform)

chimeranzl commented 5 years ago

I have the same issue here. MagicMirror/AlexaPi on RPi3, have platform set as "magicmirror" (can't change to raspberrypi, coz it breaks AlexaPi) so can't get the LEDs to light up when I talk to Alexa. I have confirmed by Python script that GPIO25 does light up the LEDs.

Any ideas?