excellent
Thank you
The only thing to note with that logging is that it will write status updates to the console every time HA asks for an update from the sesssion memory. Not every time the session calls the API. So in the 2 minute gap between API updates, HA could ask for a status update 8 times thatâs just a guess. I donât know the interval for HA polling for a new status.
Thanks @Khole thatâs a good point. It seems HA calls for updates every 30 seconds.
Here is the logger output for a 10 minute session. I have two lights âCorner lightâ and âWindow lightâ in this session the corner light was on and HA restarted.
The device status is recorded correctly when restarted, but no other updates are made. At approx 1124 the light was switched off via the Hive website.
2017-10-16 11:21:06 WARNING (Thread-11) [custom_components.hive] Logging is Enabled
2017-10-16 11:21:08 WARNING (Thread-11) [custom_components.hive] Adding warmwhitelight, Corner light to device list
2017-10-16 11:21:08 WARNING (Thread-11) [custom_components.hive] Adding warmwhitelight, Window light to device list
2017-10-16 11:21:08 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:21:08 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:21:08 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:21:08 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:21:08 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:21:08 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:21:08 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:21:08 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:21:08 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:21:08 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:21:38 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:21:38 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:21:38 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:21:38 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:21:38 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:21:38 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:21:38 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:21:38 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:21:38 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:21:38 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:22:09 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:22:09 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:22:09 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:22:09 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:22:09 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:22:09 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:22:09 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:22:09 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:22:09 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:22:09 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:22:40 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:22:40 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:22:40 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:22:40 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:22:40 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:22:40 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:22:40 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:22:40 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:22:40 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:22:40 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:23:11 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:23:11 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:23:11 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:23:11 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:23:11 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:23:11 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:23:11 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:23:11 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:23:11 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:23:11 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:23:42 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:23:42 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:23:42 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:23:42 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:23:42 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:23:42 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:23:42 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:23:42 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:23:42 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:23:42 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:24:13 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:24:13 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:24:13 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:24:13 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:24:13 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:24:13 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:24:13 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:24:13 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:24:13 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:24:13 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:24:44 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:24:44 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:24:44 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:24:44 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:24:44 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:24:44 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:24:44 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:24:44 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:24:44 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:24:44 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:25:15 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:25:15 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:25:15 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:25:15 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:25:15 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:25:15 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:25:15 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:25:15 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:25:15 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:25:15 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:25:46 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:25:46 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:25:46 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:25:46 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:25:46 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:25:46 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:25:46 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:25:46 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:25:46 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:25:46 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:26:17 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:26:17 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:26:17 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:26:17 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:26:17 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:26:17 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:26:17 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:26:17 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:26:17 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:26:17 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:26:48 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:26:48 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:26:48 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:26:48 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:26:48 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:26:48 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:26:48 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:26:48 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:26:48 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:26:48 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:27:19 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:27:19 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:27:19 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:27:19 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:27:19 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:27:19 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:27:19 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:27:19 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:27:19 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:27:19 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:27:50 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:27:50 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:27:50 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:27:50 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:27:50 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:27:50 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:27:50 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:27:50 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:27:50 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:27:50 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:28:21 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:28:21 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:28:21 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:28:21 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:28:21 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:28:21 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:28:21 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:28:21 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:28:21 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:28:21 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:28:52 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:28:52 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:28:52 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:28:52 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:28:52 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:28:52 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:28:52 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:28:52 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:28:52 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:28:52 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:29:23 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:29:23 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:29:23 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:29:23 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:29:23 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:29:23 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:29:23 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:29:23 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:29:23 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:29:23 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:29:54 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:29:54 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:29:54 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:29:54 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:29:54 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:29:54 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:29:54 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:29:54 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:29:54 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:29:54 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:30:25 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:30:25 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:30:25 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:30:25 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:30:25 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:30:25 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:30:25 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:30:25 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:30:25 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:30:25 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:30:56 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:30:56 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:30:56 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:30:56 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:30:56 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:30:56 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:30:56 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:30:56 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:30:56 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:30:56 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:31:27 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:31:27 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:31:27 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:31:27 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:31:27 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:31:27 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:31:27 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:31:27 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:31:27 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:31:27 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:31:58 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:31:58 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:31:58 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:31:58 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:31:58 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:31:58 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:31:58 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:31:58 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:31:58 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:31:58 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:32:29 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:32:29 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:32:29 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:32:29 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:32:29 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:32:29 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:32:29 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:32:29 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:32:29 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:32:29 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:33:00 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:33:00 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:33:00 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:33:00 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:33:00 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:33:00 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:33:00 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:33:00 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:33:00 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:33:00 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:33:31 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:33:31 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:33:31 WARNING (MainThread) [custom_components.hive] Getting status for Corner light
2017-10-16 11:33:31 WARNING (MainThread) [custom_components.hive] State is ON
2017-10-16 11:33:31 WARNING (MainThread) [custom_components.hive] Getting brightness for Corner light
2017-10-16 11:33:31 WARNING (MainThread) [custom_components.hive] Brightness is 10 percent
2017-10-16 11:33:31 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:33:31 WARNING (MainThread) [custom_components.hive] State is OFF
2017-10-16 11:33:31 WARNING (MainThread) [custom_components.hive] Getting status for Window light
2017-10-16 11:33:31 WARNING (MainThread) [custom_components.hive] State is OFF
Clearly something is wrong with my setup where the api is not returning new status data.
I will continue to investigate but any further pointers would be great.
Is there a folder called py_cache or something along those lines canât remember itâs name in the custom component directory and the same folder in the light custom component directory?
No - all that is under /custom_components are the directories and hive.py files. I wondered about a caching problem but thought it would be unusual for http ssl session connections to be cached at all.
There should be a folder there. Does the Linux user that runs HA have read and write access to the custom components directory?
@Khole Ah good call, right ok.
My HA runs in a virtual python environment with user âhomeassistantâ. BUT when I added the custom components files I added them under different user and although I remembered to change the owner and user permissions I didnât do it recursively (doh!)
I have just done that and restarted and I now have the __pycache__
folders in both directories. However light status is still not being reflected in the HA interface - anything else you can suggest?
Iâm not at my computer at the minute on mobile so I canât show you where the method is. But if you find the method thatâs does the JSON call to get the status update and add a error logger line of code to the end of it. When you run it for 10 minutes with the logger switched on it should show you when the API call. It will prove itâs running that piece of code.
You could also add the variable that stores the updated information and link that to a logger. That way it will print what it is receiving from the API to the console.
That will be the definitive way to find out if an API call is happening and what itâs getting from it.
I wonât be able to get to a computer until late this evening I can put a file together if your unsure how to do it.
I canât think of any other quick fixes that you can try sorry.
I couldnât make any new posts here due to the ânew memberâ rules the forum has limiting the posts I could make until now.
Iâd just like to thank @Khole for fixing the issue I had so promptly and sending me a working bugfix via PM to test. I really didnât expect anyone to get straight on to it like they did.
As a new HA user I kind of expected to be apologizing for making a newbie config error - but Khole quickly realised there was a blip in the code and accepted my testing and reports (if only all devs and coders were like that!)
I guess I was still trialling Home Assistant, but since it does everything I need it to and is so customisable, my good experience with Khole today made my mind up to make it my system controller for the long term.
As my experience with HA increases I hope I can return something to the community with my own advice, experience and possibly even some code in the future.
Thanks again!
Hi all
I just noticed that the two instances of
sensor.hive_thermostat_battery_level_<thermostat name>
have disappeared from my installation. Is this just me? (Currently running HA 0.55)
@ Max_Bonner I to have the same issue you have withe the hive bulbs not updating their status on HA. Currently running HA on an old Pi1 but when I switch the lights with the phone app or the Hive web login the status doesnât change on HA ? Would you be able to share the fix please ?
Thanks
Hi @bobsylas
Sure, attached is the file I replaced. You will need to place it in the /custom_components/light/ folder and rename it hive.py
Then I just restarted HA and all should be working as expected.
hive_light_bug_fix.yaml (5.7 KB)
Thanks for that, works a treat
Cheers.
Hi,
Iâm interested by the Hive integration.
Not sure where to find the custom components download links though.
Any help will be appreciated.
Thanks
M
Central Scotland here - got a hub for sale in origional wrapper!
Scroll up a bit, you canât miss them.
Yes indeed it was in the July post.
Works like a charm thank you.
Regards,
I think someone may have already suggested - could this code be shared in github? Would be great to track and feedback on bugs, improvements etc. As a new member, It would be great to immediately get to the master âversionâ.
Hello,
Apologies for the silence for the last couple of months, @Khole and I have been very busy with a major update to the Hive custom components.
We have completed a major code re-work of all the Component and Platform files to get it ready, and if all goes well, release as an official distribution in the next home-assistant release, 0.59.0, coming out this weekend.
This will mean that anyone that currently uses the current custom components, and who would like to use the official distribution, will need to delete all of the hive.py
files in all the custom component folders so that they do not override the official release versions.
Anyone new to Home-assistant and Hive will no longer need to download and copy to the custom component folders the hive.py
files, only adding the Hive configuration to the configuration.yaml will be needed.
Going forward in the future all updates to the Hive component and platforms will be made through updating the official release versions with any new versions with updates / fixes / new features automatically being included with new home assistant versions.
Unfortunately for those already using the current hive.py
custom component files, if was not possible to bring across all of the functionality from the custom component to the official distribution as some features did not comply with the general design of home assistant.
The main area which will be missing from the official release is all of the non-hive sensors that automatically were added, such as battery level, heating state, boost state, etc⌠I have update the sensor custom component to work with the new official files, so once released and switched over to the official release, anyone wishing to continue to use these sensors (I certainly do) can copy the new hive.py
sensor custom component file to the usual sensor custom component folder and it will override the official release with one which includes all the original sensors. (I will post a link to it once hive integration is included in a release of home assistant, again, hopefully this weekend)
Another area which we could not include was the devices
configuration.yaml option which enables you to state which entities you would like included in home-assistant. as this option is missing automatically all entities for all hive devices that are discovered will be added.
There are couple of breaking changes too unfortunately.
- In configuration.yaml, if you use the option
minutes_between_updates
, you will need to change this toscan_interval
- The only configuration.yaml options allowed are
username
,password
andscan_interval
all other options will need to be removed - The Hive âMotion Sensorsâ and Hive âWindow or Door Sensorâ have moved from a home assistant sensor to a home assistant binary_sensor, this could impact any automations referencing each individual sensor
- We are no longer allowed to specify
entity_id
name for each entity so they are all now automatically generated, this will (probably) have an impact on your configurations adding each entity (sensor, heating, hotwater) to different groups, so you will probably need to edit any groups to update the name. Also any automations with any of the hive entities will need to be checked and updated too. - The state
SCHEDULE
has been replaced withauto
. Any automations using this will need to be updated. - The state in heating
MANUAL
has been replaced withheat
. Any automations using this will need to be updated. - The state
ON
has been replaced withon
. Any automations using this will need to be updated. - The state
OFF
has been replaced withoff
. Any automations using this will need to be updated.
On the plus side, it will be easier to distribute the latest version to everyone each time there is an update, and also for new hive users of home assistant to get started and up and running.
@Dan1, Hopefully this has answered the main part of your question regarding distribution and getting the latest / master version?
With regards to hosting on GitHub, the files are now already hosted on the official home assistant GitHub repo and also on my fork of it. On my fork khole and I create new branches to update the hive component and platforms and then create a pull request to the official home assistant repo. we are discussing whether it would be good / beneficial to have a new repo dedicated to just these hive component and platform files to make it easier to track feedback, bugs and improvements specific to the hive integration. Also a new repo would be a good place to host the new sensor custom component to supplement the official hive version.
Sorry for the very long post, but hopefully it all makes sense and that the news is welcomed.
Any questions, feel free to ask
Great to know a more official release is coming - shame we lose a few bits - Iâm happy to continue using forked versions. Iâve got most things working - 5 active lights, two plugs, 2 sensors and 1 multi colour light (canât change colour). Heating will be arriving soon so will plug that in too.
My main purpose was to be able to switch blocks of lights on and off in one click - this is working really well.
Iâll have a hack with the rest api to see if I can get the colours to change on the lamp and feedback any findings (actually I started by writing python code against the rest api before discovering home-assistant).