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

Shorten sleep sensor names #38

Merged
merged 1 commit into from
Apr 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ Platform | Name |Description
`sensor` | `height` | [Height][height] (metres).
`sensor` | `weight` | [Weight][weight] (kilograms).
`sensor` | `steps` | [Number of steps][steps] taken. Reset daily.
`sensor` | `deep_sleep_time_past_24h` | [Deep sleep][sleep] time over the past 24 hours. May not be available depending on sleep data provider.
`sensor` | `light_sleep_time_past_24h` | [Light sleep][sleep] time over the past 24 hours. May not be available depending on sleep data provider.
`sensor` | `rem_sleep_time_past_24h` | [REM sleep][sleep] time over the past 24 hours. May not be available depending on sleep data provider.
`sensor` | `awake_time_past_24h` | [Awake][sleep] time during a sleep session over the past 24 hours. Not overall daily awake time. May not be available depending on sleep data provider.
`sensor` | `total_sleep_time_past_24h` | [Overall sleep][sleep] time over the past 24 hours.
`sensor` | `deep_sleep` | [Deep sleep][sleep] time over the past 24 hours. May not be available depending on sleep data provider.
`sensor` | `light_sleep` | [Light sleep][sleep] time over the past 24 hours. May not be available depending on sleep data provider.
`sensor` | `rem_sleep` | [REM sleep][sleep] time over the past 24 hours. May not be available depending on sleep data provider.
`sensor` | `awake_time` | [Awake][sleep] time during a sleep session over the past 24 hours. Not overall daily awake time. May not be available depending on sleep data provider.
`sensor` | `sleep` | [Overall sleep][sleep] time over the past 24 hours.
`sensor` | `blood_pressure_diastolic` | Most recent Diastolic [blood pressure][blood-pressure] reading.
`sensor` | `blood_pressure_systolic` | Most recent Systolic [blood pressure][blood-pressure] reading.
`sensor` | `heart_rate` | Most recent [heart rate][heart-rate] measurement.
Expand Down
10 changes: 5 additions & 5 deletions custom_components/google_fit/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
),
GoogleFitSensorDescription(
key="google_fit",
name="Awake Time Past 24h",
name="Awake Time",
icon="mdi:sun-clock",
native_unit_of_measurement=UnitOfTime.SECONDS,
state_class=SensorStateClass.TOTAL_INCREASING,
Expand All @@ -124,7 +124,7 @@
),
GoogleFitSensorDescription(
key="google_fit",
name="Total Sleep Time Past 24h",
name="Sleep",
icon="mdi:bed-clock",
native_unit_of_measurement=UnitOfTime.SECONDS,
state_class=SensorStateClass.TOTAL_INCREASING,
Expand All @@ -134,7 +134,7 @@
),
GoogleFitSensorDescription(
key="google_fit",
name="Light Sleep Time Past 24h",
name="Light Sleep",
icon="mdi:power-sleep",
native_unit_of_measurement=UnitOfTime.SECONDS,
state_class=SensorStateClass.TOTAL_INCREASING,
Expand All @@ -144,7 +144,7 @@
),
GoogleFitSensorDescription(
key="google_fit",
name="Deep Sleep Time Past 24h",
name="Deep Sleep",
icon="mdi:sleep",
native_unit_of_measurement=UnitOfTime.SECONDS,
state_class=SensorStateClass.TOTAL_INCREASING,
Expand All @@ -154,7 +154,7 @@
),
GoogleFitSensorDescription(
key="google_fit",
name="REM Sleep Time Past 24h",
name="REM Sleep",
icon="mdi:chat-sleep",
native_unit_of_measurement=UnitOfTime.SECONDS,
state_class=SensorStateClass.TOTAL_INCREASING,
Expand Down