Re: Domoticz-Google-Assistant (dzga)
Posted: Friday 22 September 2023 15:41
file ngrok.yml must install in ngrok2/config this is an hiden file use ls -a to show hidden files.
Open source Home Automation System
https://forum.domoticz.com/
I use nodered with https://flows.nodered.org/node/node-red ... -smarthomedaroot wrote: Wednesday 27 September 2023 14:48 Is this simply not yet working for doorbells, or am I missing something?
Code: Select all
FROM domoticz/domoticz
EXPOSE 8080
EXPOSE 8081
EXPOSE 444
WORKDIR /opt/domoticz
RUN pip install --upgrade pip
RUN pip3 install --upgrade pip
#FOR LG plugin
RUN pip install pylgtv paramiko
#FOR Precense detection
RUN pip install paramiko
RUN pip install parallel-ssh
#FOR conbee II plugin
RUN pip install requests
RUN pip3 install requests
#FOR airco
RUN pip3 install wheel
RUN pip3 install pyfujitsu
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["/opt/domoticz/domoticz"]
Dewgew made a new project: DZGA-Flask.daroot wrote: Wednesday 27 September 2023 14:48 Since a few weeks I'm using dzga, which works almost flawlessly. Keep up that good work.
I was looking for a way to get notifications of someone pressing our doorbell on my Google Home speakers and Nest Hub.
I saw that's also possible with dzga, but I can't seem to get it to work.
I have a simple old Friedland wireless 433MHz doorbell, which I made "smart" by putting a Shelly 1 between the doorbell-sender and a classic doorbell knob next to the door. When this knob is pressed, the shelly flips it's relay which is connected to the push-button of the sender/transmitter thing. This way, the receiver/chime is actually ringing, and my Domoticz system is aware of the doorbell being used. This way I can send notifications via Domoticz to my phone via Telegram or other systems.
So far so good..
In Domoticz, I set up HTTP notifications. The test-button works: I see it passing by in the logfile @ dzga.
Then when I setup notifications on the Shelly button or the shelly relay, I get errors. More carefull reading gives me the clue that I won't work with light-switches, only with doorbells and smoke-detectors. Fair enough. I changed the switch type of the shelly to Doorbell, changed the notification, resynced the devices in dzga, the doorbell is then recognized as type Doorbell, but it won't show up in my Google Home app. I did add it to the correct room in Domoticz.
I then tested it with a dummy switch. Made it also type Doorbell, dzga sees it after resyncing, but it's not visible in Google Home app. When I change the type back to Lightswitch, it does show up.
When I change the dummy switch to Smoke detector, resync, and then check the Google Home app, it does show up. Then it's also possible to turn on notifications from within the Home app. After doing that, and virtually pressing the smoke detector in Domoticz, I do get an audio notification on my google home speakers.
Is this simply not yet working for doorbells, or am I missing something?
Some info:
Version: 2023 2
Build Hash: 19efd039c
Compile Date: 2023-07-21 17:23:44
dzVents Version: 3 1 8
Python Version: 3 7 3 (default, Jun 29 2023, 18:03:57) [GCC 8 3 0]
DZGA version 1 23 10
Running on a RPi 3B+
Have you tryed running dzag manually? Maybe its the systemtcl service issue.louresman wrote: Thursday 23 November 2023 15:12 Is no one affected by the problem I am encountering in not beeing able to bring up the Dzga configuration page?
I had everythig working in a prevoius instalation using Rasperry Pi OS Stretch, but decided to do a clean install of the OS. I opted for Bullseye because I believe it is the version which is currently not presenting problems as far as Domoticz is concerned.
After a fresh install of the OS and of the latest Domoticz and resotring the database, everything is working as it should. So next I try to install DZGA running the instalation script and it also reports it is running when I check its status. But I cannot bring up the config screen at <IP Address:3030/settings>.
After multiple reinstalls of the OS, I get the same result. After that I tried installing Raspberry Bookworm, Domoticz runs on this as well, but still no DZGA config page. I also tried DZGA-Flask on another reinstalation but no config screen at <IP Address:8181>.
Since no one else seems to be complaining, I sure it must be something I am missing.
This is all native install, not Docker. Any hints on what could be the cause? Really frustrating as everything worked great on the previous install of Stretch and the older DZGA version.
Code: Select all
cd /home/${USER}/
sudo systemctl stop dzga #If service is running
source Domoticz-Google-Assistant/env/bin/activate
python3 Domoticz-Google-AssistantCode: Select all
sudo systemctl stop dzga-flask #If service is running
cd /home/${USER}/DZGA-Flask
source env/bin/activate
python3 smarthome.pyThe same issue here. Fresh install of Bookworm on a RPi 5. No User interface on both DZGA and DZGA FLASK. Not on localhost:8181 and ip:8181louresman wrote: Thursday 23 November 2023 15:12 Is no one affected by the problem I am encountering in not beeing able to bring up the Dzga configuration page?
I had everythig working in a prevoius instalation using Rasperry Pi OS Stretch, but decided to do a clean install of the OS. I opted for Bullseye because I believe it is the version which is currently not presenting problems as far as Domoticz is concerned.
After a fresh install of the OS and of the latest Domoticz and resotring the database, everything is working as it should. So next I try to install DZGA running the instalation script and it also reports it is running when I check its status. But I cannot bring up the config screen at <IP Address:3030/settings>.
After multiple reinstalls of the OS, I get the same result. After that I tried installing Raspberry Bookworm, Domoticz runs on this as well, but still no DZGA config page. I also tried DZGA-Flask on another reinstalation but no config screen at <IP Address:8181>.
Since no one else seems to be complaining, I sure it must be something I am missing.
This is all native install, not Docker. Any hints on what could be the cause? Really frustrating as everything worked great on the previous install of Stretch and the older DZGA version.
Code: Select all
sudo systemctl start dzga-flaskCode: Select all
sudo systemctl stop dzga-flasCode: Select all
sudo systemctl status dzga-flaskCode: Select all
bash <(curl -s https://raw.githubusercontent.com/DewGew/dzga-installer/master/DZGA-Flask-install.sh)Code: Select all
bash <(curl -s https://raw.githubusercontent.com/DewGew/dzga-installer/master/dzga-flask-install.sh)Code: Select all
bash <(curl -s https://raw.githubusercontent.com/DewGew/dzga-installer/master/DZGA-Flask-install.sh)Solved, in Domoticz (menu setup - settings - security) tipped "allow http api calls", this solved the problem.fabry91 wrote: Monday 27 November 2023 16:29 Hello,
since I have updated my Domoticz (running on Synology - DSM 7.1) to the latest release v2023.2 (build 15674) the DGA doesn't connect to the Domoticz server.
When I login to the console 192.xxx.xx.x:3031/settings it keeps me message me "Connection to Domoticz refused! Check configuration." but I didn't change anything on the configuration of Domoticz and DGA.
Sync device results in "Page not found!: 500 Server Error: Internal Server Error for url: https://homegraph.googleapis.com/v1/devices:requestSync"
Anybody have had this problem?
Thank you in advanced!
Install script for DZGA-Flask is updated and should now work.jpvaneijk wrote: Monday 27 November 2023 20:52 Unfortunately, this is not a solution for me. I had already configured this nicely.
Since Bookworm there seem to be some problems with pip in Python and I thought that might be where the problem lay. Unfortunately, that does not appear to be the case either.
It applies to both DZGA and DZGA-Flak. I can't get the user interface up and running with anything.
My hopes lie with Dewgew who will probably come up with a simple solution soon, I seem to be missing something.
I was able to install all the other plugins and software/hardware just fine but unfortunately I am stuck on, what I think is just so important, linking everything through to my Google devices at home.
My problem seems to be the same as Louresman's. So just a little more patience (I hope)
Code: Select all
bash <(curl -s https://raw.githubusercontent.com/DewGew/dzga-installer/master/DZGA-Flask-install.sh)Code: Select all
*--------------------**---------------------*
Install DZGA-Flask
---------------------------------------------
*Note : Dzga-Flask is free
*for personal use.
---------------------------------------------
Install the DZGA-Flask?
(y)es or (N)o? Default : No
y
Installing DZGA-Flask
Cloning into 'DZGA-Flask'...
remote: Enumerating objects: 1433, done.
remote: Counting objects: 100% (519/519), done.
remote: Compressing objects: 100% (297/297), done.
remote: Total 1433 (delta 330), reused 330 (delta 218), pack-reused 914
Receiving objects: 100% (1433/1433), 5.65 MiB | 9.24 MiB/s, done.
Resolving deltas: 100% (693/693), done.
This script must run as MYUSERNAME, trying to change user...
Installing system requirements...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libffi-dev is already the newest version (3.4.4-1).
libssl-dev is already the newest version (3.0.11-1~deb12u2+rpt1).
python3 is already the newest version (3.11.2-1+b1).
python3-dev is already the newest version (3.11.2-1+b1).
python3-pip is already the newest version (23.0.1+dfsg-1+rpt1).
python3-venv is already the newest version (3.11.2-1+b1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
DZGA-Flask requires python 3.5 or greater
Installing dzga-flask.service...
Created symlink /etc/systemd/system/multi-user.target.wants/dzga-flask.service → /etc/systemd/system/dzga-flask.service.
Starting DZGA-Flask...
Login to DZGA-Flask Server UI at: http://ip.address:8181
Default username is admin and default password is smarthome
*-----------------------------------*
MYUSERNAME@Domoticz:~ $ sudo systemctl start dzga-flask
MYUSERNAME@Domoticz:~ $ sudo systemctl status dzga-flask
× dzga-flask.service - DZGA-Flask dashboard
Loaded: loaded (/etc/systemd/system/dzga-flask.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Fri 2023-12-01 10:52:38 CET; 5s ago
Duration: 1ms
Process: 2302 ExecStart=/home/MYUSERNAME/DZGA-Flask/env/bin/python /home/[email protected]/DZGA-Flask/smarthome.py (code=exited, status=203/EXEC)
Main PID: 2302 (code=exited, status=203/EXEC)
CPU: 1ms
Dec 01 10:52:38 Domoticz systemd[1]: dzga-flask.service: Scheduled restart job, restart counter is at 5.
Dec 01 10:52:38 Domoticz systemd[1]: Stopped dzga-flask.service - DZGA-Flask dashboard.
Dec 01 10:52:38 Domoticz systemd[1]: dzga-flask.service: Start request repeated too quickly.
Dec 01 10:52:38 Domoticz systemd[1]: dzga-flask.service: Failed with result 'exit-code'.
Dec 01 10:52:38 Domoticz systemd[1]: Failed to start dzga-flask.service - DZGA-Flask dashboard.
[email protected]@Domoticz:~ $
Code: Select all
2023-12-01 11:34:46 http://X.X.X.X:8084 "GET /json.htm?type=command¶m=getversion HTTP/1.1" 200 46Code: Select all
2023-12-01 11:29:34 http://X.X.X.X.:8084 "GET /json.htm?type=command¶m=getusers HTTP/1.1" 401 91Code: Select all
2023-12-01 13:09:43 Error on request:
Traceback (most recent call last):
File "/home/pi/DZGA-Flask/env/lib/python3.9/site-packages/werkzeug/serving.py", line 364, in run_wsgi
execute(self.server.app)
File "/home/pi/DZGA-Flask/env/lib/python3.9/site-packages/werkzeug/serving.py", line 328, in execute
write(data)
File "/home/pi/DZGA-Flask/env/lib/python3.9/site-packages/werkzeug/serving.py", line 300, in write
self.wfile.write(hex(len(data))[2:].encode())
File "/usr/lib/python3.9/socketserver.py", line 799, in write
self._sock.sendall(b)
TimeoutError: [Errno 110] Connection timed outJust to be clear: This is not on Bookworm or a RPi 5 right?louresman wrote: Friday 01 December 2023 20:44 Hi DewGew,
After the latest update, I can now access the user interface and see my Domoticz devices.
Thanks for your work fixing this issue.