Great! Homebridge works very stable and reliable now,
and the graphical UI for controlling the server is also very handy!
Thanks @makerken and @Moors7 for your fantastic guidance. I could not have done it without this great community...
Switching lights ON and OFF with Siri has no secrets for me anymore.
But now I'm trying to explore the communication possibilities in the other direction:
Reading sensors...
From the sample "config.json" file, I kept this "device":
Beyond me. I’ll have to checkout the GUI, looks like things have come a long way since I did it. I don’t have any experience with sensor types, just controlling on/off, and my sketch would have a state variable so I could cycle through light patterns.
I have a project upcoming that I want temperature/humidity readings from so I could be learning it.
Thanks for looking up your old sketch @makerken!
That’s clear, but what I really like to understand is: How does your device / accessory look in the config.json file for the Homebridge server to give you 2 variables?
And which device is visible in the Home App?
@Moors7: Do you use also these "Accessories" with the UI?
I tried to activate them by running Homebridge in -I (insecure) mode but no visible result yet...
That would be a solution also for my previous question to @makerken...
Homebridge just gives an on/off, the other dumb state logic is in my sketch. Toggle turns on/off, state controls which pattern is showing.
Start:
Toggle = 0 // off
State = 0 // pattern
First switch:
Toggle = 1 // on
State = 1
Second switch:
Toggle = 0 // off
State = 1
Third switch:
Toggle = 1 // on
State = 2
Keep following the logic, I’ve had three patterns, it only changes what pattern when I turn it on/off, no directly controlling which pattern. It only is ever controlling a single bool (int above makes it seem like more than it is, it should be bool). Haven’t looked at it in forever.
I think it depends on the relevant plug-in what the capabilities are. The Yeelights I have do report their status (when changed with something other than Homebridge). It’s all in the coding. Fortunately, you can make/edit plug-ins to your heart’s contempt, though that might not be the easiest thing to do, admittedly.
For your information: I have just discovered there is an update for the Particle plugin for homebridge: homebridge-particle-io v0.0.12, made by Norman Thomas:
GITHUB
It also seems to support Humidity sensors now…
I did not try it out yet, as my Home (with 10 Photons) runs perfectly with the older version…
If someone will try this, it would be great to read your experience here!
I could not find Norman Thomas here, but I’d like to thank him for his work!!!
Thanks you for your information. But my concern is that how can I use the plugins and accessories of Home bridge application. I am using it in one of my project like research paper writer page but unable to use those plugins. Looking for support.