toreamun / victorsmartkill-homeassistant

Home Assistant integration for Victor Smart-Kill WI-FI electronic mouse and rat traps from VictorPest.com.
MIT License
17 stars 4 forks source link

Missing entities #12

Closed mk1blacklimited closed 2 years ago

mk1blacklimited commented 2 years ago

Version of the custom_component

2021.12.0

Configuration


N/A

Describe the bug

I seem to be missing most of the entities?

image

Debug log


2021-12-14 14:27:38 DEBUG (MainThread) [custom_components.victorsmartkill.config_flow] Fetch API-token for user 'jorn@innset.no' to test for correct username and password.
2021-12-14 14:27:39 DEBUG (MainThread) [custom_components.victorsmartkill.config_flow] HTTP status 400: {"non_field_errors":["Unable to log in with provided credentials."]}
2021-12-14 14:28:28 DEBUG (MainThread) [custom_components.victorsmartkill.config_flow] Fetch API-token for user 'x@x.no' to test for correct username and password.
2021-12-14 14:28:28 DEBUG (MainThread) [custom_components.victorsmartkill] async_setup_entry x@x.no.
2021-12-14 14:28:28 INFO (MainThread) [custom_components.victorsmartkill]
-------------------------------------------------------------------
Victor Smart-Kill
This is a custom integration!
If you have any issues with this you need to open an issue here:
https://github.com/toreamun/victorsmartkill-homeassistant/issues
-------------------------------------------------------------------
2021-12-14 14:28:28 INFO (MainThread) [custom_components.victorsmartkill] Data update coordinator for Victor Smart-Kill account jorn@innset.no initialized with ['binary_sensor', 'sensor'] platforms and update interval 0:10:00.
2021-12-14 14:28:30 DEBUG (MainThread) [custom_components.victorsmartkill] Received traps list [263258] from Victor Smart-Kill API.
2021-12-14 14:28:30 DEBUG (MainThread) [custom_components.victorsmartkill] Finished fetching victorsmartkill data in 1.583 seconds (success: True)
2021-12-14 14:28:30 DEBUG (MainThread) [custom_components.victorsmartkill] Forward setup to binary_sensor platform.
2021-12-14 14:28:30 DEBUG (MainThread) [custom_components.victorsmartkill] Forward setup to sensor platform.
2021-12-14 14:28:30 DEBUG (MainThread) [custom_components.victorsmartkill.binary_sensor] Add ['VictorSmartKillBinarySensor'] binary sensors for trap named 'Hytta inne' with Victor trap id 263258.
2021-12-14 14:28:30 DEBUG (MainThread) [custom_components.victorsmartkill] Listener _handle_coordinator_update added to coordinator.
2021-12-14 14:28:30 DEBUG (MainThread) [custom_components.victorsmartkill.entity] binary_sensor.hytta_inne_capture has been added to hass.
2021-12-14 14:29:23 DEBUG (MainThread) [custom_components.victorsmartkill] async_unload_entry x@x.no.
toreamun commented 2 years ago

Entities were categorized by #9 in release 2021.11.0. Every sensor except the main sensor (capture) was categorized a diagnostics. This was a feature released available from HA 2021.11 (see https://developers.home-assistant.io/blog/2021/10/26/config-entity/). Diagnostics sensors should be displayed in a separate panel image

I just noticed that the minimum HA version needed by the integrations has not been updated. What version of HA are you running?

mk1blacklimited commented 2 years ago

An upgrade of Home Assistant solved the problem, all ok now :)

Thanks!

toreamun commented 2 years ago

Great ;-) Thanks for reporting it.