Skip to content

Fix bed_activity history chart of the Xiaomi Aqara vibration sensor#26875

Merged
syssi merged 2 commits into
home-assistant:devfrom
zhumuht:fix_xiaomi_activitysensor_chart
Sep 25, 2019
Merged

Fix bed_activity history chart of the Xiaomi Aqara vibration sensor#26875
syssi merged 2 commits into
home-assistant:devfrom
zhumuht:fix_xiaomi_activitysensor_chart

Conversation

@zhumuht
Copy link
Copy Markdown
Contributor

@zhumuht zhumuht commented Sep 24, 2019

Description:

fix xiaom activity sensor show in history chart.

changed before like this, not show x-y chart:
image

changed after:
image

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the [development checklist][dev-checklist]

@MartinHjelmare MartinHjelmare changed the title fix xiaomi activity sensor history chart Fix xiaomi activity sensor history chart Sep 24, 2019
"illumination": ["lm", None, DEVICE_CLASS_ILLUMINANCE],
"lux": ["lx", None, DEVICE_CLASS_ILLUMINANCE],
"pressure": ["hPa", None, DEVICE_CLASS_PRESSURE],
"bed_activity": ["μm", None, DEVICE_CLASS_PRESSURE],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this sensor really measuring pressure?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this sensor really measuring pressure?

this is vibration sensor.
https://www.aqara.com/en/vibration_sensor.html

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then we should not use DEVICE_CLASS_PRESSURE. We can replace that with None.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then we should not use DEVICE_CLASS_PRESSURE. We can replace that with None.

done.

@syssi syssi changed the title Fix xiaomi activity sensor history chart Fix bed_activity history chart of the Xiaomi Aqara vibration sensor Sep 25, 2019
@syssi syssi merged commit 626b61b into home-assistant:dev Sep 25, 2019
@lock lock Bot locked and limited conversation to collaborators Sep 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants