Comments (8)
The issue is that the bluetooth can be a bit touchy, especially if you are on a raspberry pi.
Commenting to confirm that is indeed the case on a RPi Zero W. Multiple devices seem to be connecting and command seem to be getting sent but nothing happens on the device. Simple took it down to one device, and it works fine.
from homebridge-hatch-baby-rest.
You are correct that sleep/wake isn't really supported at the moment. The hard part is that HomeKit doesn't expose a good control for things like selecting from a list of sounds. I could expose the volume via a speaker, but you would have to use a third-party HomeKit app to control it because the standard Home app doesn't allow you to interact with speakers. Is your wake schedule completely based on time of day, or other triggers? If it's just based on time, I recommend using the official Rest app to set up that automation
from homebridge-hatch-baby-rest.
For my case, I think the ability to setup two configurations (accessories) for the same device mac address would be sufficient. Our nightly sleep/wake is automated with a simple schedule, but the nap schedule shifts around enough that we're usually just fumbling with the app to get both boys up at the same time. Ideally, I'd be able to create a shortcut for "Siri, wake up the boys" and it turns both wake accessories on.
Should setting up two accessories, a "sleep" and "wake" accessory for the same rest device, work? When I initially tested, it didn't work and I assumed it was mac address being used as a hash key or something so didn't try debugging very thoroughly -- but after a cursory look at the code, I don't see an obvious reason my two accessory config wouldn't work (thought, not familiar at all w/ homebridge plugin architecture).
Also, thanks for creating this plugin! In the worst case, I think I could create only the 'wake' accessory and simply tap device before bed/nap to turn on the sleep light/sound via a 'Favorite'. It's great to be able to add these devices to homekit and get everything under a single app umbrella.
from homebridge-hatch-baby-rest.
You should be able to add 2 accessories with the sam mac. The issue is that the bluetooth can be a bit touchy, especially if you are on a raspberry pi. I'd try that approach again and if it doesn't work, then may use programmed timers (in the hatch sleep app) for the sleep routine and homebridge for the wake routine.
from homebridge-hatch-baby-rest.
Can you clarify why this would be a bluetooth issue and not a plugin or homebridge issue? I can confirm having only one accessory works. So, something is definitely wrong with multiple accessories to a single device. I just think its odd the potential root cause being discussed is bluetooth.
If I'm hitting the on/off for a single accessory to set a particular configuration on the Rest, I would expect only a single connection and configuration sent to the device. Even if it sent all of them, I would expect one to win out.
When I have multiple accessories for a single device I get the below in the logs. Only a single connection message for the accessory I actually turned on. But, disconnections for all of them.
I'm new to homebridge development, is there are recommended place to perhaps get a quick answer on this one from their side on who this type of configuration should work in theory?
[1/8/2021, 8:02:18 PM] [Nursery Rest - Routine] Turning on
[1/8/2021, 8:02:18 PM] [Nursery Rest - Routine] Connecting to Rest...
[1/8/2021, 8:02:18 PM] [Nursery Rest - Routine] Connected to Rest
[1/8/2021, 8:02:23 PM] [Nursery Rest - Sleep] Disconnected from Rest
[1/8/2021, 8:02:23 PM] [Nursery Rest - Wake] Disconnected from Rest
[1/8/2021, 8:02:23 PM] [Nursery Rest - Routine] Disconnected from Rest
from homebridge-hatch-baby-rest.
@Jud v3.0.0 of the plugin will give you access to control color and sound from the Home app. See https://github.com/dgreif/homebridge-hatch-baby-rest/wiki/Upgrading-from-v2-to-v3 for details about the recent changes. This should eliminate the need for two separate lights in your config. When you update, the duplicate lights will automatically be removed from your config.
from homebridge-hatch-baby-rest.
Thanks @dgreif!
from homebridge-hatch-baby-rest.
@Jud if the update is working well for your needs, feel free to close this issue.
from homebridge-hatch-baby-rest.
Related Issues (20)
- Error connecting to API (403 Forbidden) HOT 2
- No Volume Control HOT 1
- Consider switching sound selector device type HOT 1
- Restore 2 Support HOT 14
- Only on/off switch appearing for Rest+ HOT 2
- Internal Server Error HOT 13
- Tapping on the Brightness Switch Does Not Set Brightness to 0
- Use Lightbulb instead of speaker to allow Homekit control HOT 1
- Rest+ Homekit Display HOT 1
- Only getting on/off on Rest Gen2 HOT 9
- I have had this pop up in and out again, I think the issue is if there is ANY interruption to the AWS back end a new token is issued. HOT 1
- Plugin crash after latest Rest updates HOT 3
- Ignore `alexa` device type
- 4.3.1 removes Hatch Rest+ Gen 1 and 2 devices HOT 5
- 4.3.2 Breaks Rest2 support HOT 4
- 4.3.1 and up Break Rest+ HOT 2
- Added to homekit but buttons do nothing (rest+ 2nd gen) HOT 2
- Issue installing on Synology DSM7 package, continues to fail HOT 2
- Command for touch ring favorites on Hatch Rest bluetooth? HOT 4
- Doesnt Show Devices - restoreIot HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-hatch-baby-rest.