Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix createClient deprecated and #23 #31

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

rbswift
Copy link

@rbswift rbswift commented Jul 5, 2022

createClient deprecated. thanks @CraigD80

see #30

@rbswift
Copy link
Author

rbswift commented Jul 10, 2022

have you added this line?

const mqttOptions={ clientId:'mqtt-cgate', username: settings.mqttusername, password: settings.mqttpassword, clean:true};

@rbswift
Copy link
Author

rbswift commented Jul 10, 2022

you need to add that line too before you do call mqtt.connect

@rbswift rbswift changed the title fix createClient deprecated fix createClient deprecated and #23 Jul 10, 2022
@bdnstn
Copy link

bdnstn commented Jul 10, 2022 via email

@CraigD80
Copy link

CraigD80 commented Jul 10, 2022 via email

@bdnstn
Copy link

bdnstn commented Jul 10, 2022 via email

@rbswift
Copy link
Author

rbswift commented Jul 10, 2022

I wish I had a debugger I could get in with to see the actual messages.

Try adding console.log('whatever you want') lines to debug messages that are causing problems.

I'm only just getting started with this project, haven't installed my c-bus gear yet and so far only have relays. If anyone wants to send me a dimmer I'll happily get it working :)

@bdnstn
Copy link

bdnstn commented Jul 15, 2022

So, just to close this out, I have the system working, with some help from @the1laz . Ultimatly, the issue was that my c-bus project was not getting opened because the C-GateConfig.txt (which was generated by CGate in the first place), had an "xml" extension on the filename for my project.
C-GateConfig.txt # Before and after

project.default=XXXXX.xml
project.start=XXXXX.xml

(above) fails, but this (below) works:

project.default=XXXXX
project.start=XXXXX

The actual project file on disk is XXXXX.xml.

@CraigD80
Copy link

CraigD80 commented Oct 11, 2022 via email

@bdnstn
Copy link

bdnstn commented Oct 11, 2022

Hi Craig,

yes, it's all working perfectly now. See my post from 15 July above. My issue related to cgate config file.

It's working fine and I've now made a HA add-on for the whole package.

Brian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants