Update coming up. It's published to the store, will be available in the coming hours.
Update content:
Version 1.1
* Added support for HTTPS
* Added support for gzip encoding. This will save on data usage. Needs Domoticz version 1.1376+
* Added support for P1 Smart Meters for gas usage
* Added support for P1 Smart Meters for energy usage
* Added support for Thermostat temperature readings
* Added support for Lux sensor readings
* Added support for Humidity only sensor readings
* Added support for Weather Underground wind meter readings
* Added support for LaCrosse TX3 humidity sensor readings
* Dimmers work correctly.
A note on the GZIP compression.
This is added to Domoticz in version 1.1376. The app will still function with a lower version of Domoticz but will consume more data as the data is not compressed before it is send to the app.
If you have a nginx proxy setup you can add the gzip compression there as well so it will work with lower versions of Domoticz. To do this first follow the instructions on
this wiki page. You can skip the parts about SSL certificates if you don't want to setup HTTPS access to Domoticz. Then configure it so that it will forward traffic to port 8080 or to whatever port you have Domoticz running.
Open your nginx.conf in /etc/nginx and make sure that gzip compression is turned on. This is how my nginx.conf looks like for the Gzip config:
Code: Select all
##
# Gzip Settings
##
gzip on;
gzip_disable "msie6";
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
This is how my domoticz configuration file in nginx looks like. It's under /etc/nginx/sites-available and I have setup access via HTTPS and HTTP. Hence the two server{} blocks.
Code: Select all
access_log off;
add_header Cache-Control public;
server_tokens off;
server {
include /etc/nginx/proxy_params;
listen 443 ssl;
keepalive_timeout 70;
server_name localhost;
ssl on;
ssl_certificate /etc/ssl/ca/server.crt;
ssl_certificate_key /etc/ssl/ca/server.key;
add_header X-Frame-Options SAMEORIGIN;
location / {
proxy_pass http://localhost:8080/;
access_log /var/log/nginx/domoticz.access.log;
error_log /var/log/nginx/domoticz.error.log;
}
}
server {
include /etc/nginx/proxy_params;
listen 81;
keepalive_timeout 70;
server_name localhost;
add_header X-Frame-Options SAMEORIGIN;
location / {
proxy_pass http://localhost:8080/;
access_log /var/log/nginx/domoticz.access.log;
error_log /var/log/nginx/domoticz.error.log;
}
}
A note on the HTTPS connection.
Because I needed to allow for HTTPS access using user generated SSL certificates I needed to setup Dromotica so that it will accept any SSL certificate provided. Normally access is blocked when the certificate that is provided does not come from a trusted source. You'll need to pay a SSL certificate agency to get such a certificate. User generated certificates are not signed by a trusted CA. Modern browsers will warn you about untrusted certificates and will allow you to continue. I can't do that in Dromotica so I needed to accept any certificate that's returned by the server. This means that you are still vulnerable to man in the middle attacks when you are on a network you do not trust. The communication between Dromotica and Domoticz will still be encrypted.
I have some requests to add more devices still on the list of to-do's. They will follow shortly so if yours isn't on it yet, it will come

. Thanks to all of you who submitted devices to be added. If devices are still missing please submit them using the button in the app.