petrleocompel / hikaxpro_hacs

HACS repository of Hikvision Ax Pro integration for home assistant
MIT License
40 stars 4 forks source link

sensor instead of binary_sensor #71

Closed Sjeiz closed 10 months ago

Sjeiz commented 11 months ago

Hi Peter,

thanks for your fantastic work! Question: All my sensors appear as a normal sensor, instead of binary sensor. eg Slim magnetic contact.

class HikMagneticContactDetector(CoordinatorEntity, HikDevice, BinarySensorEntity):

As a result, color coding based on the state is not possible.

I've looked in the code, and they seem to be defined as binary sensor. What am I missing?

Regards, Erik

petrleocompel commented 11 months ago

Can you provide more info about where are you trying to color code the results of the sensors ?

Because for me it is just implementation of BinarySensorEntity and so far docs are pretty clear about it https://www.home-assistant.io/integrations/binary_sensor/ https://developers.home-assistant.io/docs/core/entity/binary-sensor

petrleocompel commented 10 months ago

Closing - inactivity