paullj1 / TreatLife-HomeKit

Open source firmware for the TreatLife DS0X dimmer switches for native HomeKit use.
MIT License
9 stars 5 forks source link

Unable to re-add device to homekit after resetting and removing in Home App #7

Closed CaseyTal closed 2 years ago

CaseyTal commented 2 years ago

Is there a way to wipe the switch completely including any saved Home app connections? I am no longer able to find the switch in the Home app to add it.

I have 2 switches, but only have one of them connected so far. They're both connected to the same WiFi network. I'm just unable to add the second switch at all.

paullj1 commented 2 years ago

Sorry, the only way to reset the HomeKit ID, is to “upgrade” the firmware. Get it into setup mode (hold the main button for 8 seconds), then browse to the web interface, and upload a “new” firmware (it can be the old version). That should reset it completely.

On Tue, Mar 1, 2022 at 19:23 CaseyTal @.***> wrote:

Is there a way to wipe the switch completely including any saved Home app connections? I am no longer able to find the switch in the Home app to add it.

I have 2 switches, but only have one of them connected so far. They're both connected to the same WiFi network. I'm just unable to add the second switch at all.

— Reply to this email directly, view it on GitHub https://github.com/paullj1/TreatLife-HomeKit/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACDPSBZEWKVOSYNVA3O3JB3U52YJXANCNFSM5PVS27YQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

CaseyTal commented 2 years ago

Can two devices of the same make and model cause this issue? I can only get one connected.

Is there a chance I need to reflash?

I’ve power cycled the breaker a few times and each time it reconnects to the WiFi properly, but the Home app just never sees it.

paullj1 commented 2 years ago

That shouldn’t be the problem, I have four DS03s on the same network. They each get unique IDs. If you added the device to HomeKit, and then removed it while the device is offline, there’s a chance that HomeKit won’t recognize it, and the device needs a new unique ID. Unfortunately, the only way you can make it get one is to re-flash (which you can do without opening it back up, you’ll just need to use the WiFi manager interface to do it).

On Tue, Mar 1, 2022 at 19:55 CaseyTal @.***> wrote:

Can two devices of the same make and model cause this issue? I can only get one connected.

Is there a chance I need to reflash?

I’ve power cycled the breaker a few times and each time it reconnects to the WiFi properly, but the Home app just never sees it.

— Reply to this email directly, view it on GitHub https://github.com/paullj1/TreatLife-HomeKit/issues/7#issuecomment-1056022319, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACDPSB527CN3MPOPX6QNLI3U524B5ANCNFSM5PVS27YQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

CaseyTal commented 2 years ago

Okay. No worries on that. How do i reflash using WiFi manager?

CaseyTal commented 2 years ago

Deleting my last post because I just now realized how stupid it was. You clearly stated I could use WiFi manager interface to do it. What is the URL I would navigate to? I tried downgrade to 1.9.0 then upgraded back to 1.9.1. I'm assuming a reflash would be different from updating/downgrading.

CaseyTal commented 2 years ago

Well, I think I might’ve really broke it. I tried downgrading from 1.9.1 to 1.7.0. I can still ping it but cannot get the AP to work or access it via it’s ip on the router. But I can still ping it.

Any suggestions? Sorry to be a PITA.

CaseyTal commented 2 years ago

Is there any way to SSH or Arduino IDE over IP so I don’t have to disassemble it again?

paullj1 commented 2 years ago

Hey! Yeah, I did mean the WiFi manager, and I was suggesting flashing with the same version. Unfortunately, you might need to open it back up again if it’s completely unresponsive. Before you do that, I’d flip the breaker, and try getting it into setup mode. I don’t think anything in 1.7 would break it necessarily, but it’s also been a while. The good news is, those chips are pretty resilient. I’ve had a them survive several bad flashes.

On Wed, Mar 2, 2022 at 01:10 CaseyTal @.***> wrote:

Is there any way to SSH or Arduino IDE over IP so I don’t have to disassemble it again?

— Reply to this email directly, view it on GitHub https://github.com/paullj1/TreatLife-HomeKit/issues/7#issuecomment-1056328078, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACDPSB2QEZLAP3IRMA675MDU54A5DANCNFSM5PVS27YQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

CaseyTal commented 2 years ago

I ended up disassembling the switch again and flashed it again and was able to add it immediately. Have all 3 switches online in HomeKit and working.

I have been trying to figure out the best way to set these up without Homebridge or something like it for a couple years now. This is so awesome and I can’t thank you enough!!

Do you have a donation link? I’d love to thank you for your time and efforts.

paullj1 commented 2 years ago

That’s great to hear!! Glad you got it working, and no sweat at all! It’s really just nice knowing that other people are benefiting, but if you feel so inclined, here’s a PayPal donate link:

https://www.paypal.com/donate/?hosted_button_id=R7PT2GQH8D99Q

CaseyTal commented 2 years ago

Thanks again. I donated some for a few coffees and/or beers. You are awesome!!

paullj1 commented 2 years ago

Got it, thanks! Really appreciate it!