Open Luftloch80 opened 5 years ago
Brightness is an optional Characteristic, you should add it to the "optionCharacteristic" parameter in the configuration. See the Readme file.
On Tue, 8 Jan 2019 at 10:14, Luftloch80 notifications@github.com wrote:
This Is mY config. But Light only Shows as on/off no brigthness slider and log also Shows no Mapping off brightness
{ "accessory": "HttpAdvancedAccessory", "service": "Lightbulb", "name": "Bedroom speaker", "forceRefreshDelay": 5, "debug" : true, "urls":{ "getOn":{ "url" : "http://192.168.0.8/web/powerstate", "mappers" : [ { "type": "xpath", "parameters": { "xpath": "//e2instandby[1]/text()", "index": "0" } }, { "type": "static", "parameters": { "mapping": { "false": 1, "true": 0 } } } ] }, "getBrightness":{ "url" : "http://192.168.0.8/web/vol", "mappers" : [ { "type": "xpath", "parameters": { "xpath": "//e2current/text()", "index": "1" } } ] },
"setOn":{ "url" : "http://192.168.0.8/web/powerstate?newstate=4" }, "setBrightness":{ "url" : "http://192.168.0.8/web/vol?set=" }
}
},
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/staromeste/homebridge-http-advanced-accessory/issues/7, or mute the thread https://github.com/notifications/unsubscribe-auth/AEL9MYm3ZPkLuOobkltbAZi-mZfRnUYvks5vBGFcgaJpZM4Z1DS0 .
Perfect. Is it also possible to set an off value. I want to integrate an Enigma Receiver and it Uses different values for off and on
This Is mY config. But Light only Shows as on/off no brigthness slider and log also Shows no Mapping off brightness
{ "accessory": "HttpAdvancedAccessory", "service": "Lightbulb", "name": "Bedroom speaker", "forceRefreshDelay": 5, "debug" : true, "urls":{ "getOn":{ "url" : "http://192.168.0.8/web/powerstate", "mappers" : [ { "type": "xpath", "parameters": { "xpath": "//e2instandby[1]/text()", "index": "0" } }, { "type": "static", "parameters": { "mapping": { "false": 1, "true": 0 } } } ] }, "getBrightness":{ "url" : "http://192.168.0.8/web/vol", "mappers" : [ { "type": "xpath", "parameters": { "xpath": "//e2current/text()", "index": "1" } } ] },
},