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

Philips Hue lights ON after homebridge restart #686

Open
ricou27 opened this issue Oct 3, 2024 · 2 comments
Open

Philips Hue lights ON after homebridge restart #686

ricou27 opened this issue Oct 3, 2024 · 2 comments

Comments

@ricou27
Copy link

ricou27 commented Oct 3, 2024

Hello,

When I reboot the server Homebridge, all my Philips Hue lights turn ON. (before the reboot, all my lights are OFF)

My JSON structure is like this for all my lights :
{
"type": "lightbulb",
"name": "My Light 1",
"url": "mqtt://192.168.0.2:1883",
"username": "mosquitto",
"password": "MyPassword",
"topics": {
"getOn": {
"topic": "zigbee2mqtt/light_1",
"apply": "return JSON.parse(message).state"
},
"setOn": {
"topic": "zigbee2mqtt/light_1/set",
"apply": "return JSON.stringify({state: String(message)})"
},
"getBrightness": {
"topic": "zigbee2mqtt/light_1",
"apply": "return Math.round(JSON.parse(message).brightness / 2.54)"
},
"setBrightness": {
"topic": "zigbee2mqtt/light_1/set",
"apply": "return JSON.stringify({brightness: String(Math.round(message * 2.54))})"
},
"setHSV": {
"topic": "zigbee2mqtt/light_1/set",
"apply": "return JSON.stringify({brightness: Math.round(message.substr(message.lastIndexOf(',')+1,message.length)* 2.55), color: {hue: message.substr(0,message.indexOf(',')), saturation: message.substr(message.indexOf(',')+1,(message.lastIndexOf(',')-message.indexOf(','))-1)}})"
}
},
"startPub": [
{
"topic": "zigbee2mqtt/light_1/set",
"message": {
"brightness": 0,
"state": "OFF"
}
}
],
"onValue": "ON",
"offValue": "OFF",
"accessory": "mqttthing"
}

I tried to use the "StartPub" but the problem still there.
What Can I Do ?

Thank you
Eric

@uronito
Copy link

uronito commented Dec 25, 2024

same problem here

#567

Its a Problem with hsv adaptative lighting

@ricou27
Copy link
Author

ricou27 commented Dec 30, 2024

Many thanks uronito, I will take a look on this solution

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

2 participants