gcgarner / IOTstack

docker stack for getting started on IOT on the Raspberry PI
GNU General Public License v3.0
1.51k stars 582 forks source link

Zigbee2MQTT cannot start service #66

Open fssantos95 opened 5 years ago

fssantos95 commented 5 years ago

I got and error:

ERROR: for zigbee2mqtt Cannot start service zigbee2mqtt: b'error gathering device information while adding custom device "/dev/ttyACM0": no such file or directory

Any help?

gcgarner commented 5 years ago

Run ls /dev/ttyA* on your terminal on the pi

I think the device should be "/dev/AMA0" you will need to change that in your docker-compose.yml file

simonlock commented 5 years ago

Hi, Graham, would it be possible to add this fix into the standard image for ~/IOTstack/services/zigbee2mqtt/ service.yml?

gcgarner commented 5 years ago

I need to push some changes tomorrow, I'll add that in as well

On Mon, 18 Nov 2019, 21:40 simonlock, notifications@github.com wrote:

Hi, Graham, would it be possible to add this fix into the standard image for ~/IOTstack/services/zigbee2mqtt/ service.yml?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gcgarner/IOTstack/issues/66?email_source=notifications&email_token=ALECSYNQ7D3UIERRPOYVJRLQULVUBA5CNFSM4JMKHUW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEELVEBA#issuecomment-555176452, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALECSYKIBFMULDVEIBR6DYDQULVUBANCNFSM4JMKHUWQ .

simonlock commented 5 years ago

Excellent thank you, Graham.

gcgarner commented 4 years ago

@simonlock i based the device on ttyACM0 based on feedback on another issue. could you confirm if ttyAMA0 works for you.

There may be a difference in how different devices are mapped on the pi, either as a usb or a serial interface

simonlock commented 4 years ago

Hi Graham

I can confirm that ttyAMA0 works for me on a raspberry Pi.

Regards

Simon

Sent from my iPhone

On 19 Nov 2019, at 06:13, Graham Garner notifications@github.com wrote:

 @simonlock i based the device on ttyACM0 based on feedback on another issue. could you confirm if ttyAMA0 works for you.

There may be a difference in how different devices are mapped on the pi, either as a usb or a serial interface

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

simonlock commented 4 years ago

Hi Graham Did you revert the change? I updated to the latest IoTStack and had to manually re-make the following change: devices:

gcgarner commented 4 years ago

Hi Simon

Sorry I thought i changed it, I'll add it today. It's still

 devices:
      - /dev/ttyACM0:/dev/ttyACM0

I'll change it to

 devices:
      - /dev/ttyAMA0:/dev/ttyACM0
      #- /dev/ttyACM0:/dev/ttyACM0

I think that depending on which device you have it can either be presented as a usb interface or as a serial. Will add both options and the you can choose use which ever one works

simonlock commented 4 years ago

Excellent thank you, Graham.

gcgarner commented 4 years ago

I pushed a change for it this morning

On Wed, 11 Dec 2019, 22:38 simonlock, notifications@github.com wrote:

Excellent thank you, Graham.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gcgarner/IOTstack/issues/66?email_source=notifications&email_token=ALECSYKGCBX4QJ73FC4PVSTQYFFVXA5CNFSM4JMKHUW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGUPXWI#issuecomment-564722649, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALECSYOW5WEYDCJZYW7CNJLQYFFVXANCNFSM4JMKHUWQ .