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

I integrated with home assistant through MQTT #14

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM golang:latest

WORKDIR /app

COPY . .
COPY server/assets/ assets

RUN go install ./...
RUN go build -o cbyge-server ./server
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
All credit to unixpickle for this reverse engineered implementation.
My additions were mainly to allow the server to receive a POST with a payload that can be sent from a HomeAssistant installation.

# cbyge

For this project, I reverse engineered the "C by GE" app for controlling GE WiFi-connected smart lightbulbs. To do this, I started by decompiling the Android app, and then reverse engineered the binary protocol that the app uses to talk to a server. For more details, see [Reverse Engineering C by GE](#reverse-engineering-c-by-ge).
Expand Down
9 changes: 9 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
services:
cbyge-service:
build:
context: .
dockerfile: Dockerfile
container_name: cbyge-service
command: ["./cbyge-server", "-email", "${USERNAME}", "-password", "${PASSWORD}", "-no-auth"]
ports:
- 32179:8080
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/unixpickle/cbyge
module github.com/robaston9/cbyge

go 1.14

Expand Down
2 changes: 1 addition & 1 deletion login_2fa/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"os"
"strings"

"github.com/unixpickle/cbyge"
"github.com/robaston9/cbyge"
"github.com/unixpickle/essentials"
)

Expand Down
2 changes: 1 addition & 1 deletion proxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strings"
"sync"

"github.com/unixpickle/cbyge"
"github.com/robaston9/cbyge"
"github.com/unixpickle/essentials"
)

Expand Down
Loading