Giter VIP home page Giter VIP logo

Comments (13)

evbarnett5 avatar evbarnett5 commented on May 27, 2024 1

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

  1. Edit api.ts to match the name that the hatch API responded with (restoreIot)

  2. 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.

  3. 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.

bpro avatar bpro commented on May 27, 2024 1

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.

mpatfield avatar mpatfield commented on May 27, 2024 1

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.

evbarnett5 avatar evbarnett5 commented on May 27, 2024 1

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.

dgreif avatar dgreif commented on May 27, 2024

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.

knaueranthony avatar knaueranthony commented on May 27, 2024

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.

dgreif avatar dgreif commented on May 27, 2024

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.

mpatfield avatar mpatfield commented on May 27, 2024

@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.

bpro avatar bpro commented on May 27, 2024

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.

dgreif avatar dgreif commented on May 27, 2024

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.

mpatfield avatar mpatfield commented on May 27, 2024

+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.

dgreif avatar dgreif commented on May 27, 2024

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.

dgreif avatar dgreif commented on May 27, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.