domoticz | Open source Home Automation System
kandi X-RAY | domoticz Summary
kandi X-RAY | domoticz Summary
Domoticz is a Home Automation System that lets you monitor and configure various devices like: Lights, Switches, various sensors/meters like Temperature, Rain, Wind, UV, Electra, Gas, Water and much more. Notifications/Alerts can be sent to any mobile device.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- ZWave controller
- Show the wind graph
- Creates a new refresher instance .
- Display in air flow
- Initialize Ecc3 .
- Parses XML data from XML
- Show rainbar log
- Shows the bar page
- Display day log
- show user log
domoticz Key Features
domoticz Examples and Code Snippets
Community Discussions
Trending Discussions on domoticz
QUESTION
I have a device that reads the P1 port of a smart meter. I have created a virtual sensor for the smart meter and, through a simple shell script, I can set the meter readings in Domoticz. This works well.
However, for the devices (both electricity and gas), I get a large peak of consumption on the first period. That is because the virtual sensor is initialized with the values of 0 for all the counters. This gives a peak that makes the graphs unusable.
Is there a way to initialize the meter reading on a non-zero value?
...ANSWER
Answered 2022-Mar-25 at 15:52Domoticz uses an sqlite3 database. With sqlite3 domoticz.db '.dump' > domo.dump
, you can get a complete dump of the database. Searching for the index of the meter, I found the initial value (for the gas meter:)
QUESTION
I have an application running on my home cluster.
My cluster is running K3S.
The cluster exists of 5 Raspberry Pi's 3B and 1 Ubuntu VM.
One of my deployments is Domoticz.
This uses a SQLite database to store data.
I'm using this as a StorageClass. https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner
The NFS is hosted in OpenMediaVault with arguments subtree_check,insecure,no_root_squash
When I store this database (14MB) on a PV volume linked to an NFS Storage Class, the applications becomes very slow.
When I use the Storage Class local-path, the application is as fast.
Problem is now that when that node dies, the Deployment doesn't start because of the node-affinity linked to the PVC.
I'm out of idea's to fix this issue.
Is there another SC better suited to my setup?
Is there a tweak to the SC local-path, so it's not linked to a node? (yes I know, database will not be transferred to the new node)
ANSWER
Answered 2022-Feb-20 at 19:47I fixed this by using longhorn instead of NFS. Thanks Andrew Skorkin for the tip
QUESTION
I am trying to install a plugin from Domoticz, and I need to do it via python, but I'm new to the python terminal. I am trying to do the following command
...ANSWER
Answered 2021-Jul-23 at 10:22When you pip install from git repo, the first thing pip will do is to clone the git repo, which will fail if you don't have git tools installed already.
QUESTION
I'm not familiar with Python, but I made the following script with searching on Google.
The script pulls out data from a device and injects it in Domoticz. When I run the script on my Windows machine, every minute it loops correctly and injects the data into Domoitcz. When I run the same script on my Raspberry Pi, it returns a SyntaxError: invalid syntax (line 155) on the except Exception line...
Even if I put a # before that line it raises an error.
...ANSWER
Answered 2021-Apr-27 at 04:54The line raising the error is a print
statement which is using an f-string (e.g. f"{variable_name}"
). F-strings were introduced in Python 3.6, so my guess is that your raspberry pi is using a version earlier than that, and your windows machine isn't.
Try checking what version of python is running on your raspberry pi (python --version
from a terminal). If it's anything earlier than 3.6, the f-strings will cause you syntax errors everywhere in the code.
The only other issue I can think of is you might actually be running python 2.7 with the default python
command (I can't remember off the top of my head if rasbian does this like some distros). If you get 2.7 with the version check above, try using python3
and check that version. You will need to be running that script with at least 3.6 for that script to execute.
Incidentally, you have another f-string on line 156, which might explain why if you commented out 155, it raises the exact same syntax error :)
QUESTION
My Rpi4 running my home automation recently upgraded itself from mosquitto version 1.6.12 to 2.0.8 and as a consequence it was starting in local only mode.
Done some digging about but still can't get it all working again, mainly used this previous helpful question Mosquitto: Starting in local only mode but my devices still can't connect.
From my mosquiito log I see
...ANSWER
Answered 2021-Feb-27 at 13:39Your problem is not that Mosquitto is not listening, it's that your devices are trying to resolve a hostname of 127.0.0.1:1883
I suspect you have entered the host:port combination into fields that should
- Only contain a hostname/IP address
- You probably should NOT be entering
127.0.0.1
as this always points to the device it is entered on and you should be entering the IP address the broker is actually running on.
QUESTION
I have been working on an educational project a small part of it requires me to convert a single line of json data into an variable in python 3 which I recieve from domoticz (an external open source software) however due to my skill level with json I have expierenced some issues and I am not exactly sure what im doing wrong. I did get the 200 response everytime so I assume from what I understood that means the connection isnt the issue but rather the python code. (I censored the addressed but they are correct.)
...ANSWER
Answered 2020-Nov-30 at 08:43You are getting your data stored in data ={"key": argument}
as a dictionary.
If you want to access a certain value you have to call for it. in Your case:
QUESTION
I have relay2.sh
file which should launch a python file with given arguments. So I'm using domoticz smart home system, and my task is to launch the shell script from domoticz with - script://relay2.sh 192.168.11.4 4196 1 1
, arguments are - IP, PORT, RELAY, RELAY_STATUS. What I'm doing is, starting a sh file and passing arguments from domoticz to sh file. After that I'm trying to start a python file with given arguments from sh file. But it doesn't work. I really don't know how can I pass the arguments from sh to py file.
Here's my sh code:
...ANSWER
Answered 2020-Jun-04 at 21:36You are using the shebang wrong. Each file may only contain one shebang (e.g. #!/bin/bash
) and tells the command line interface which executable to use, when executing the script.
As your script is meant to be a shell script, the shebang to use is #!/bin/bash
.
In order to pass the arguments to your python script, you need to call python3 update.py $1 $2 $3 $4
, assuming that python3 is on your PATH
variable. You can check this with echo $PATH
and/or which python3
If you want a pure python script to be executed from command line, you have to add the python shebang (#!/usr/bin/python
) to your python file and process the arguments within that script. A good tutorial can be found here.
QUESTION
Which script is executed if a directory is passed as argument to python (e.g. if python is called in this way: $ python3 Domoticz-Google-Assistant/
)?
Best regards,
wewa
...ANSWER
Answered 2020-Feb-23 at 15:39If you execute a directory as an argument to python, the file named __main__.py
will be executed.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install domoticz
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page