Comments (13)
For reference I had experimented with this late last year. Unfortunately I redid my homebridge config a few months ago so and the changes got overwritten. From my memory
-
Edit api.ts to match the name that the hatch API responded with (restoreIot)
-
Modify iot-device.ts to output the MQTT messages sent to console, text file, etc. Should be in the mqttClient.on('foreignStateChange', (topic, message, s) function.
-
Turn restore on and off using the app to show activity on the mqtt broker.
There may have been one or two items I had to comment out but I can't remember them. When I started to mess with the data structure and send my own commands to the broker I think I locked the restore and it severely limited its functionality (alarms weren't going off, couldn't edit wake times or routines, etc.) so beware of that. Had to reach out to customer support to get the hard reset process. Again, sorry I can't provide a PR but hope this helps.
from homebridge-hatch-baby-rest.
okay i think i got basic restoreIot
ON/OFF support working: pull request
it's quick & dirty - seems like there's heavy overlap between RestIot
and RestoreIot
- we could probably reuse more logic between the two
but let me know if you're interested in trying to merge this in (and if so, i'm happy to do a little cleanup - just drop comments)
from homebridge-hatch-baby-rest.
I have the Hatch Restore 2 so no idea why it's showing as restoreV4
. Maybe some internal designation? 🤷♂️
When I was on an older version of the plugin (v4.0.1
) I saw restoreIot
in the logs in addition to restoreV4
.
[04/02/2024, 21:22:281 [HatchBabyRest] Unsupported Product Found: alexa
[04/02/2024, 21:22:281 [HatchBabyRest] Unsupported Product Found: restoreV4
[04/02/2024, 21:22:281 [HatchBabyRest] Unsupported Product Found: restorelot
[04/02/2024, 21:22:281 [HatchBabyRest] Configuring 0 Restt, 0 Rest Mini, 0 Rest 2nd Gen, 0 Rest 2nd Gen, and 0 Restore
Just to be clear, I only have one device. Really curious if v4.2.0
works for either @knaueranthony or @bpro and, if so, which Hatch device they have.
from homebridge-hatch-baby-rest.
I have been on travel for work this week but I just pulled down latest version and tested on restoreIot, worked on my end. Thanks @dgreif and @bpro!
from homebridge-hatch-baby-rest.
Looks like you have a restoreIot
, which is a newer version of the Restore. In #74, this device type didn't appear to match the data structure of the original restore. I'll need to update the code to allow it again, but I don't have a good example of the data structure yet.
For transparency, this is a pretty low priority for me. I'm not sure when I'll get to it, but PRs are welcome if anyone has a restoreIot
and is able to update the plugin to handle it.
from homebridge-hatch-baby-rest.
Thanks for taking the time to answer this. I also have a rest too which isn’t connecting either. It’s not even showing. Appreciate all the help and have a blessed day.
from homebridge-hatch-baby-rest.
Is the Rest the bluetooth version or wifi? If bluetooth, you will need to install the homebridge-hatch-rest-bluetooth plugin and configure it separately
from homebridge-hatch-baby-rest.
@dgreif if you point me in the right direction I can try to get you an example of the restoreIot
data structure. Is there an easy way to capture that?
from homebridge-hatch-baby-rest.
hi friends!
i recently picked up a restoreIot
device and did the work to intercept the MQTT messages: [PR on fork for visibility]
i then intercepted messages for turning on the first step in my sleep routine: routine_step_1.log
and intercepted messages for turning the restore back off: off.log
(note: my code also prints out the currentState
- i know this is probably less useful for you, but it was educational for me)
from homebridge-hatch-baby-rest.
I just released v4.2.0
which should work with the restoreIot
. Huge thanks to @bpro for investigating and opening the initial PR. It looks like this device uses a setup very similar to the restIot
, so I just merged everything into that setup. @knaueranthony @mpatfield @bpro let me know if you have a chance to upgrade it give it a try!
Note: this device uses complex routines, so you will only receive a single on/off toggle. When turned on, it will activate the first routine on the device (first thing that runs when you touch the button on the Restore)
from homebridge-hatch-baby-rest.
+1 thanks @bpro for working on this!
And thanks @dgreif for the merge/release. I know this isn't a high priority for you, but it's really appreciated.
Unfortunately, it still doesn't seem to be working for me in v4.2.0
[05/02/2024, 13:14:46] [HatchBabyRest] Unsupported Product Found: alexa
[05/02/2024, 13:14:46] [HatchBabyRest] Unsupported Product Found: restoreV4
[05/02/2024, 13:14:46] [HatchBabyRest] Configuring Hatch Devices:
[05/02/2024, 13:14:46] [HatchBabyRest] No supported devices found
Not sure if this is something specific to my setup so I can wait for the others to try it.
In the meantime, let me know if there's any additional info I can provide to help debug. I'm not fluent in TypeScript or HB plugin development, but I do have a technical background so I can probably grab whatever info you need with a bit of handholding.
from homebridge-hatch-baby-rest.
Thanks for the update @mpatfield! Looks like your device is the restoreV4
, while others in this thread are seeing the restoreIot
. I'm honestly not sure what the difference is since I only see the Restore 2
on Hatch's website. Whats the name of the model/product you have?
from homebridge-hatch-baby-rest.
@mpatfield let's move the discussion about restoreV4
over to #104. @knaueranthony @bpro I'm still interested to hear if the latest version works with your restoreIot
device 🤞
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
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.