Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Withings Issue after upgrade from 9.x #102246

Closed
alphatech69 opened this issue Oct 18, 2023 · 21 comments
Closed

Withings Issue after upgrade from 9.x #102246

alphatech69 opened this issue Oct 18, 2023 · 21 comments

Comments

@alphatech69
Copy link

The problem

I was on 2023.9.3 and Withings was sending only new body scale values to MQTT from Withings. After upgrading to the latest 10.X, (Not sure what is happening) every time HA checks with Withings (I believe every 10 minutes) it sends 0 values or same values to MQTT. I downgraded to 9.3 and everything is back to normal. I’m still learning so be with me, I have attached the YAML file but if you need anything else, please let me know:

HomeAssistant/SystolicBloodPressure
“{{ states(‘sensor.withings_systolic_blood_pressure_mmhg_scale’) }}”
“{{ states(‘sensor.withings_diastolic_blood_pressure_mmhg_scale’) }}”
platform: state
entity_id:

sensor.withings_systolic_blood_pressure_mmhg_scale
platform: state
entity_id:
sensor.withings_systolic_blood_pressure_mmhg_scale

id: ‘1695841030512’
alias: Diastolic Blood Pressure MQTT
description: Diastolic Blood Pressure
trigger:

platform: state
entity_id:
    sensor.withings_diastolic_blood_pressure_mmhg_scale
    condition: []
    action:
service: mqtt.publish
data:
qos: ‘0’
topic: HomeAssistant/DiastolicBloodPressure
payload_template: ‘{{ states(’‘sensor.withings_diastolic_blood_pressure_mmhg_scale’’) }}’
mode: single

What version of Home Assistant Core has the issue?

2023.10.3

What was the last working version of Home Assistant Core?

2023.9.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Withings

Link to integration documentation on our website

https://www.home-assistant.io/integrations/withings/#data-updates

Diagnostics information

No response

Example YAML snippet

HomeAssistant/SystolicBloodPressure
“{{ states(‘sensor.withings_systolic_blood_pressure_mmhg_scale’) }}”
“{{ states(‘sensor.withings_diastolic_blood_pressure_mmhg_scale’) }}”
platform: state
entity_id:

    sensor.withings_systolic_blood_pressure_mmhg_scale
    platform: state
    entity_id:
    sensor.withings_systolic_blood_pressure_mmhg_scale

id: ‘1695841030512’
alias: Diastolic Blood Pressure MQTT
description: Diastolic Blood Pressure
trigger:

    platform: state
    entity_id:
        sensor.withings_diastolic_blood_pressure_mmhg_scale
        condition: []
        action:
    service: mqtt.publish
    data:
    qos: ‘0’
    topic: HomeAssistant/DiastolicBloodPressure
    payload_template: ‘{{ states(’‘sensor.withings_diastolic_blood_pressure_mmhg_scale’’) }}’
    mode: single

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

Hey there @joostlek, mind taking a look at this issue as it has been labeled with an integration (withings) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of withings can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign withings Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


withings documentation
withings source
(message by IssueLinks)

@joostlek
Copy link
Member

Do you have an external url or home assistant cloud?

@alphatech69
Copy link
Author

Unfortunately I do not, I use VPN

@alphatech69
Copy link
Author

by the way thanks for the fast response, appreciated

@joostlek
Copy link
Member

So what you are saying is, Withings keeps sending the same values? Currently the polling interval is 10 minutes yes. Maybe there's something wrong in the way I aggregate data, but I don't expect that, otherwise I probably would have more issues about this.

@alphatech69
Copy link
Author

Currently I use MQTT to send withings values to a mysql. With the current release 9.x I have no issues and withings and MySQL records only one value when I record my body weight. When I moved to 10.x, I can see in the mysql table triggering 0 value. In the HA log I could see the "Unknown" value. Unfortunately I'm new to HA and I do not know how to filter those values out from the automation. By the way, not relevant but your plugin was easy to configure and worked on the first chance, I was going crazy trying to create the same thing you did. Please ask more questions as may fit. Thanks.

@joostlek
Copy link
Member

I mean the integration will be even better next release, if you reinstall the integration in 2023.11 only relevant measurements will show ;)

How does the entities in HA look like?

@alphatech69
Copy link
Author

to be honest I reversed back to 9.3 but if you like I can upgrade if you think the issue went away with the latest updates. With 9.3 the entities are good with no issues.

@joostlek
Copy link
Member

2023.11 isn't out yet, but the thing is, the internals have changed, but the behaviour of the sensors did not. So I am kinda looking for an answer why they behave differently.

@alphatech69
Copy link
Author

Unfortunately I'm very new to HA and I'm learning as we speak. Not sure this is the best strategy or not but I would like to suggest to options. Option 1, you could perhaps use the YAML that I have attached and test it if you have any withings hardware or 2, please let me know how I can I help to debug and I will, with the premise that I just started HA, I'm 3 weeks into it and I'm just touching the surface of it, not sure I would be of a big help.

@joostlek
Copy link
Member

I mean, if you are this new, do you mind if we take a step back and ask why you use mysql to collect the data?

@alphatech69
Copy link
Author

I'm new to HA but not with home automation, MQTT and mysql. I'm sending the MQTT values info to another app. I want to collect my data so I can graph with Grafana.

@alphatech69
Copy link
Author

by the way your app got me there within an hour, you made it very simple process. The only thing that I needed to do is create a VM with HA, add your plugin and do some automation. Very easy.

@joostlek
Copy link
Member

Maybe you want to checkout the influxdb integration, that also has integration with grafana

@alphatech69
Copy link
Author

thanks, I will check it in the future, right now, I would like to be able to upgrade HA without the issue that I'm having.

@joostlek
Copy link
Member

Haha, I mean it would be a second way to solve this issue haha. Downside is, I can't reproduce this as my Withings setup uses cloudhooks, so whenever I stand on my scale, Withings will send a request to my instance to update the data.

@alphatech69
Copy link
Author

Not to worry, thanks for the help, appreciated. When the next release comes, I will test with it and I will keep you posted on the progress with more detailed info.

@joostlek
Copy link
Member

I mean, this isn't changed in 2023.11, if it doesn't work in 2023.10 it won't work in .11, so I would say let's give it a try imo

@alphatech69
Copy link
Author

Thanks, I will do it. This weekend, I will focus entirely on it. Any special thing that I would like me to provide you with in order to debug better?

@joostlek
Copy link
Member

Well, I don't think anything should've changed in the first place, the sensors update just like normal so I am curious what the automation receives and why

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@issue-triage-workflows issue-triage-workflows bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 12, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants