Page 11 of 16

Re: Read British Gas Hive Heating temperature

Posted: Saturday 09 February 2019 16:57
by sach
Anything happening right now?
My Domoticz server is going crazy sending me emails with Hive issues. :-(
Out so not able to look.

Re: Read British Gas Hive Heating temperature

Posted: Saturday 09 February 2019 17:35
by johnnyutah
sach wrote: Saturday 09 February 2019 16:57 Anything happening right now?
My Domoticz server is going crazy sending me emails with Hive issues. :-(
Out so not able to look.
My log is full of errors too. I'm also unable to log in to the Hive website - "Sorry, we can't find these login details. Please check and try again."

Re: Read British Gas Hive Heating temperature

Posted: Saturday 09 February 2019 17:36
by sach
Ok cool, not just me then.
Hopefully they sort it soon otherwise I will be coming home to a cold house this evening....and more importantly an angry wife! :lol:

Re: Read British Gas Hive Heating temperature

Posted: Saturday 09 February 2019 18:39
by sach
Yup issues according to tritter

Re: Read British Gas Hive Heating temperature

Posted: Wednesday 13 February 2019 1:17
by Calzor Suzay
Help :)

I went to https://github.com/imcfarla2003/domoticz-hive
Placed the plugin in the correct directory.
Had an issue with python that I fixed.
In Setup > Hardware I added 'Hive' as a device

Entry from log:
2019-02-13 00:05:04.967 Status: (Hive) Started.
2019-02-13 00:05:05.245 (Hive) Starting
2019-02-13 00:05:05.245 (Hive) DomoticzVersion Available
2019-02-13 00:05:05.190 Status: (Hive) Entering work loop.
2019-02-13 00:05:05.190 Status: (Hive) Initialized version 1.0, author 'imcfarla, MikeF and roadsnail'

Now what...?
How do I add Hive temperature, the target temp and other stuff?
Kind of stumped as what to do.

Re: Read British Gas Hive Heating temperature

Posted: Wednesday 13 February 2019 7:52
by mark.sellwood
Go to Setup then Devices, select Not Used, you should see them listed.

Please keep an eye on memory usage, on my Pi I have had to stop using this plugin as it uses all the memory in about 7 days then the Pi crashes.

Re: Read British Gas Hive Heating temperature

Posted: Wednesday 13 February 2019 10:47
by johnnyutah
mark.sellwood wrote: Wednesday 13 February 2019 7:52 Go to Setup then Devices, select Not Used, you should see them listed.

Please keep an eye on memory usage, on my Pi I have had to stop using this plugin as it uses all the memory in about 7 days then the Pi crashes.
It would be interesting to know how many people are using version 1.0 without issue? I have had the same problems as mark.sellwood.

I recently rolled back to version 0.7 from Github and this is working fine.

Re: Read British Gas Hive Heating temperature

Posted: Wednesday 13 February 2019 11:59
by Calzor Suzay
Nothing in Setup > Devices > Not Used other than some 'motherboard' entries which I'm not bothered about.
I had "Accept new Hardware Devices" off in settings but have now enabled it but nothing has appeared.
Do I need to remove and re add the plugin for devices to appear?

Re: Read British Gas Hive Heating temperature

Posted: Wednesday 13 February 2019 12:10
by johnnyutah
Have you restarted Domoticz since you filled in the plugin details, username etc?

Re: Read British Gas Hive Heating temperature

Posted: Wednesday 13 February 2019 12:43
by Calzor Suzay
So I just did the following...

Removed plugin
Restarted whole box
Added plugin

2019-02-13 11:35:09.982 Status: (Hive) Started.
2019-02-13 11:35:10.188 (Hive) Starting
2019-02-13 11:35:10.188 (Hive) DomoticzVersion Available
2019-02-13 11:35:10.136 Status: (Hive) Entering work loop.
2019-02-13 11:35:10.136 Status: (Hive) Initialized version 1.0, author 'imcfarla, MikeF and roadsnail'

No Unused devices

Restarted whole box

No Unused devices

I've looked at Type > "Temp" & "Temp + Humidity" for Used devices and can't see anything new there in case it magically added it.

I was a while back using hive2domo.py but it broke ages ago and looking to fix, do I need to rip all this out?

Re: Read British Gas Hive Heating temperature

Posted: Wednesday 13 February 2019 12:56
by imcfarla
Can you switch debug to on please?

Re: Read British Gas Hive Heating temperature

Posted: Wednesday 13 February 2019 13:08
by Calzor Suzay
Wasn't sure what level so chose basic debugging.

Code: Select all

2019-02-13 11:36:27.415 Status: Domoticz V4.9700 (c)2012-2018 GizMoCuz
2019-02-13 11:36:27.416 Status: Build Hash: a3a45906, Date: 2018-06-23 15:24:51
2019-02-13 11:36:27.416 Status: Startup Path: /home/osmc/domoticz/
2019-02-13 11:36:27.533 Status: EventSystem: reset all events...
2019-02-13 11:36:29.782 Status: (Hive) Started.
2019-02-13 11:36:29.783 Status: EventSystem: reset all events...
2019-02-13 11:36:29.784 Status: EventSystem: reset all device statuses...
2019-02-13 11:36:29.938 Status: Python EventSystem: Initalizing event module.
2019-02-13 11:36:29.939 Status: EventSystem: Queue thread started...
2019-02-13 11:36:29.939 Status: EventSystem: Started
2019-02-13 11:36:30.051 Status: PluginSystem: Entering work loop.
2019-02-13 11:36:30.212 Status: (Hive) Entering work loop.
2019-02-13 11:36:30.212 Status: (Hive) Initialized version 1.0, author 'imcfarla, MikeF and roadsnail'
2019-02-13 11:51:42.906 Status: (Hive) Started.
2019-02-13 11:51:43.055 Status: (Hive) Entering work loop.
2019-02-13 11:51:43.055 Status: (Hive) Initialized version 1.0, author 'imcfarla, MikeF and roadsnail'
2019-02-13 11:55:18.841 Status: (Hive) Stop directive received.
2019-02-13 11:55:19.041 Status: (Hive) Stopping threads.
2019-02-13 11:55:19.094 Status: (Hive) Exiting work loop.
2019-02-13 11:55:19.094 Status: (Hive) Stopped.
2019-02-13 11:55:34.683 Status: (Hive) Stop directive received.
2019-02-13 11:55:34.883 Status: (Hive) Stopping threads.
2019-02-13 11:55:35.056 Status: (Hive) Exiting work loop.
2019-02-13 11:55:35.056 Status: (Hive) Stopped.
2019-02-13 11:55:35.056 Status: (Hive) Started.
2019-02-13 11:55:35.210 Status: (Hive) Initialized version 1.0, author 'imcfarla, MikeF and roadsnail'
2019-02-13 11:55:35.209 Status: (Hive) Entering work loop.
2019-02-13 12:01:15.045 (Hive) onDisconnect called for Hive Devices
2019-02-13 12:01:15.221 (Hive) Queued asyncronous secure read aborted.
2019-02-13 12:01:15.246 PluginSystem: Restarting I/O service thread.
2019-02-13 12:01:15.246 (Hive) Disconnect event received for 'api.prod.bgchprod.info:443'.
2019-02-13 12:01:15.247 (Hive) onDisconnect called for Hive Session
2019-02-13 12:01:24.812 (Hive) onHeartbeat called
2019-02-13 12:01:24.813 (Hive) Counter = 5
2019-02-13 12:01:34.831 (Hive) onHeartbeat called
2019-02-13 12:01:34.831 (Hive) Counter = 6
2019-02-13 12:01:44.799 (Hive) onHeartbeat called
2019-02-13 12:01:44.802 (Hive) Getting Data
2019-02-13 12:01:44.802 (Hive) Getting Weather
2019-02-13 12:01:44.802 (Hive) Transport set to: 'TCP/IP', api.prod.bgchprod.info:443.
2019-02-13 12:01:44.845 PluginSystem: Starting I/O service thread.
2019-02-13 12:01:44.845 (Hive) Connect directive received, action initiated successfully.
2019-02-13 12:01:44.845 (Hive) Transport set to: 'TCP/IP', weather.prod.bgchprod.info:443.
2019-02-13 12:01:44.852 (Hive) Connect directive received, action initiated successfully.
2019-02-13 12:01:45.003 (Hive) onConnect called for Hive Weather
2019-02-13 12:01:45.003 (Hive) Getting Weather
2019-02-13 12:01:45.003 (Hive) Sending 152 bytes of data
2019-02-13 12:01:45.065 (Hive) Queued asyncronous secure read aborted.
2019-02-13 12:01:45.104 (Hive) onConnect called for Hive Devices
2019-02-13 12:01:45.104 (Hive) Getting Devices
2019-02-13 12:01:45.104 (Hive) Received 880 bytes of data
2019-02-13 12:01:45.105 (Hive) Disconnect event received for 'weather.prod.bgchprod.info:443'.
2019-02-13 12:01:45.107 (Hive) Sending 295 bytes of data
2019-02-13 12:01:45.107 (Hive) onMessage called for Hive Weather
2019-02-13 12:01:45.107 (Hive) onDisconnect called for Hive Weather
2019-02-13 12:01:45.158 (Hive) Received 530 bytes of data
2019-02-13 12:01:45.159 (Hive) onMessage called for Hive Devices
2019-02-13 12:01:45.159 (Hive) Transport set to: 'TCP/IP', api.prod.bgchprod.info:443.
2019-02-13 12:01:45.167 (Hive) Connect directive received, action initiated successfully.
2019-02-13 12:01:45.318 (Hive) onConnect called for Hive Session
2019-02-13 12:01:45.318 (Hive) Creating Session
2019-02-13 12:01:45.319 (Hive) b'{"sessions": [{"username": "blah", "password": "blah", "caller": "WEB"}]}'
2019-02-13 12:01:45.319 (Hive) Sending 304 bytes of data
2019-02-13 12:01:45.370 (Hive) Received 670 bytes of data
2019-02-13 12:01:45.371 (Hive) Received 5 bytes of data
2019-02-13 12:01:45.371 (Hive) onMessage called for Hive Session
2019-02-13 12:01:54.838 (Hive) onHeartbeat called
2019-02-13 12:01:54.839 (Hive) Counter = 2
2019-02-13 12:02:04.807 (Hive) onHeartbeat called
2019-02-13 12:02:04.807 (Hive) Counter = 3
2019-02-13 12:02:14.824 (Hive) onHeartbeat called
2019-02-13 12:02:14.824 (Hive) Counter = 4
2019-02-13 12:02:15.139 (Hive) Queued asyncronous secure read aborted.
2019-02-13 12:02:15.175 (Hive) Disconnect event received for 'api.prod.bgchprod.info:443'.
2019-02-13 12:02:15.177 (Hive) onDisconnect called for Hive Devices
2019-02-13 12:02:15.351 (Hive) Queued asyncronous secure read aborted.
2019-02-13 12:02:15.378 PluginSystem: Restarting I/O service thread.
2019-02-13 12:02:15.378 (Hive) Disconnect event received for 'api.prod.bgchprod.info:443'.
2019-02-13 12:02:15.380 (Hive) onDisconnect called for Hive Session
2019-02-13 12:02:24.807 (Hive) onHeartbeat called
2019-02-13 12:02:24.809 (Hive) Counter = 5
2019-02-13 12:02:34.831 (Hive) onHeartbeat called
2019-02-13 12:02:34.831 (Hive) Counter = 6
2019-02-13 12:02:44.853 (Hive) onHeartbeat called
2019-02-13 12:02:44.853 (Hive) Getting Data
2019-02-13 12:02:44.853 (Hive) Getting Weather
2019-02-13 12:02:44.853 (Hive) Transport set to: 'TCP/IP', api.prod.bgchprod.info:443.
2019-02-13 12:02:44.931 PluginSystem: Starting I/O service thread.
2019-02-13 12:02:44.931 (Hive) Connect directive received, action initiated successfully.
2019-02-13 12:02:44.932 (Hive) Transport set to: 'TCP/IP', weather.prod.bgchprod.info:443.
2019-02-13 12:02:44.950 (Hive) Connect directive received, action initiated successfully.
2019-02-13 12:02:45.100 (Hive) onConnect called for Hive Devices
2019-02-13 12:02:45.100 (Hive) Getting Devices
2019-02-13 12:02:45.101 (Hive) Sending 295 bytes of data
2019-02-13 12:02:45.151 (Hive) onConnect called for Hive Weather
2019-02-13 12:02:45.151 (Hive) Getting Weather
2019-02-13 12:02:45.152 (Hive) Received 530 bytes of data
2019-02-13 12:02:45.152 (Hive) Sending 152 bytes of data
2019-02-13 12:02:45.152 (Hive) onMessage called for Hive Devices
2019-02-13 12:02:45.153 (Hive) Transport set to: 'TCP/IP', api.prod.bgchprod.info:443.
2019-02-13 12:02:45.160 (Hive) Connect directive received, action initiated successfully.
2019-02-13 12:02:45.185 (Hive) Queued asyncronous secure read aborted.
2019-02-13 12:02:45.210 (Hive) Received 880 bytes of data
2019-02-13 12:02:45.211 (Hive) Disconnect event received for 'weather.prod.bgchprod.info:443'.
2019-02-13 12:02:45.212 (Hive) onMessage called for Hive Weather
2019-02-13 12:02:45.213 (Hive) onDisconnect called for Hive Weather
2019-02-13 12:02:45.313 (Hive) onConnect called for Hive Session
2019-02-13 12:02:45.313 (Hive) Creating Session
2019-02-13 12:02:45.314 (Hive) b'{"sessions": [{"username": "blah", "password": "blah", "caller": "WEB"}]}'
2019-02-13 12:02:45.314 (Hive) Sending 304 bytes of data
2019-02-13 12:02:45.364 (Hive) Received 670 bytes of data
2019-02-13 12:02:45.364 (Hive) Received 5 bytes of data
2019-02-13 12:02:45.365 (Hive) onMessage called for Hive Session
2019-02-13 12:02:54.834 (Hive) onHeartbeat called
2019-02-13 12:02:54.834 (Hive) Counter = 2
2019-02-13 12:03:04.807 (Hive) onHeartbeat called
2019-02-13 12:03:04.808 (Hive) Counter = 3
2019-02-13 12:03:14.823 (Hive) onHeartbeat called
2019-02-13 12:03:14.823 (Hive) Counter = 4
2019-02-13 12:03:15.128 (Hive) Queued asyncronous secure read aborted.
2019-02-13 12:03:15.173 (Hive) Disconnect event received for 'api.prod.bgchprod.info:443'.
2019-02-13 12:03:15.174 (Hive) onDisconnect called for Hive Devices
2019-02-13 12:03:15.345 (Hive) Queued asyncronous secure read aborted.
2019-02-13 12:03:15.374 PluginSystem: Restarting I/O service thread.
2019-02-13 12:03:15.375 (Hive) Disconnect event received for 'api.prod.bgchprod.info:443'.
2019-02-13 12:03:15.375 (Hive) onDisconnect called for Hive Session
2019-02-13 12:03:24.839 (Hive) onHeartbeat called
2019-02-13 12:03:24.839 (Hive) Counter = 5
2019-02-13 12:03:34.854 (Hive) onHeartbeat called
2019-02-13 12:03:34.855 (Hive) Counter = 6
2019-02-13 12:03:44.820 (Hive) onHeartbeat called
2019-02-13 12:03:44.820 (Hive) Getting Data
2019-02-13 12:03:44.820 (Hive) Getting Weather
2019-02-13 12:03:44.820 (Hive) Transport set to: 'TCP/IP', api.prod.bgchprod.info:443.
2019-02-13 12:03:44.827 PluginSystem: Starting I/O service thread.
2019-02-13 12:03:44.828 (Hive) Connect directive received, action initiated successfully.
2019-02-13 12:03:44.828 (Hive) Transport set to: 'TCP/IP', weather.prod.bgchprod.info:443.
2019-02-13 12:03:44.872 (Hive) Connect directive received, action initiated successfully.
2019-02-13 12:03:44.972 (Hive) onConnect called for Hive Devices
2019-02-13 12:03:44.972 (Hive) Getting Devices
2019-02-13 12:03:44.973 (Hive) Sending 295 bytes of data
2019-02-13 12:03:45.074 (Hive) onConnect called for Hive Weather
2019-02-13 12:03:45.074 (Hive) Getting Weather
2019-02-13 12:03:45.074 (Hive) Received 530 bytes of data
2019-02-13 12:03:45.074 (Hive) Sending 152 bytes of data
2019-02-13 12:03:45.074 (Hive) onMessage called for Hive Devices
2019-02-13 12:03:45.075 (Hive) Transport set to: 'TCP/IP', api.prod.bgchprod.info:443.
2019-02-13 12:03:45.094 (Hive) Connect directive received, action initiated successfully.
2019-02-13 12:03:45.095 (Hive) Queued asyncronous secure read aborted.
2019-02-13 12:03:45.144 (Hive) Received 880 bytes of data
2019-02-13 12:03:45.145 (Hive) Disconnect event received for 'weather.prod.bgchprod.info:443'.
2019-02-13 12:03:45.146 (Hive) onMessage called for Hive Weather
2019-02-13 12:03:45.146 (Hive) onDisconnect called for Hive Weather
2019-02-13 12:03:45.246 (Hive) onConnect called for Hive Session
2019-02-13 12:03:45.247 (Hive) Creating Session
2019-02-13 12:03:45.247 (Hive) b'{"sessions": [{"username": "blah", "password": "blah", "caller": "WEB"}]}'
2019-02-13 12:03:45.247 (Hive) Sending 304 bytes of data
2019-02-13 12:03:45.298 (Hive) Received 670 bytes of data
2019-02-13 12:03:45.298 (Hive) Received 5 bytes of data
2019-02-13 12:03:45.299 (Hive) onMessage called for Hive Session
2019-02-13 12:03:54.863 (Hive) onHeartbeat called
2019-02-13 12:03:54.866 (Hive) Counter = 2
Is this enough?
Removed some unrelevant entries.

Re: Read British Gas Hive Heating temperature

Posted: Wednesday 13 February 2019 13:13
by Calzor Suzay
This just showed in the log

Code: Select all

2019-02-13 12:11:04.958 Error: Plugin: Connection Exception: 'resolve: Host not found (authoritative)' connecting to 'api.prod.bgchprod.info:443'
2019-02-13 12:11:15.023 Error: (Hive) Transport is not connected, write directive to 'Hive Devices' ignored.

Re: Read British Gas Hive Heating temperature

Posted: Monday 18 February 2019 14:56
by Calzor Suzay
No idea why the devices don't appear?

Re: Read British Gas Hive Heating temperature

Posted: Monday 18 February 2019 21:14
by johnnyutah
I have had similar errors with the latest plugin - "Transport is not connected".

I'm currently using version 0.7 as this still works for me and has been the most stable. I would suggest trying this version from Github. This will eliminate the latest plugin as the problem?

Re: Read British Gas Hive Heating temperature

Posted: Monday 18 February 2019 22:05
by Calzor Suzay
How do you get to the 0.7 version?
I click the file in github, history but not sure where/how to revert back to an old version?

Edit:-
Is this the link? https://github.com/imcfarla2003/domotic ... /plugin.py

Re: Read British Gas Hive Heating temperature

Posted: Monday 18 February 2019 22:24
by johnnyutah
Calzor Suzay wrote: Monday 18 February 2019 22:05 How do you get to the 0.7 version?
I click the file in github, history but not sure where/how to revert back to an old version?

Edit:-
Is this the link? https://github.com/imcfarla2003/domotic ... /plugin.py
yes, that looks like the right one!

Re: Read British Gas Hive Heating temperature

Posted: Tuesday 19 February 2019 23:08
by Calzor Suzay
Hmm tried that but get an error adding hardware and it fails, the website seems to not then function and goes to an offline page but is still running, If I clear app cache with chrome://appcache-internals/ I can get back to the site.

Re: Read British Gas Hive Heating temperature

Posted: Wednesday 20 February 2019 0:24
by Calzor Suzay
So after a bit of a faff I managed to get 0.7 working and it added the devices automatically.
I do see errors in the log though:-
2019-02-19 23:23:07.282 (hive7) HTTP Error 504: Gateway Timeout
2019-02-19 23:23:07.283 (hive7) the JSON object must be str, not 'bool'

Re: Read British Gas Hive Heating temperature

Posted: Wednesday 20 February 2019 22:18
by Calzor Suzay
I get loads of errors with this and seems to make the webpage unusable wherby I have clear the app.cache all the time :(

2019-02-19 23:08:09.501 Error: No servers are configured. Hence mydomoticz will not be started either.
2019-02-19 23:26:53.640 Error: (hive7) Plugin did not stop after 30 seconds, flushing event queue...
2019-02-19 23:26:53.640 Error: (hive7) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2019-02-19 23:26:53.641 Error: (hive7) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2019-02-19 23:26:53.641 Error: (hive7) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2019-02-19 23:26:53.641 Error: (hive7) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.

2019-02-19 23:34:15.804 Error: (hive7) Callback event 'onHeartbeatCallback' (Python call 'onHeartbeat') discarded.
2019-02-19 23:34:15.804 Error: (hive7) Callback event 'onStopCallback' (Python call 'onStop') discarded.
2019-02-19 23:34:20.564 Status: (hive7) Entering work loop.
2019-02-19 23:34:20.564 Status: (hive7) Initialized version 0.7(Dev), author 'imcfarla,MikeF and roadsnail'
2019-02-19 23:46:53.688 Status: 192.168.1.9 -> handle abandoned timeout (status=4)

then probably nothing since