kevinvincent / ha-wyzesense

A Home Assistant Component to interface with the WYZE Sense hub and sensor system
368 stars 97 forks source link

Ready for Python 3.10? #226

Closed Joeviocoe closed 1 year ago

Joeviocoe commented 2 years ago

Am I the only one still running v1 WyzeSense sensors? I got a TI LaunchPad CC1310 just to keep these sensors going (unbricking).

Anyway, Home Assistant has upgraded to Python 3.10, and before I update, I want to make sure it won't break the ha_wyzesense component. Any way to test just the component without upgrading HA?

bschatzow commented 2 years ago

I still have version 1 hub and both version 1 and 2 sensors. No issues for me with the update.

Joeviocoe commented 2 years ago

Thanks. Just to confirm, you are upgraded to Home Assistant Core 2022.7.0 or 2022.7.1? And inside your HA (or docker: docker exec -t -i homeassistant /bin/bash) if you run python -V, you get 3.10?

bschatzow commented 2 years ago

I am on HAOS 2022.7.1, OS 8.3. This includes the latest python version which was tested during the beta release

sweichbr commented 2 years ago

Just curious. Don't know if it's related to the update but all my wyze sensors no longer report battery level and the bridge led is off

bschatzow commented 2 years ago

Try a shutdown and restart. If bridge is off it isn't working.

sweichbr commented 2 years ago

Have tried that. Plus the sensors themselves are still triggering, just the attributes that are missing.

bschatzow commented 2 years ago

The attribute issue is a different issue. You need to fix it. Go to the wyzesense GitHub site and you will find directions there. 'device_state_attributes' is deprecated starting with HA 2021.12.0 replaced 'device_state_attributes' with 'extra_state_attributes' in the [binary_sensor.py file. There maybe a fork done for this where the file is changed. If not, edit your file with a text editor and make the change.

I have never seen the bridge LED off if it is working. Usually green if working correctly or yellow if not. Mine has never been off.

sweichbr commented 2 years ago

Thanks so much. That fixed it.

Sorry for hijacking the thread.

ctrl50 commented 1 year ago

I run ha in a venv on ubuntu 22.04 and have had python 3.10.4 running for months no issues.

Joeviocoe commented 1 year ago

Thank you. I've upgraded and it works.

sweichbr commented 1 year ago

Have tried that. Plus the sensors themselves are still triggering, just the attributes that are missing.

On Tue, Jul 12, 2022, 1:31 PM Bill @.***> wrote:

Try a shutdown and restart. If bridge is off it isn't working.

— Reply to this email directly, view it on GitHub https://github.com/kevinvincent/ha-wyzesense/issues/226#issuecomment-1182070482, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKI5HDHZBIYWWNVQPLMVYP3VTWTXPANCNFSM53BJF3VA . You are receiving this because you commented.Message ID: @.***>

stanwebber commented 1 year ago

i run on my own fork with v1 door and motion sensors. i was stuck on core-2022.4.7 for a long time, but recently upgraded to core-2022.10.3 on hassos 9.2. other than needing to recover the mac on 1 of my door sensors (currently working with 00000000 mac), i can report no other issues.