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

Expose motion sensor temperature #70

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

drsgoodall
Copy link
Contributor

Add temp sensor for the motion sensor. This can re-use the heating API to query the device state, but has a different name to avoid creating an extra entity on the heating devices.

This can be used in HomeAssistant by adding a new sensor type to homeassistant/components/hive/sensor.py

 SensorEntityDescription(
    key="Current_Temperature",
    native_unit_of_measurement=UnitOfTemperature.CELSIUS,
    state_class=SensorStateClass.MEASUREMENT,
    device_class=SensorDeviceClass.TEMPERATURE,
    entity_category=EntityCategory.DIAGNOSTIC,
),

@KJonline
Copy link
Contributor

KJonline commented Dec 10, 2023

@drsgoodall the GitHub actions should be working now. Please could you install the requirements from this project and run the pre-commit command locally to update the PR

Add temp sensor for the motion sensor. This can re-use the heating API to query the device state, but has a different name to avoid creating an extra entity on the heating devices
@KJonline KJonline merged commit 269a84b into Pyhass:master Dec 11, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants