Page 4 of 11

Re: Python Plugin: Chromecast

Posted: Thursday 13 December 2018 9:19
by EdwinK
Ewaldharmsen wrote: Wednesday 12 December 2018 9:19
EdwinK wrote: Tuesday 11 December 2018 9:29

Code: Select all

2018-12-11 09:28:57.518 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results.
2018-12-11 09:28:57.540 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results.
2018-12-11 09:28:57.561 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results.
2018-12-11 09:28:57.585 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results.
Can you remove the hardware, and all user variables, restart domoticz and re-add it?
For now, I've removed it all. Will look at this at some other time.

Re: Python Plugin: Chromecast

Posted: Monday 17 December 2018 14:04
by Ewaldharmsen
Nautilus wrote: Wednesday 12 December 2018 22:51
Ewaldharmsen wrote: Wednesday 12 December 2018 9:19
EdwinK wrote: Tuesday 11 December 2018 9:29

Code: Select all

2018-12-11 09:28:57.518 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results.
2018-12-11 09:28:57.540 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results.
2018-12-11 09:28:57.561 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results.
2018-12-11 09:28:57.585 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results.
Can you remove the hardware, and all user variables, restart domoticz and re-add it?
Thanks, tried this but now I'm not getting any devices created. Allow new hardware devices was on when I re-added it:

Code: Select all

2018-12-12 23:46:48.500 Status: (Chromecasts) Started.
2018-12-12 23:46:50.220 Status: (Chromecasts) Entering work loop.
2018-12-12 23:46:50.220 Status: (Chromecasts) Initialized version 3.0.2, author 'Tsjippy'
2018-12-12 23:46:50.223 Status: (Chromecasts) Checking if images are loaded
2018-12-12 23:46:50.223 Status: (Chromecasts) Starting up
2018-12-12 23:46:50.242 Error: (Chromecasts) 'onStart' failed 'ConnectionError'.
2018-12-12 23:46:50.242 Error: (Chromecasts) ----> Line 560 in '/home/pi/domoticz/plugins/ChromecastPlugin/plugin.py', function onStart
2018-12-12 23:46:50.242 Error: (Chromecasts) ----> Line 272 in '/home/pi/domoticz/plugins/ChromecastPlugin/plugin.py', function onStart
2018-12-12 23:46:50.242 Error: (Chromecasts) ----> Line 502 in '/home/pi/domoticz/plugins/ChromecastPlugin/plugin.py', function updateDevices
2018-12-12 23:46:50.242 Error: (Chromecasts) ----> Line 75 in '/home/pi/domoticz/plugins/ChromecastPlugin/requests/api.py', function get
2018-12-12 23:46:50.242 Error: (Chromecasts) ----> Line 60 in '/home/pi/domoticz/plugins/ChromecastPlugin/requests/api.py', function request
2018-12-12 23:46:50.242 Error: (Chromecasts) ----> Line 533 in '/home/pi/domoticz/plugins/ChromecastPlugin/requests/sessions.py', function request
2018-12-12 23:46:50.242 Error: (Chromecasts) ----> Line 646 in '/home/pi/domoticz/plugins/ChromecastPlugin/requests/sessions.py', function send
2018-12-12 23:46:50.242 Error: (Chromecasts) ----> Line 516 in '/home/pi/domoticz/plugins/ChromecastPlugin/requests/adapters.py', function send
2018-12-12 23:47:02.580 Error: (Chromecasts) http://127.0.0.1:8080/json.htm?type=command&param=getuservariable&idx= did not return any results.
2018-12-12 23:47:12.805 (Chromecasts) Connecting to available chromecasts
2018-12-12 23:47:12.805 Status: (Chromecasts) Checking for available chromecasts
2018-12-12 23:47:21.791 (Chromecasts) Found these chromecasts: Musiikkihuone TV
2018-12-12 23:47:21.792 (Chromecasts) Registering listeners for Musiikkihuone TV
2018-12-12 23:47:21.792 (Chromecasts) Done registering listeners for Musiikkihuone TV
2018-12-12 23:47:21.836 (Chromecasts) The app of 'Musiikkihuone TV' has changed to Backdrop
2018-12-12 23:47:21.836 (Chromecasts) Will set the domoticz devices to off.
2018-12-12 23:47:21.836 (Chromecasts) Updated volume to 50
2018-12-12 23:47:21.792 Status: (Chromecasts) Connected to Musiikkihuone TV
2018-12-12 23:47:31.337 Error: (Chromecasts) http://127.0.0.1:8080/json.htm?type=command&param=getuservariable&idx= did not return any results.
2018-12-12 23:47:41.323 Error: (Chromecasts) http://127.0.0.1:8080/json.htm?type=command&param=getuservariable&idx= did not return any results.

I improved the code messaging in version 3.0.3.
Your variable can not be queried. If you use 3.0.3 it should give you the url on which it tries to get them.

Re: Python Plugin: Chromecast

Posted: Wednesday 19 December 2018 1:21
by dextm80

Code: Select all

 2018-12-19 01:20:28.209 Error: (Google Home) Could not get all variables. Used this url: http://192.168.1.58:8888/json.htm?type=command&param=getuservariables
2018-12-19 01:20:28.214 Error: (Google Home) Could not create 'Bagno', result was ERR
2018-12-19 01:20:28.220 Error: (Google Home) Could not create 'Chromecast Luigi', result was ERR
2018-12-19 01:20:28.225 Error: (Google Home) Could not create 'Cameretta', result was ERR
2018-12-19 01:20:28.230 Error: (Google Home) Could not create 'Cucina', result was ERR
2018-12-19 01:20:28.235 Error: (Google Home) Could not create 'Tutta la casa', result was ERR
2018-12-19 01:20:28.241 Error: (Google Home) 'onStart' failed 'KeyError'.
2018-12-19 01:20:28.241 Error: (Google Home) ----> Line 569 in '/home/luigi/domoticz/plugins/ChromecastPlugin/plugin.py', function onStart
2018-12-19 01:20:28.241 Error: (Google Home) ----> Line 277 in '/home/luigi/domoticz/plugins/ChromecastPlugin/plugin.py', function onStart
2018-12-19 01:20:28.241 Error: (Google Home) ----> Line 648 in '/home/luigi/domoticz/plugins/ChromecastPlugin/plugin.py', function getVariables 
With latest beta

Re: Python Plugin: Chromecast

Posted: Wednesday 19 December 2018 18:04
by Ewaldharmsen
So what happens if you paste http://192.168.1.58:8888/json.htm?type= ... rvariables into your browser?

Re: Python Plugin: Chromecast

Posted: Wednesday 19 December 2018 19:49
by dextm80

Code: Select all

{
   "status" : "OK",
   "title" : "GetUserVariables"
}

Re: Python Plugin: Chromecast

Posted: Thursday 20 December 2018 8:14
by jeroenkl
Same issue here:
2018-12-20 08:10:57.757 Error: (Chromecast) http://127.0.0.1:8081/json.htm?type=com ... iable&idx= did not return any results.
2018-12-20 08:10:57.786 Error: (Chromecast) http://127.0.0.1:8081/json.htm?type=com ... iable&idx= did not return any results.

running latest beta and python plugin

Re: Python Plugin: Chromecast

Posted: Thursday 20 December 2018 8:54
by jeroenkl
Ewaldharmsen wrote: Wednesday 19 December 2018 18:04 So what happens if you paste http://192.168.1.58:8888/json.htm?type= ... rvariables into your browser?
for me:
{
"result" : [
{
"LastUpdate" : "2018-12-16 09:19:49",
"Name" : "Huiskamer",
"Type" : "2",
"Value" : "",
"idx" : "1"
},
{
"LastUpdate" : "2018-12-16 09:19:49",
"Name" : "Badkamer",
"Type" : "2",
"Value" : "",
"idx" : "2"
},

Re: Python Plugin: Chromecast

Posted: Thursday 20 December 2018 9:44
by mark.sellwood
I too see the error
2018-12-20 08:41:05.974 Error: (ChromeCast) Could not create 'Office speaker', result was ERR

If I run http://xxx.xxx.xxx.xxx:8080/json.htm?ty ... rvariables
I get :-
{
"result" : [
{
"LastUpdate" : "2018-11-25 08:59:13",
"Name" : "Front bedroom speaker",
"Type" : "2",
"Value" : "",
"idx" : "1"
},
{
"LastUpdate" : "2018-11-25 08:59:13",
"Name" : "Office speaker",
"Type" : "2",
"Value" : "",
"idx" : "2"
},
{
"LastUpdate" : "2018-11-26 23:21:10",
"Name" : "Lounge display",
"Type" : "2",
"Value" : "",
"idx" : "3"
}
],
"status" : "OK",
"title" : "GetUserVariables"
}

Running Domoticz V4.10300 with plugin 3.0.4

Re: Python Plugin: Chromecast

Posted: Thursday 20 December 2018 19:27
by Ewaldharmsen
Can you all update to version 3.0.7?

git pull should work.

That should fix the variable problem or give better errors

Re: Python Plugin: Chromecast

Posted: Thursday 20 December 2018 19:57
by mark.sellwood
gut pull worked fine, no on 3.0.7
This time the errors I get are :-
2018-12-20 18:53:27.106 Error: (ChromeCast) Could not create 'Office speaker', result was ERR. Url used is http://192.168.1.20:8080/json.htm?type= ... ame=Office speaker&vtype=2&vvalue=
2018-12-20 18:53:27.185 Error: (ChromeCast) Could not create 'Front bedroom speaker', result was ERR. Url used is http://192.168.1.20:8080/json.htm?type= ... name=Front bedroom speaker&vtype=2&vvalue=
2018-12-20 18:53:27.265 Error: (ChromeCast) Could not create 'Lounge display', result was ERR. Url used is http://192.168.1.20:8080/json.htm?type= ... ame=Lounge display&vtype=2&vvalue=

I have tried
http://192.168.1.20:8080/json.htm?type= ... =2&vvalue=
and get
{
"status" : "ERR"
}

Re: Python Plugin: Chromecast

Posted: Thursday 20 December 2018 20:21
by snellejellep
mark.sellwood wrote: Thursday 20 December 2018 19:57 gut pull worked fine, no on 3.0.7
This time the errors I get are :-
2018-12-20 18:53:27.106 Error: (ChromeCast) Could not create 'Office speaker', result was ERR. Url used is http://192.168.1.20:8080/json.htm?type= ... ame=Office speaker&vtype=2&vvalue=
2018-12-20 18:53:27.185 Error: (ChromeCast) Could not create 'Front bedroom speaker', result was ERR. Url used is http://192.168.1.20:8080/json.htm?type= ... name=Front bedroom speaker&vtype=2&vvalue=
2018-12-20 18:53:27.265 Error: (ChromeCast) Could not create 'Lounge display', result was ERR. Url used is http://192.168.1.20:8080/json.htm?type= ... ame=Lounge display&vtype=2&vvalue=

I have tried
http://192.168.1.20:8080/json.htm?type= ... =2&vvalue=
and get
{
"status" : "ERR"
}
do you have under settings > settings > system > local networks:
192.168.1.*,127.0.0.*

otherwise it can not use the domoticz api because it needs a password but if you exclude your local network from requiring a password it will work

Re: Python Plugin: Chromecast

Posted: Thursday 20 December 2018 20:30
by jeroenkl
Ewaldharmsen wrote: Thursday 20 December 2018 19:27 Can you all update to version 3.0.7?

git pull should work.

That should fix the variable problem or give better errors
Hmm after the update i've got:
2018-12-20 20:27:59.445 Error: (Chromecast) http://127.0.0.1:8081/json.htm?type=com ... iable&idx= did not return any results. ([0, Chromecast('192.168.2.15', port=8009, device=DeviceStatus(friendly_name='Badkamer', model_name='Google Home Mini', manufacturer='Google Inc.', uuid=UUID(xxxxxxxxxxxxxxxxxxxxx), cast_type='cast')), '', 'CONNECTED', 0])

local networks are set: 127.0.0.*;10.250.*.*;192.168.2.*

Re: Python Plugin: Chromecast

Posted: Thursday 20 December 2018 20:35
by mark.sellwood
snellejellep wrote: Thursday 20 December 2018 20:21
mark.sellwood wrote: Thursday 20 December 2018 19:57 gut pull worked fine, no on 3.0.7
This time the errors I get are :-
2018-12-20 18:53:27.106 Error: (ChromeCast) Could not create 'Office speaker', result was ERR. Url used is http://192.168.1.20:8080/json.htm?type= ... ame=Office speaker&vtype=2&vvalue=
2018-12-20 18:53:27.185 Error: (ChromeCast) Could not create 'Front bedroom speaker', result was ERR. Url used is http://192.168.1.20:8080/json.htm?type= ... name=Front bedroom speaker&vtype=2&vvalue=
2018-12-20 18:53:27.265 Error: (ChromeCast) Could not create 'Lounge display', result was ERR. Url used is http://192.168.1.20:8080/json.htm?type= ... ame=Lounge display&vtype=2&vvalue=

I have tried
http://192.168.1.20:8080/json.htm?type= ... =2&vvalue=
and get
{
"status" : "ERR"
}
do you have under settings > settings > system > local networks:
192.168.1.*,127.0.0.*

otherwise it can not use the domoticz api because it needs a password but if you exclude your local network from requiring a password it will work
My local networks are set to 192.168.1.*;127.0.0.*
http://192.168.1.20:8080/json.htm?type= ... getversion
returns

{
"DomoticzUpdateURL" : "https://www.domoticz.com/download.php?c ... ine=armv7l",
"HaveUpdate" : false,
"Revision" : 10301,
"SystemName" : "linux",
"UseUpdate" : true,
"build_time" : "2018-12-20 18:46:47",
"dzvents_version" : "2.4.9",
"hash" : "b1521946",
"python_version" : "3.5.3 (default, Sep 27 2018, 17:25:39) \n[GCC 6.3.0 20170516]",
"status" : "OK",
"title" : "GetVersion",
"version" : "4.10301"
}

Re: Python Plugin: Chromecast

Posted: Friday 21 December 2018 8:41
by Ewaldharmsen
jeroenkl wrote: Thursday 20 December 2018 20:30
Ewaldharmsen wrote: Thursday 20 December 2018 19:27 Can you all update to version 3.0.7?

git pull should work.

That should fix the variable problem or give better errors
Hmm after the update i've got:
2018-12-20 20:27:59.445 Error: (Chromecast) http://127.0.0.1:8081/json.htm?type=com ... iable&idx= did not return any results. ([0, Chromecast('192.168.2.15', port=8009, device=DeviceStatus(friendly_name='Badkamer', model_name='Google Home Mini', manufacturer='Google Inc.', uuid=UUID(xxxxxxxxxxxxxxxxxxxxx), cast_type='cast')), '', 'CONNECTED', 0])

local networks are set: 127.0.0.*;10.250.*.*;192.168.2.*
I think your user variable is somehow not created. I have released version 3.0.8 with better error logging.
Can you check if there is a user variable called "'Badkamer"?

Re: Python Plugin: Chromecast

Posted: Friday 21 December 2018 10:12
by EdwinK

Code: Select all

Chromecast('192.168.0.148', port=8009, device=DeviceStatus(friendly_name='Mini 1', model_name='Google Home Mini', manufacturer='Google Inc.', uuid=UUID('48cb0466-4ea8-35bb-30dc-1132f0bf4207'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:11.791 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([3, Chromecast('192.168.0.144', port=8009, device=DeviceStatus(friendly_name='Mini 2', model_name='Google Home Mini', manufacturer='Google Inc.', uuid=UUID('aac0e5b9-287d-4649-b58c-6f2dc684775e'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:11.812 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([1, Chromecast('192.168.0.142', port=8009, device=DeviceStatus(friendly_name='Cast 2', model_name='Chromecast', manufacturer='Google Inc.', uuid=UUID('f112c2a7-87dd-d729-82e9-279fa653cdee'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:11.833 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([0, Chromecast('192.168.0.109', port=8009, device=DeviceStatus(friendly_name='Cast 1', model_name='Chromecast', manufacturer='Google Inc.', uuid=UUID('92415db4-01bf-e7aa-54b5-aadfe0683937'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:21.794 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([2, Chromecast('192.168.0.148', port=8009, device=DeviceStatus(friendly_name='Mini 1', model_name='Google Home Mini', manufacturer='Google Inc.', uuid=UUID('48cb0466-4ea8-35bb-30dc-1132f0bf4207'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:21.815 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([3, Chromecast('192.168.0.144', port=8009, device=DeviceStatus(friendly_name='Mini 2', model_name='Google Home Mini', manufacturer='Google Inc.', uuid=UUID('aac0e5b9-287d-4649-b58c-6f2dc684775e'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:21.837 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([1, Chromecast('192.168.0.142', port=8009, device=DeviceStatus(friendly_name='Cast 2', model_name='Chromecast', manufacturer='Google Inc.', uuid=UUID('f112c2a7-87dd-d729-82e9-279fa653cdee'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:21.858 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([0, Chromecast('192.168.0.109', port=8009, device=DeviceStatus(friendly_name='Cast 1', model_name='Chromecast', manufacturer='Google Inc.', uuid=UUID('92415db4-01bf-e7aa-54b5-aadfe0683937'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:31.752 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([2, Chromecast('192.168.0.148', port=8009, device=DeviceStatus(friendly_name='Mini 1', model_name='Google Home Mini', manufacturer='Google Inc.', uuid=UUID('48cb0466-4ea8-35bb-30dc-1132f0bf4207'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:31.774 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([3, Chromecast('192.168.0.144', port=8009, device=DeviceStatus(friendly_name='Mini 2', model_name='Google Home Mini', manufacturer='Google Inc.', uuid=UUID('aac0e5b9-287d-4649-b58c-6f2dc684775e'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:31.795 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([1, Chromecast('192.168.0.142', port=8009, device=DeviceStatus(friendly_name='Cast 2', model_name='Chromecast', manufacturer='Google Inc.', uuid=UUID('f112c2a7-87dd-d729-82e9-279fa653cdee'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:31.816 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([0, Chromecast('192.168.0.109', port=8009, device=DeviceStatus(friendly_name='Cast 1', model_name='Chromecast', manufacturer='Google Inc.', uuid=UUID('92415db4-01bf-e7aa-54b5-aadfe0683937'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:41.761 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([2, Chromecast('192.168.0.148', port=8009, device=DeviceStatus(friendly_name='Mini 1', model_name='Google Home Mini', manufacturer='Google Inc.', uuid=UUID('48cb0466-4ea8-35bb-30dc-1132f0bf4207'), cast_type='cast')), '', 'CONNECTED', 0])
2018-12-21 10:09:41.782 Error: (PyCast) http://192.168.0.11:8080/json.htm?type=command&param=getuservariable&idx= did not return any results. ([3, Chromecast('192.168.0.144', port=8009, device=DeviceStatus(friendly_name='Mini 2', model_name='Google Home Mini', manufacturer='Google Inc.', uuid=UUID('aac0e5b9-287d-4649-b58c-6f2dc684775e'), cast_type='cast')), '', 'CONNECTED', 0])

Re: Python Plugin: Chromecast

Posted: Friday 21 December 2018 10:40
by waaren
API saveuservariable has changed in V4.10298 to adduservariable.

Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk


Re: Python Plugin: Chromecast

Posted: Friday 21 December 2018 10:51
by dextm80
i've same problem:

Code: Select all

 2018-12-21 10:49:38.209 Error: (Chromecast) failed to load 'plugin.py', Python Path used was '/home/user/domoticz/plugins/ChromecastPlugin/:/usr/lib/python36.zip:/usr/lib/python3.6:/usr/lib/python3.6:/usr/lib/python3.6/lib-dynload'.
2018-12-21 10:49:38.209 Error: (Google Home) Module Import failed, exception: 'ModuleNotFoundError'
2018-12-21 10:49:38.209 Error: (Google Home) Module Import failed: ' Name: requests'
2018-12-21 10:49:38.209 Error: (Google Home) Error Line details not available. 

Re: Python Plugin: Chromecast

Posted: Friday 21 December 2018 11:37
by pele
Similar problem here

Code: Select all

2018-12-21 11:21:39.640 Status: (Chrome) Started.
2018-12-21 11:21:39.984 Error: (Chromecast) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/ChromecastPlugin/:/usr/lib/python3.4/:/usr/lib/python3.4/plat-arm-linux-gnueabihf:/usr/lib/python3.4/lib-dynload'.
2018-12-21 11:21:39.984 Error: (Chrome) Module Import failed, exception: 'ImportError'
2018-12-21 11:21:39.984 Error: (Chrome) Module Import failed: ' Name: requests'
2018-12-21 11:21:39.984 Error: (Chrome) Error Line details not available.
Plugin ver 3.0.8
PyChromecast ver 2.3.0
Domoticz Version: 4.10301, Build Hash: b1521946

Re: Python Plugin: Chromecast

Posted: Friday 21 December 2018 11:44
by Ewaldharmsen
waaren wrote: Friday 21 December 2018 10:40 API saveuservariable has changed in V4.10298 to adduservariable.

Verstuurd vanaf mijn ONEPLUS A6003 met Tapatalk
Ah I did not know that, fixed in version 3.0.9

Re: Python Plugin: Chromecast

Posted: Friday 21 December 2018 11:58
by jeroenkl
Ewaldharmsen wrote: Friday 21 December 2018 8:41
jeroenkl wrote: Thursday 20 December 2018 20:30
Ewaldharmsen wrote: Thursday 20 December 2018 19:27 Can you all update to version 3.0.7?

git pull should work.

That should fix the variable problem or give better errors
Hmm after the update i've got:
2018-12-20 20:27:59.445 Error: (Chromecast) http://127.0.0.1:8081/json.htm?type=com ... iable&idx= did not return any results. ([0, Chromecast('192.168.2.15', port=8009, device=DeviceStatus(friendly_name='Badkamer', model_name='Google Home Mini', manufacturer='Google Inc.', uuid=UUID(xxxxxxxxxxxxxxxxxxxxx), cast_type='cast')), '', 'CONNECTED', 0])

local networks are set: 127.0.0.*;10.250.*.*;192.168.2.*
I think your user variable is somehow not created. I have released version 3.0.8 with better error logging.
Can you check if there is a user variable called "'Badkamer"?
I checked if the user variable are there, after a clean install: No they are not. Also not created with 3.0.9
To what string should badkamer set?