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

No recation on Device #1

Open
KL-AU-S opened this issue Feb 7, 2019 · 5 comments
Open

No recation on Device #1

KL-AU-S opened this issue Feb 7, 2019 · 5 comments

Comments

@KL-AU-S
Copy link

KL-AU-S commented Feb 7, 2019

Hello, i installed this gateway and the mqtt packages will be delivered to and from the mqtt-server but on the device is no reaction.
You mentioned in the readme-file:

"You need to edit you bulb IPs in main.py (not yet fixed)."

I cannot find the place where i can do it.
Do you have any idea?

Kind regards Klaus

@monster1025
Copy link
Owner

monster1025 commented Feb 7, 2019

Hello.

I have already moved settings to config.yaml -> you must configure lamp ips there.

mqtt packages will be delivered to and from the mqtt-server but on the device is no reaction.

Do the MQTT state messages are delivered when you are turning lamp on-off from app (Xiaomi/yeelight)?

does you'r lamp topic is correct?
"home/{model}/{name}/status/set" and payload is "on" (or "off")?

for example if you have lamp state topic:
yeelight | INFO:mqtt:Publishing message to topic home/light/main-mono/status: off.

than you can run sample command:
mosquitto_pub -h 192.168.1.1 -u user -P pass -t "home/light/main-mono/status/set" -m "on"

@alexeinz
Copy link

yes, i can confirm, no reaction on the bulb
i tried and its actually updating the status, but the device light doesnt change

@alexeinz
Copy link

INFO:mqtt:Publishing message to topic yeelight/color2/Living2Led/ct: 2702.,
INFO:mqtt:Publishing message to topic yeelight/color2/Living2Led/rgb: 11974399.,
INFO:mqtt:Publishing message to topic yeelight/color2/Living2Led/status: on.,
INFO:mqtt:Publishing message to topic yeelight/color2/Living2Led/bright: 100.,
INFO:main:!!!! Bedroom2Led:100:2200:off:16750848->100:2200:on:16750848,
INFO:mqtt:Publishing message to topic yeelight/color2/Bedroom2Led/ct: 2200.,
INFO:mqtt:Publishing message to topic yeelight/color2/Bedroom2Led/rgb: 16750848.,
INFO:mqtt:Publishing message to topic yeelight/color2/Bedroom2Led/status: on.,
INFO:mqtt:Publishing message to topic yeelight/color2/Bedroom2Led/bright: 100.,
INFO:main:!!!! Bedroom1Led:100:2200:on:16750848->1:2200:off:16750848,
INFO:mqtt:Publishing message to topic yeelight/color2/Bedroom1Led/ct: 2200.,
INFO:mqtt:Publishing message to topic yeelight/color2/Bedroom1Led/rgb: 16750848.,
INFO:mqtt:Publishing message to topic yeelight/color2/Bedroom1Led/status: off.,
INFO:mqtt:Publishing message to topic yeelight/color2/Bedroom1Led/bright: 1.,
INFO:main:!!!! Bedroom2Led:100:2200:on:16750848->1:2200:off:16750848,
INFO:mqtt:Publishing message to topic yeelight/color2/Bedroom2Led/ct: 2200.,
INFO:mqtt:Publishing message to topic yeelight/color2/Bedroom2Led/rgb: 16750848.,
INFO:mqtt:Publishing message to topic yeelight/color2/Bedroom2Led/status: off.,
INFO:mqtt:Publishing message to topic yeelight/color2/Bedroom2Led/bright: 1.,
INFO:main:!!!! Living1Led:100:2200:on:16750848->1:2200:off:16750848,
INFO:mqtt:Publishing message to topic yeelight/color2/Living1Led/ct: 2200.,
INFO:mqtt:Publishing message to topic yeelight/color2/Living1Led/rgb: 16750848.,
INFO:mqtt:Publishing message to topic yeelight/color2/Living1Led/status: off.,
INFO:mqtt:Publishing message to topic yeelight/color2/Living1Led/bright: 1.,
INFO:main:!!!! Living2Led:100:2702:on:11974399->1:2702:off:11974399,
INFO:mqtt:Publishing message to topic yeelight/color2/Living2Led/ct: 2702.,
INFO:mqtt:Publishing message to topic yeelight/color2/Living2Led/rgb: 11974399.,
INFO:mqtt:Publishing message to topic yeelight/color2/Living2Led/status: off.,
INFO:mqtt:Publishing message to topic yeelight/color2/Living2Led/bright: 1.,
INFO:main:!!!! Living1Led:1:2200:off:16750848->100:2200:on:16750848,
INFO:mqtt:Publishing message to topic yeelight/color2/Living1Led/ct: 2200.,
INFO:mqtt:Publishing message to topic yeelight/color2/Living1Led/rgb: 16750848.,
INFO:mqtt:Publishing message to topic yeelight/color2/Living1Led/status: on.,
INFO:mqtt:Publishing message to topic yeelight/color2/Living1Led/bright: 100.,
INFO:main:!!!! Living2Led:1:2702:off:11974399->100:2702:on:11974399,
INFO:mqtt:Publishing message to topic yeelight/color2/Living2Led/ct: 2702.,
INFO:mqtt:Publishing message to topic yeelight/color2/Living2Led/rgb: 11974399.,
INFO:mqtt:Publishing message to topic yeelight/color2/Living2Led/status: on.,
INFO:mqtt:Publishing message to topic yeelight/color2/Living2Led/bright: 100.,
INFO:main:!!!! Kitchen2Led:100:2700:on:->100:2700:off:,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen2Led/ct: 2700.,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen2Led/rgb: .,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen2Led/status: off.,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen2Led/bright: 100.,
INFO:main:!!!! Kitchen1Led:100:2700:on:->100:2700:off:,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/ct: 2700.,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/rgb: .,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/status: off.,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/bright: 100.,
INFO:main:!!!! Kitchen2Led:100:2700:off:->100:2700:on:,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen2Led/ct: 2700.,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen2Led/rgb: .,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen2Led/status: on.,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen2Led/bright: 100.,
INFO:main:!!!! Kitchen1Led:100:2700:off:->100:2700:on:,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/ct: 2700.,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/rgb: .,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/status: on.,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/bright: 100.,
INFO:main:Loading config file...,
INFO:main:Init mqtt client.,
INFO:mqtt:Connecting to MQTT server openhab:1883 with username (:),
INFO:mqtt:Starting mqtt loop.,
INFO:mqtt:Subscibing to yeelight/light/+/+/set.,
INFO:mqtt:Connected to mqtt server.,
INFO:main:Loading config file...,
INFO:main:Init mqtt client.,
INFO:mqtt:Connecting to MQTT server openhab:1883 with username (:),
INFO:mqtt:Starting mqtt loop.,
INFO:mqtt:Subscibing to yeelight/light/+/+/set.,
INFO:mqtt:Connected to mqtt server.,
INFO:main:!!!! Kitchen1Led:100:2700:on:->100:2700:off:,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/bright: 100.,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/rgb: .,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/ct: 2700.,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/status: off.,
INFO:main:!!!! Kitchen1Led:100:2700:off:->100:2700:on:,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/bright: 100.,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/rgb: .,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/ct: 2700.,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/status: on.,
INFO:main:!!!! Kitchen1Led:100:2700:on:->100:2700:off:,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/bright: 100.,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/rgb: .,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/ct: 2700.,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/status: off.,
INFO:main:!!!! Kitchen1Led:100:2700:off:->100:2700:on:,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/bright: 100.,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/rgb: .,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/ct: 2700.,
INFO:mqtt:Publishing message to topic yeelight/light/Kitchen1Led/status: on.,
INFO:mqtt:Processing message in yeelight/light/Kitchen1Led/status/set: b'off'.,
INFO:mqtt:Processing message in yeelight/light/Kitchen1Led/status/set: b'off'.,
INFO:mqtt:Processing message in yeelight/light/Kitchen1Led/status/set: b'on'.,
INFO:mqtt:Processing message in yeelight/light/Kitchen1Led/status/set: b'ON'.,
INFO:mqtt:Processing message in yeelight/light/Kitchen1Led/status/set: b'OFF'.,
INFO:mqtt:Processing message in yeelight/light/Kitchen1Led/status/set: b'OFF'.,
INFO:mqtt:Processing message in yeelight/light/Kitchen1Led/status/set: b'OFF'.,
INFO:mqtt:Processing message in yeelight/light/Kitchen1Led/status/set: b'on'.,
INFO:mqtt:Processing message in yeelight/light/Kitchen1Led/status/set: b'off'.,

@alexeinz
Copy link

i wonder whats that b there

@lunarok
Copy link

lunarok commented Sep 20, 2021

@alexeinz did you solve your issue ? I have exactly the same. I try with different mqtt client, still same.

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

No branches or pull requests

4 participants