the1laz / cgateweb

MQTT interface for C-Bus written in Node.js
MIT License
21 stars 20 forks source link

Cgate web MQTT #11

Closed pete173 closed 5 years ago

pete173 commented 6 years ago

Hi cgate 2.11.1 ,cgateweb,MQTT and openhab2 all this are running on Rpi I am not able to send cbus commands to cgate form openhab. I have checked MQTT logs from MQTT.fx client. Openhab2 and MQTT are working fine.But cbus lights does not operate.

the1laz commented 6 years ago

Hi, are you seeing any mqtt messages when you turn your lights on/off from your wall switches? Have you checked the logs for cgateweb and cgate?

pete173 commented 6 years ago

No I didnt check the logs. How to check the logs of cgateweb? Is it possible to check without CNI or cbus installed? I just want to confirm wether mqtt , cgateweb and cgate are communicating.I dont have cbus setup right now.

pete173 commented 6 years ago

hi checkout this cgateweb status cgateweb status

messages of topics are displayed on cgateweb status as seen in image.

pete173 commented 6 years ago

hi I have checked the cgate stauts also please check the attachment cgate status

pete173 commented 6 years ago

I also checked from cbus keypad.It doesnt show on logs.

pete173 commented 6 years ago

Any ideas on what is happening?..

pete173 commented 6 years ago

Messages can be seen from mqtt client and cgateweb logs.Messages is not being sent from cgateweb to cgate.Event port and command port gets disconnected in cgateweb status.There is error in connecting cgate.

pete173 commented 6 years ago

need your help.

pete173 commented 5 years ago

[Unit] Description=cgateweb Wants=cgate.service After=network.target cgate.service

[Service] ExecStart=/usr/bin/node /usr/local/bin/cgateweb/index.js RestartSec=10 Restart=always User=root Group=root Environment=PATH=/usr/bin:/usr/local/bin Environment=NODE_ENV=production WorkingDirectory=/usr/local/bin/cgateweb

[Install] WantedBy=multi-user.target

made some changes in cgateweb.service.This solved my issue