With the newest version of deconz I was able to pair the switch. Unfortunately it doesn’t work with pimatic.
In the GUI it only shows “1002” for a little moment when the button is pressed. But I dont know how a working rule should look like…
New Plugin - [pimatic-raspbee]
With the newest version of deconz I was able to pair the switch. Unfortunately it doesn’t work with pimatic.
In the GUI it only shows “1002” for a little moment when the button is pressed. But I dont know how a working rule should look like…
Well, I found a solution or … some kind of workaround.
if state of switch is "1002" then bla
There are also other states.
A short press gives status “1002”
On hold the status “1001” is send after some seconds. On release the status “1003” is send.
A double press gives status “1004”.
So there could be defined unlimited different actions for one button.
@SaxnPaule if you’re using the newest version of deconz then also the connection of different switch states to your zigbee lamps is easily possible by the phoscon app. But just only to the available zigbee lamps. Don’t know if this is what you want to switch…
The Aqara buttons aren’t available in the Phoscon app. They are only available via the api.
At the moment i switch different things in my flat.
Just in this moment I created a case where I can use the button for dimming my bath lights.
Rule for short press:
when state of Aqara-Switch-1 is "1002" then toggle beleuchtung-bad
Rules for long press:
when $dimlevel-bad > 100 then $dimlevel-bad = 25
when state of Aqara-Switch-1 is "1001" then $dimlevel-bad = $dimlevel-bad + 25 and after 1 second dim beleuchtung-bad to $dimlevel-bad
It’s also possible to define unlimited cases dependent on the press duration.
Just use the pimatic-datetime plugin and count the duration between press and release. Based on the result you could trigger as much actions you want.
You only need two rules for the measurement and one rule per action you want to trigger dependent on the duration.
@SaxnPaule thank you for the detailed explanation. Might be that your solution is also an option for me to set up a dimming case. But I’m wondering why your button is not available in the phoscon app. Might be that it is just a problem of a quiet new device, like yours. I’m using a WXKG02LM and this one is already provided. I will check if my device also differentiate in between long and short presses. If this is possible to recognize then I will try to implement also a dimming option.
It seems that my buttons are a new revision. See https://github.com/dresden-elektronik/deconz-rest-plugin/issues/917
@kosta said in New Plugin - [pimatic-raspbee]:
if you have already a service running on 80 you must change the port with these steps:
open this file in editor
sudo vi /etc/systemd/system/deconz-gui.service.d/local.conf
I have to change the port, because my NGNIX server is using port 80. So I want to change the .conf. But I can’t find it in /etc/systemd/system/deconz-gui.service.d/
. Even when I generate the file in the location the port adaption will not take place.
But the same content Kosta described is part of the deconz.service
file in /lib/systemd/system/
, too. When I change the port there and restart the RasPi the service works on the new port.
I made the installation according Kostas post. Why I can’t find /etc/systemd/system/deconz-gui.service.d/local.conf
?
On windows were I first tested the stick I got an address and a channel for the stick. And I was able to connect some sensors.
On the raspberry address and channel ist 0. No sensor can be connected here
No idea what could be wrong here…
*** Update ***
Okay, after a reset of the deconz GW now I have channel 11 and a valid address, but still no connection to aqara sensors possible…
Maybe this can help you.
https://github.com/dresden-elektronik/deconz-rest-plugin/issues/561
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)
Thx, will check it!
Could it be that the deCONZ stuff opens as well a port 443? With deCONZ I am not able to get from outside my network on my system. Further the stick lose address and channel after a reboot of the Pi. I was not able to pair any sensor while the stick was connected to my pimatic Pi.
Fortunately I have an old Pi 1 here. I installed everything there and got it to work. I really don’t want to maintain two Pi’s. Currently I have not so much work to get deeper into the root cause of the problem… so I will stay on the two Pi system
@kosta said in New Plugin - [pimatic-raspbee]:
An other good solution I’m using now is docker. See here
Hello Kosta,
do you think it’s possible to run the Docker immage on a Synology NAS and connect it to the Conbee USB stick which is plugged into the NAS?
Or does this only work with the Rasbee module for the Raspberry Pi?
Running Deconz on a Synology with the ConBee is possible: https://www.reddit.com/r/homeassistant/comments/9h510s/use_deconz_with_conbee_and_synology_nas_ds918/
The only thing that needs to be done is to change port and ip in the pimatic-raspbee plugin.
Theoretically speaking everything should work fine
@saxnpaule
Thank you, that sounds great, than I will order some Xioami Aqua Sensors and the Conbee Stick.
@V1per my experience with the deconz docker image is very well.
i use the image now a long time and updates are really easy.
if the synology supports docker there is no problem.
@OrTiN The manual says
The Websocket server is started on an unused proxy friendly port which, depending on the system, is either 443, 8088, 8088, 20877 or any other unused random port.
maybe docker is also a solution for you?
so
that is my docker config (is indeed ansible yml but adaptable)
- name: start deconz container
docker_container:
name: deconz
image: marthoc/deconz
state: started
restart_policy: unless-stopped
volumes:
- "/opt/docker/deconz:/root/.local/share/dresden-elektronik/deCONZ:rw"
devices:
- "/dev/deconz:/dev/ttyUSB0:rwm"
recreate: true
network_mode: host
env:
DECONZ_WEB_PORT: 3535
DECONZ_WS_PORT: 9822
Sure, but I changed it by changing of the local.conf. The service show then the new port 1235, but it was still not possible to get from outside on the system. However, I will give the docker solution a try. Will be my first try with docker. Never used this before.
hey guys,
since there were some problems installing the software and using the gui,
i created a github wiki section, which describes the most important things.
see here git wiki
One note. It is always recommended to update the software and the firmware regularly.
I fixed some problems by just doing this.
I have never used the GUI before and with Docker the WebUI works very well. But now I have a
separate test environment with a raspbee to better understand problems. With raspberrypi & raspbian-light.
My server is an intel itx-plattform and all services running as docker.
Hi guys,
Had some problems last days. They are now solved, but I thought I might share it.
I have two Trust ZYCT-202 that I use to control some lights. I created some rules in Pimatic to turn on/off and to set a dimlevel. So far so good.
But suddenly they stopped working within Pimatic. I could see them working in Deconz, but since they are not fully supported in the REST API and the Phoscon app, my only way to use them is through Pimatic. So, I got quite frustrated.
After some experimenting with no result, I was checking everything I changed. One of the things was installing pimatic-hap. This is really great, since I can control all devices through Siri. But, after deinstalling pimatic-hap, the two ZYCT-202’s started working again.
Currently, I reinstalled pimatic-hap again, to see what happens and until now, the two ZYCT-202’s still work. I don’t know if and how pimatic-hap and pimatic-rapsbee influence each other. If anyone else has more information, please share.
Update: after a while the ZYCT’s stopped working. After deactivating pimatic-hap they immediately worked again. So my conclusion is that pimatic-hap somehow blocks the ZYCT’s. Does anyone know if there’s a solution?
Small question regarding the ConBee stick backup option. Did somebody ever use the backup restore function? Does this work? I ask because I now start to move my Aqara stuff from the regular GW to the ConBee stick. Currently the stick is connected to an old Pi gen. 1. I want to use it in future on my pimatic Pi or on an zero W. I suppose that I can install the new Pi + the ConBee sw and by restoring the latest backup all sensors and there correct ID’s will be back. Am I right?
I mean that should be the idea of such a backup…
@ortin Backup and restore seem to work flawlessly on my system. If you press [[backup options-create backup]] a backup is created and you can choose the location where the backup should be saved. During the restore, you can load the prevoiusly created backup file. After the backup is loaded the Phoscon App should restart [[press refresh/F5]] in your browser