I’ve done a lot of looking around, and I can’t find instructions on how to create a pull request after adding a device. Can anyone point me in the right direction?
@Koenkk has put together a page that describes the process here:
I used it recently to add an LED bulb. It does assume a little knowledge of using GIT (which I didn’t have, but managed to work it all out).
I should have documented my experience, but I was just thankful that it all worked! I forked the development branch modified that and created a pull request. I had to follow about 4 different GIT guides because as I said my GIT knowledge is very much newbie level.
But I was successful and I did see my submission in the latest Z2M version.
If you need any more info I’ll see if I can find the guides I used and put together a step by step.
I managed to stumble through it, with a few question marks:
Fork this repository:
Clone it to your local machine.
Create a branch to work in.
Make your changes to devices.js
Add and commit your changes with “git add .”
You should now see the files you changed with “git status”
Now commit your changes with a note, like so:
git commit -m “Added Sinope TH1300ZB as new device”
Then push your changes:
git push origin sinopeTH1300ZB
This is where things broke down for me a bit as a complete git novice. There will be a message in the commit log on your console, giving you a URL. Copy/Paste that into your browser and you’ll find the pull request process:
remote: Create a pull request for ‘sinopeTH1300ZB’ on GitHub by visiting:
I had assumed that I would be able to see the branch I just pushed to my git account, but couldn’t find a way other than this to see it. I’m sure it’s a knowledge gap on my part.