We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
The text was updated successfully, but these errors were encountered:
same problem here
#567
Its a Problem with hsv adaptative lighting
Sorry, something went wrong.
Many thanks uronito, I will take a look on this solution
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: