Problems with Presence detection Gigaset Beacon BLE
Moderator: leecollings
-
- Posts: 23
- Joined: Monday 19 December 2016 8:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Germany - Münsterland
- Contact:
Problems with Presence detection Gigaset Beacon BLE
Hi there,
got problems with my presence detection over BLE beacons.
Used the "Presence detection (Bluetooth 4.0 Low energy Beacon)" and the "check_beacon_presence.py"-Script.
Error is in the log:
2023-05-27 19:39:01,571 - root - CRITICAL - <Thread(Thread-2210, started 1967125600)> Request Failed HTTPConnectionPool(host='xxx.xxx
.xxx.xx', port=8080): Max retries exceeded with url: /json.htm?type=command¶m=updateuservariable&idx=2&vname=Tag-Ulrike&vtype=2&
vvalue=HOME (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75d32b90>: Failed to establish a new connec
tion: [Errno 101] Network is unreachable',)) - http://xxx.xxx.xxx.xx:8080/json.htm?typ ... x=2&vname=
Tag-Ulrike&vtype=2&vvalue=HOME
Can somebodey explain what to do? Don't understand this error.
Regards
Meikel
got problems with my presence detection over BLE beacons.
Used the "Presence detection (Bluetooth 4.0 Low energy Beacon)" and the "check_beacon_presence.py"-Script.
Error is in the log:
2023-05-27 19:39:01,571 - root - CRITICAL - <Thread(Thread-2210, started 1967125600)> Request Failed HTTPConnectionPool(host='xxx.xxx
.xxx.xx', port=8080): Max retries exceeded with url: /json.htm?type=command¶m=updateuservariable&idx=2&vname=Tag-Ulrike&vtype=2&
vvalue=HOME (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x75d32b90>: Failed to establish a new connec
tion: [Errno 101] Network is unreachable',)) - http://xxx.xxx.xxx.xx:8080/json.htm?typ ... x=2&vname=
Tag-Ulrike&vtype=2&vvalue=HOME
Can somebodey explain what to do? Don't understand this error.
Regards
Meikel
- waltervl
- Posts: 5149
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Problems with Presence detection Gigaset Beacon BLE
Are your security settings correct in menu Setup - Settings - security?
- Did you set Allow basic authorisation for Http?
- Did you put your network IP range in the trusted network setting?
If not you have to add your login user and password to the url in the script.
- Did you set Allow basic authorisation for Http?
- Did you put your network IP range in the trusted network setting?
If not you have to add your login user and password to the url in the script.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 23
- Joined: Monday 19 December 2016 8:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Germany - Münsterland
- Contact:
Re: Problems with Presence detection Gigaset Beacon BLE
Hi Walter,
everything done:
- Allow basic authorisation for Http, YES
- Network IP range in the trusted network setting, YES
- Login user and password to the url in the script, YES
All with no success. In the former versions no problem.
Can anyone help me?
Meikel
everything done:
- Allow basic authorisation for Http, YES
- Network IP range in the trusted network setting, YES
- Login user and password to the url in the script, YES
All with no success. In the former versions no problem.
Can anyone help me?
Meikel
- waltervl
- Posts: 5149
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Problems with Presence detection Gigaset Beacon BLE
Your script tries to set a uservariable.
What if you try it from your own system from a browser, copy paste this URL in a browser window (you have to modify SERVER-IP).
If you have allow basic authorisation set to On then you should not give your UserID and Password.
What if you try it from your own system from a browser, copy paste this URL in a browser window (you have to modify SERVER-IP).
Code: Select all
http://Server-IP:8080/json.htm?type=command¶m=updateuservariable&idx=2&vname=Tag-Ulrike&vtype=2&vvalue=HOME
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 23
- Joined: Monday 19 December 2016 8:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Germany - Münsterland
- Contact:
Re: Problems with Presence detection Gigaset Beacon BLE
Hi,
that works fine manually, but the nuts or the script shall do this work.
What is wrong? It worked fine for years.
Thanx and regards
Meikel
that works fine manually, but the nuts or the script shall do this work.
What is wrong? It worked fine for years.
Thanx and regards
Meikel
- waltervl
- Posts: 5149
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Problems with Presence detection Gigaset Beacon BLE
Did you move to docker? As then you have to use the IP of the Domoticz docker container when run from within the container.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 23
- Joined: Monday 19 December 2016 8:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Germany - Münsterland
- Contact:
Re: Problems with Presence detection Gigaset Beacon BLE
Hi, no Docker,
it runs on a Pi 3 with nothing else and worked until update to 2023.2.
Batteries in the Gigaset nuts are fresh...
it runs on a Pi 3 with nothing else and worked until update to 2023.2.
Batteries in the Gigaset nuts are fresh...
- waltervl
- Posts: 5149
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Problems with Presence detection Gigaset Beacon BLE
Should be something in the security settings.
Is the IP of the server in the trusted network settings? No spaces between various IP adresses?
Is the IP of the server in the trusted network settings? No spaces between various IP adresses?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 23
- Joined: Monday 19 December 2016 8:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Germany - Münsterland
- Contact:
Re: Problems with Presence detection Gigaset Beacon BLE
Yes, correct IP-address is in the trusted networks settings.
-
- Posts: 23
- Joined: Monday 19 December 2016 8:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Germany - Münsterland
- Contact:
Re: Problems with Presence detection Gigaset Beacon BLE
Something with the json.htm-thing as you can read into Security-section in the Wiki.
How can I change the Pythonscript to fit the needs????
Thanx
How can I change the Pythonscript to fit the needs????
Thanx
- waltervl
- Posts: 5149
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Problems with Presence detection Gigaset Beacon BLE
If the url is working from your browser it should also work from the script. The only thing that can cause the script url to be blocked is the Domoticz security settings.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Who is online
Users browsing this forum: Google [Bot] and 1 guest