Closed NovaGL closed 7 years ago
wiser.js
is independent of homebridge, so you should be able to work from that. You can create an instance of Wiser
and then call start
on that instance. It will emit a discovery complete event once the wiser project has been parsed. You can then access the wiserGroups
property to get the C-Bus groups. You can set a group's level and a group will emit a level change event when it's level changes.
Thanks. What information do I need from the tech to access wiser project
You just need the same parameters that are in the homebridge config file; the wiser address, port, username and password.
Also, note that I have only tried this code on an original wiser. I don't know if it works on the new Wiser 2; if you have one I would be interested to see
Great. Will let you know how I go.
Got it working with homebridge. So that works fine.
How would I go about passing a command say turn off kitchen lights without homebridge.
The wiserGroups
property of your Wiser
object is a dictionary of WiserGroup
objects. The key is the C-Bus group address. You need to find the group address of the kitchen light and then use that to get the appropriate WiserGroup
object. You can then pass this group to the setGroupLevel
function of Wiser
to set the group level. You could also build some other dictionary of wiserGroup
objects, say by name
.
Are you using an original Wiser or a Wiser 2? It would be good to know if it works with the Wiser 2.
Thanks so much but this is a bit beyond me. If it is not too much trouble could you give me a full example without personal information.
I am using the Wiser 2. It seems to crash sometimes but might just be me overloading it. Thats why I wanted to try it with just one switch.
Going to use node-cbus instead thanks anyway
Hi,
Just wondering if you would make something similar that would work without homebridge.
Say just a node.js project. I just want something I can use with Alexa.
Any help would be great.