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

state_class missing after upgrading from 0.8.x to 0.9.8 #225

Closed
cvinhaes opened this issue Aug 11, 2023 · 6 comments
Closed

state_class missing after upgrading from 0.8.x to 0.9.8 #225

cvinhaes opened this issue Aug 11, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@cvinhaes
Copy link

cvinhaes commented Aug 11, 2023

Updated the integration today from an old version, hoping that the state_class would show for my existing temperature and power (from smart sockets) sensors reading from my hubitat hub, but nothing changed. Is there any additional configuration required. I've rebooted HA more than once and managed to add state_class using a global customization, but I was hoping it would come straight from the integration. Hubitat currently in v: 2.3.5.146

@kevdliu
Copy link
Contributor

kevdliu commented Dec 30, 2023

Noticed this after updating as well. Sensor entities are missing their device_class attributes. Binary sensors are working properly however.

@CaptainKarma
Copy link

I lost functionality for my contact and temperature/humidity sensors, had to implement a workaround to add device_class for everything to work again;

homeassistant:
customize_glob:
"sensor.s__battery":
device_class: battery
"sensor.t_h_battery":
device_class: battery

@jason0x43 jason0x43 added the bug Something isn't working label Dec 31, 2023
@jason0x43
Copy link
Owner

v0.9.12 fixes the missing device classes. I've also verified that sensor entities are reporting state classes. Give that a try.

@xvz
Copy link

xvz commented Jan 1, 2024

I upgraded to 0.9.14, deleted and re-added my hub to check the entity generation. Device classes are working correctly now but all the entity ID suffices are missing. For example, instead of sensor.room_battery, it is just sensor.room. Similarly, instead of binary_sensor.room_water, it is binary_sensor.room. Similarly for _last_update_time, _contact, _tamper, etc.

@jason0x43
Copy link
Owner

I need to write more unit tests. 🤦‍♂️

@jason0x43
Copy link
Owner

That issue is fixed in 0.9.15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants