jlamendo / ha-sensor.owlet

Owlet Smart Sock v2/v3 Sensor Integration for HomeAssistant using the modern Owlet API.
MIT License
84 stars 22 forks source link

Sensor not registering any values #15

Closed jacobwtyler closed 2 years ago

jacobwtyler commented 2 years ago

The owlet base picked up properly because the sensor ends with the matching serial number that the app has so I know my main config is correct but I added the template section to get the sensors and they register nothing. Any advice?

jacobwtyler commented 2 years ago

Well, I might've just figured it out but I'll have to wait until tonight to test it. I didn't notice the [YOUR_SMART_SOCK_SERIAL_NUMBER] section of each sensor. I pasted in the serial number that was appended to the end of the main hub sensor upon creation and restarted. Should I leave the brackets? I deleted them.

jacobwtyler commented 2 years ago

Nope it didn’t pick up. None of the sensors have the serial numbered appended at the end of the name like the hub does. Is that part of the problem somehow?

jacobwtyler commented 2 years ago

friendly bump: Any help would be SUPER appreciated. I’ve got a high risk newborn and I think this would make me feel so much better to tie in these metrics with my lights and speakers. I’m getting the base station to register with the serial number automatically appended to the end of the entityID so that MUST mean the login process is working, right? It’s just the other sensors that won’t return any data. Should I delete everything and start from the beginning but have the serial number already appended to my other sensors? I’d like to run the base python api login in a terminal window to see if that works but I’m not sure how to do that. Any other ways to debug what’s going on that y’all could point me to? Thanks in advance.

jacobwtyler commented 2 years ago

And just to be sure that my config for integration is okay, this is my setup:

configuration.yaml:

sensor: !include sensors.yaml secrets: !include secrets.yaml

sensors.yaml:

####### Owlet SmartSock Integration by jlamendo

The "### Owlet Attributes Test" section was just another failed attempt and creating a sensor a different failed way that I found in some forum but I really don't know enough about coding to know if I have anything wrong. I found another older owlet integration by CAB426 where the login info was placed in the actual configuration.yaml file and I guess it wasn't a sensor. I have all my setup in the sensors.yaml file including the login info. He also had an additional field of "name" to fill in but this one rejects my setup if I add that field. Should I be setting all this up as sensors even including the integration itself and should I give it a "name" field? Also, should I load the integration initially without all of the attribute sensors and then restart with the sensors added after it discovers the base? Should I be manually appending the serial number in each of the sensor attribute fields the way I have? Should I use [brackets] around them like in the example? I assumed I delete those brackets. Sorry for the long question here guys. Any help appreciated. I know its a lack of knowledge of my part but I'm learning a lot about HA with this.

RampantRedsFan commented 2 years ago

Check out issue #13, I think that you are describing the same issue. This is fixed in the version in my repo. I have suggested that this is brought into the main repo through pull #14, but it has yet to be accepted.

opie546 commented 2 years ago

@RampantRedsFan @jacobwtyler not sure where to ask this question, but you two would likely know since you are still using this... does SPO2 still work via HA?

RampantRedsFan commented 2 years ago

I can confirm that SpO2 works with sock v3 using the fork in my repo as of 12 hours ago (have not tried since last night my time).

On Thu, May 12, 2022 at 7:13 PM opie546 @.***> wrote:

@RampantRedsFan https://github.com/RampantRedsFan @jacobwtyler https://github.com/jacobwtyler not sure where to ask this question, but you two would likely know since you are still using this... does SPO2 still work via HA?

— Reply to this email directly, view it on GitHub https://github.com/jlamendo/ha-sensor.owlet/issues/15#issuecomment-1125499927, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACVK3Z4AE2FUFVUAT2OUHXTVJWGA7ANCNFSM5T7N46YA . You are receiving this because you were mentioned.Message ID: @.***>

-- Sent from my mobile

opie546 commented 2 years ago

I can confirm that SpO2 works with sock v3 using the fork in my repo as of 12 hours ago (have not tried since last night my time). On Thu, May 12, 2022 at 7:13 PM opie546 @.> wrote: @RampantRedsFan https://github.com/RampantRedsFan @jacobwtyler https://github.com/jacobwtyler not sure where to ask this question, but you two would likely know since you are still using this... does SPO2 still work via HA? — Reply to this email directly, view it on GitHub <#15 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACVK3Z4AE2FUFVUAT2OUHXTVJWGA7ANCNFSM5T7N46YA . You are receiving this because you were mentioned.Message ID: @.> -- Sent from my mobile

awesome! does it work with their app? I thought they were getting rid of that feature

RampantRedsFan commented 2 years ago

As far as I have read, they have no plans to decommission this functionality in socks v1, v2, or v3 regardless of region. They are releasing (or maybe have released) a version of the sock that does not track vitals (or at least does not show) to the US market to appease the overzealous regulators. I do not know how this integration would work with the regulator-appeasing version of the sock.

On Fri, May 13, 2022 at 9:07 AM opie546 @.***> wrote:

I can confirm that SpO2 works with sock v3 using the fork in my repo as of 12 hours ago (have not tried since last night my time). On Thu, May 12, 2022 at 7:13 PM opie546 @.> wrote: @RampantRedsFan https://github.com/RampantRedsFan https://github.com/RampantRedsFan https://github.com/RampantRedsFan @jacobwtyler https://github.com/jacobwtyler https://github.com/jacobwtyler https://github.com/jacobwtyler not sure where to ask this question, but you two would likely know since you are still using this... does SPO2 still work via HA? — Reply to this email directly, view it on GitHub <#15 (comment) https://github.com/jlamendo/ha-sensor.owlet/issues/15#issuecomment-1125499927>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACVK3Z4AE2FUFVUAT2OUHXTVJWGA7ANCNFSM5T7N46YA https://github.com/notifications/unsubscribe-auth/ACVK3Z4AE2FUFVUAT2OUHXTVJWGA7ANCNFSM5T7N46YA . You are receiving this because you were mentioned.Message ID: @.> -- Sent from my mobile

awesome! does it work with their app? I thought they were getting rid of that feature

— Reply to this email directly, view it on GitHub https://github.com/jlamendo/ha-sensor.owlet/issues/15#issuecomment-1126037870, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACVK3Z2YR6OO64FURPFJBQTVJZHZHANCNFSM5T7N46YA . You are receiving this because you were mentioned.Message ID: @.***>

opie546 commented 2 years ago

thanks, I am confused because I thought that the v3 is what they are selling right now... when did you buy yours / was it listed as the dream sock?

RampantRedsFan commented 2 years ago

This is v3: They are not selling it anymore in the US (although some retailers still may be selling them) -> https://owletbabycare.co.uk/products/owlet-smart-sock

This is Dream Sock: They are marketing this in the US -> https://www.owletcare.com/products/owlet-dream-sock

As of ~3 months ago, I was using v2 with SpO2 working with the HA integration (it was working when I decommissioned). I currently use two v3s with SpO2 working with the HA integration. I honestly have no idea if dream sock would send real-time data to HA. I could see it going either way (it likely depends on how similar dream sock is to v3 as far as the sock to server to api programming).

On Fri, May 13, 2022 at 1:32 PM opie546 @.***> wrote:

thanks, I am confused because I thought that the v3 is what they are selling right now... when did you buy yours / was it listed as the dream sock?

— Reply to this email directly, view it on GitHub https://github.com/jlamendo/ha-sensor.owlet/issues/15#issuecomment-1126284774, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACVK3ZYIMPQGYMDUT6Q2CNLVJ2G3ZANCNFSM5T7N46YA . You are receiving this because you were mentioned.Message ID: @.***>

opie546 commented 2 years ago

thanks for that clarification, a US based search makes it more confusing since there is an ad that calls it "All New Owlet Dream Sock - Owlet Smart Sock 3"

jlamendo commented 2 years ago

This should be fixed in the latest version of the integration

cvocvo commented 1 year ago

Did anyone buy an Owlet Dream Sock and test it? (I don't understand if Dream Sock = v3)

cvocvo commented 1 year ago

Did anyone buy an Owlet Dream Sock and test it? (I don't understand if Dream Sock = v3)

It does seem to authenticate and pull data for Owlet Dream Sock; not sure if it's actually working though: https://github.com/jlamendo/ha-sensor.owlet/issues/20#issuecomment-1541179688

Edit: it is and does work on the Owlet Dream Sock. It just only shows data when the sock is off of the base station.