Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee) Topic is solved

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

Post Reply
User avatar
Minglarn
Posts: 214
Joined: Friday 21 August 2015 19:27
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8153
Location: Stockholm / Sweden
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by Minglarn »

So it's possible to adjust the settings for XIAOMI sensors from deCONZ?

How?
When you eliminate the impossible, whatever remains, however improbable, must be the truth.” -Spock in Star Trek VI
Thorgal789
Posts: 815
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by Thorgal789 »

I know 2 ways.
- Easy way, with deconz itself if you have the GUI, just select the device, display clusters and travel around the attributes, some of them are Read only, but somes are Read and Write attributes.
For exemple for the occupency sensor.
Image
- Expert way, use the REST API with a Rest client or curl
For exemple for vibration sensor.

Code: Select all

curl -H 'Content-Type: application/json' -X PUT -d '{"sensitivity": 21}' http://PHOSCON_IP/api/API_KEY/sensors/SENSOR_ID/config
But now, after reflexion, I think the REST API is the easier way, but you need to know perfectly the device, to know wich one setting are available in the API.
RavenNL
Posts: 7
Joined: Friday 29 March 2019 20:21
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by RavenNL »

Hi,

Thanks for your work!!
However I'm having a trouble that I can't find it in my hardware list after installing it in my plugin folder

Code: Select all

pi@raspberrypi:~/domoticz/plugins/deCONZ $ ls -ltrh
total 108K
-rw-r--r-- 1 pi pi 6.9K Mar 29 19:59 README.md
-rw-r--r-- 1 pi pi  35K Mar 29 19:59 LICENSE.txt
-rw-r--r-- 1 pi pi  14K Mar 29 19:59 fonctions.py
-rw-r--r-- 1 pi pi   51 Mar 29 19:59 banned_devices.txt
-rw-r--r-- 1 pi pi 2.6K Mar 29 19:59 API_KEY.py
-rw-r--r-- 1 pi pi  39K Mar 29 19:59 plugin.py
Any suggestions? I'm running a PI with raspbian and the latest (beta) of Domoticz. I restarted several times and when I check the 'Setup / Hardware -> HW list' I don't see any 'deconz hardware device'
Thorgal789
Posts: 815
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by Thorgal789 »

Hello, on my side it's called "deconz plugin".
Your install seem correct, you haven't a special message on log ? something about a python version ?
It's the first plugin you have installed ?
RavenNL
Posts: 7
Joined: Friday 29 March 2019 20:21
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by RavenNL »

Which log are you referring to? Let me say I haven't found any hint in logs or whatever (but i might have overlooked it).

What I did was the following;
Followed;
https://github.com/dresden-elektronik/d ... est-plugin
https://github.com/dresden-elektronik/d ... Z-manually
https://github.com/Smanar/Domoticz-deCONZ
updated raspbian (apt-get update & upgrade commands)

This is not my first plugin in Domoticz. I'm running another backup2dropbox script just fine.

Code: Select all

 drwxr-xr-x  5 pi   pi    4.0K Mar 29 21:03 plugins 

Code: Select all

 pi@raspberrypi:~/domoticz/plugins $ ls -ltrh
total 64K
drwxr-xr-x 3 pi pi 4.0K Aug 29  2017 AwoxSMP
-rwxr-xr-x 1 pi pi  49K Jan 10 19:21 dropbox_uploader.sh
drwxr-xr-x 2 pi pi 4.0K Feb 25 10:05 examples
drwxr-xr-x 3 pi pi 4.0K Mar 29 21:03 Domoticz-deCONZ
For now I have given up for today but might try tomorrow. Any tips are welcome
Thorgal789
Posts: 815
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by Thorgal789 »

I m speaking about domoticz log, on "setting" / "log"

On your second example, I can see another domoticz install with a "Domoticz-deCONZ" folder, you don't have same problem on this install ?

You have a docker install with headless mode ?
RavenNL
Posts: 7
Joined: Friday 29 March 2019 20:21
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by RavenNL »

Thorgal789 wrote: Friday 29 March 2019 23:33 I m speaking about domoticz log, on "setting" / "log"
Ah, no I don't have any errors but only the regular messages
On your second example, I can see another domoticz install with a "Domoticz-deCONZ" folder, you don't have same problem on this install ?
This was another attempt.
The directory is named 'Domoticz-deCONZ' by default when you git pull it to the plugin folder. The "deconz' folder you saw in an earlier post was my manually attempt when i manually changed 'Domoticz-deCONZ' to just 'deConz'. Because earlier in this thread you said to someone the the location should look somehing like /home/domoticz/plugin/deconz. So i was just trying to reproduce since my installation wasn't working with both folder names.
You have a docker install with headless mode ?
No, this is a plain Raspian installation with Domoticz on it along with a Pi-Hole installation. I don't use docker on this device.
Thorgal789
Posts: 815
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by Thorgal789 »

Ok, So for information, I think you have easier deconz installation than the link you have used ^^.
I m asking for log that appear at domoticz starting like these ones.
2019-03-30 09:58:08.420 Status: Domoticz V4.9700 (c)2012-2018 GizMoCuz
2019-03-30 09:58:08.420 Status: Build Hash: a3a45906, Date: 2018-06-23 16:24:51
2019-03-30 09:58:08.420 Status: Startup Path: /home/pi/domoticz/
2019-03-30 09:58:08.455 Status: EventSystem: reset all events...
2019-03-30 09:58:08.652 Status: PluginSystem: Started, Python version '3.5.3'.
2019-03-30 09:58:08.661 Status: WebServer(HTTP) started on address: :: with port 8080
2019-03-30 09:58:08.671 Status: WebServer(SSL) started on address: :: with port 443
2019-03-30 09:58:08.672 Status: Proxymanager started.
2019-03-30 09:58:08.674 Status: TCPServer: shared server started...
2019-03-30 09:58:08.674 Status: RxQueue: queue worker started...
2019-03-30 09:58:10.792 Kodi: (kodi) Starting thread.
2019-03-30 09:58:10.892 Kodi: Starting I/O service thread.
2019-03-30 09:58:10.675 Status: (deCONZ) Started.
2019-03-30 09:58:10.675 Status: DarkSky: Started...
2019-03-30 09:58:10.675 Status: Hardware Monitor: Started
2019-03-30 09:58:10.691 Status: Kodi: Started
2019-03-30 09:58:10.691 Status: (Compteur Linky) Started.
2019-03-30 09:58:10.692 Status: EventSystem: reset all events...
2019-03-30 09:58:10.693 Status: EventSystem: reset all device statuses...
2019-03-30 09:58:10.940 Status: Python EventSystem: Initalizing event module.
2019-03-30 09:58:10.941 Status: EventSystem: Started
2019-03-30 09:58:10.941 Status: EventSystem: Queue thread started...
2019-03-30 09:58:10.957 Status: PluginSystem: Entering work loop.
To have them you can just restart domoticz with

Code: Select all

sudo service domoticz restart
Can you see the Awox plugin in the hardware list too (awox smarplug) ? This plugin is a native exemple and is by defaut in your plugin folder.
RavenNL
Posts: 7
Joined: Friday 29 March 2019 20:21
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by RavenNL »

This is the the log that I see after restarting Domoticz

Code: Select all

2019-03-30 10:42:27.128 Sunrise: 06:17:00 SunSet: 19:05:00
2019-03-30 10:42:27.128 Day length: 12:48:00 Sun at south: 12:05:00
2019-03-30 10:42:27.128 Civil twilight start: 05:43:00 Civil twilight end: 19:38:00
2019-03-30 10:42:27.128 Nautical twilight start: 05:04:00 Nautical twilight end: 20:18:00
2019-03-30 10:42:27.128 Astronomical twilight start: 04:21:00 Astronomical twilight end: 21:00:00
2019-03-30 10:42:27.139 Active notification Subsystems: email, pushbullet (2/13)
2019-03-30 10:42:27.191 Starting shared server on: :::6144
2019-03-30 10:42:29.913 OpenZWave: Value_Added: Node: 2 (0x02), CommandClass: SWITCH BINARY, Label: Switch, Instance: 1
2019-03-30 10:42:29.914 OpenZWave: Value_Added: Node: 2 (0x02), CommandClass: METER, Label: Energy, Instance: 1
2019-03-30 10:42:29.914 OpenZWave: Value_Added: Node: 2 (0x02), CommandClass: METER, Label: Power, Instance: 1
2019-03-30 10:42:29.914 OpenZWave: Value_Added: Node: 2 (0x02), CommandClass: METER, Label: Voltage, Instance: 1
2019-03-30 10:42:29.914 OpenZWave: Value_Added: Node: 2 (0x02), CommandClass: METER, Label: Current, Instance: 1
2019-03-30 10:42:29.915 OpenZWave: Value_Added: Node: 2 (0x02), CommandClass: ALARM, Label: Alarm Type, Instance: 1
2019-03-30 10:42:29.915 OpenZWave: Value_Added: Node: 2 (0x02), CommandClass: ALARM, Label: Alarm Level, Instance: 1
2019-03-30 10:42:29.916 OpenZWave: Value_Added: Node: 2 (0x02), CommandClass: ALARM, Label: SourceNodeId, Instance: 1
2019-03-30 10:42:29.916 OpenZWave: Value_Added: Node: 2 (0x02), CommandClass: ALARM, Label: Power Management, Instance: 1
2019-03-30 10:42:29.917 OpenZWave: Value_Added: Node: 4 (0x04), CommandClass: SWITCH MULTILEVEL, Label: Level, Instance: 1
2019-03-30 10:42:29.918 OpenZWave: Value_Added: Node: 4 (0x04), CommandClass: SWITCH MULTILEVEL, Label: Bright, Instance: 1
2019-03-30 10:42:29.918 OpenZWave: Value_Added: Node: 4 (0x04), CommandClass: SWITCH MULTILEVEL, Label: Dim, Instance: 1
2019-03-30 10:42:29.918 OpenZWave: Value_Added: Node: 4 (0x04), CommandClass: COLOR, Label: Color, Instance: 1
2019-03-30 10:42:29.919 OpenZWave: Value_Added: Node: 4 (0x04), CommandClass: COLOR, Label: Color Index, Instance: 1
2019-03-30 10:42:29.920 OpenZWave: Value_Added: Node: 5 (0x05), CommandClass: SWITCH BINARY, Label: Switch, Instance: 1
2019-03-30 10:42:29.921 OpenZWave: Value_Added: Node: 5 (0x05), CommandClass: METER, Label: Energy, Instance: 1
2019-03-30 10:42:29.921 OpenZWave: Value_Added: Node: 5 (0x05), CommandClass: METER, Label: Power, Instance: 1
2019-03-30 10:42:29.921 OpenZWave: Value_Added: Node: 5 (0x05), CommandClass: METER, Label: Voltage, Instance: 1
2019-03-30 10:42:29.921 OpenZWave: Value_Added: Node: 5 (0x05), CommandClass: METER, Label: Current, Instance: 1
2019-03-30 10:42:29.922 OpenZWave: Value_Added: Node: 5 (0x05), CommandClass: ALARM, Label: Alarm Type, Instance: 1
2019-03-30 10:42:29.922 OpenZWave: Value_Added: Node: 5 (0x05), CommandClass: ALARM, Label: Alarm Level, Instance: 1
2019-03-30 10:42:29.923 OpenZWave: Value_Added: Node: 5 (0x05), CommandClass: ALARM, Label: SourceNodeId, Instance: 1
2019-03-30 10:42:29.923 OpenZWave: Value_Added: Node: 5 (0x05), CommandClass: ALARM, Label: Power Management, Instance: 1
2019-03-30 10:42:29.924 OpenZWave: Value_Added: Node: 6 (0x06), CommandClass: SWITCH BINARY, Label: Switch, Instance: 1
2019-03-30 10:42:29.924 OpenZWave: Value_Added: Node: 6 (0x06), CommandClass: METER, Label: Energy, Instance: 1
2019-03-30 10:42:29.925 OpenZWave: Value_Added: Node: 6 (0x06), CommandClass: METER, Label: Power, Instance: 1
2019-03-30 10:42:29.925 OpenZWave: Value_Added: Node: 6 (0x06), CommandClass: METER, Label: Voltage, Instance: 1
2019-03-30 10:42:29.925 OpenZWave: Value_Added: Node: 6 (0x06), CommandClass: METER, Label: Current, Instance: 1
2019-03-30 10:42:29.926 OpenZWave: Value_Added: Node: 6 (0x06), CommandClass: ALARM, Label: Alarm Type, Instance: 1
2019-03-30 10:42:29.926 OpenZWave: Value_Added: Node: 6 (0x06), CommandClass: ALARM, Label: Alarm Level, Instance: 1
2019-03-30 10:42:29.926 OpenZWave: Value_Added: Node: 6 (0x06), CommandClass: ALARM, Label: SourceNodeId, Instance: 1
2019-03-30 10:42:29.927 OpenZWave: Value_Added: Node: 6 (0x06), CommandClass: ALARM, Label: Power Management, Instance: 1
2019-03-30 10:42:29.928 OpenZWave: Value_Added: Node: 9 (0x09), CommandClass: SWITCH BINARY, Label: Switch, Instance: 1
2019-03-30 10:42:29.929 OpenZWave: Value_Added: Node: 9 (0x09), CommandClass: METER, Label: Energy, Instance: 1
2019-03-30 10:42:29.929 OpenZWave: Value_Added: Node: 9 (0x09), CommandClass: METER, Label: Power, Instance: 1
2019-03-30 10:42:29.929 OpenZWave: Value_Added: Node: 9 (0x09), CommandClass: METER, Label: Voltage, Instance: 1
2019-03-30 10:42:29.929 OpenZWave: Value_Added: Node: 9 (0x09), CommandClass: METER, Label: Current, Instance: 1
2019-03-30 10:42:29.930 OpenZWave: Value_Added: Node: 9 (0x09), CommandClass: ALARM, Label: Alarm Type, Instance: 1
2019-03-30 10:42:29.930 OpenZWave: Value_Added: Node: 9 (0x09), CommandClass: ALARM, Label: Alarm Level, Instance: 1
2019-03-30 10:42:29.930 OpenZWave: Value_Added: Node: 9 (0x09), CommandClass: ALARM, Label: SourceNodeId, Instance: 1
2019-03-30 10:42:29.931 OpenZWave: Value_Added: Node: 9 (0x09), CommandClass: ALARM, Label: Power Management, Instance: 1
2019-03-30 10:42:30.723 (RFLink) Temp + Humidity (Temperatuur slaapkamer)
2019-03-30 10:42:31.133 InfluxLink: value Temperature,idx=520,name=Temperatuur-slaapkamer value=20.6
2019-03-30 10:42:31.133 InfluxLink: value Humidity,idx=520,name=Temperatuur-slaapkamer value=50
2019-03-30 10:42:31.133 InfluxLink: value Humidity-Status,idx=520,name=Temperatuur-slaapkamer value=Comfortable
2019-03-30 10:42:32.117 (RFLink) Temp + Humidity (Temperatuur Buiten)
2019-03-30 10:42:32.173 (Z-Stick) General/kWh (kWh Meter PC)
2019-03-30 10:42:32.251 InfluxLink: value Temperature,idx=1288,name=Temperatuur-Buiten value=28.1
2019-03-30 10:42:32.251 InfluxLink: value Humidity,idx=1288,name=Temperatuur-Buiten value=16
2019-03-30 10:42:32.251 InfluxLink: value Humidity-Status,idx=1288,name=Temperatuur-Buiten value=Dry
2019-03-30 10:42:33.435 (P1) P1 Smart Meter (Power)
2019-03-30 10:42:33.438 (P1) Usage (Usage L1)
2019-03-30 10:42:33.440 (P1) Usage (Delivery L1)
2019-03-30 10:42:33.447 (P1) P1 Smart Meter (Gas)
2019-03-30 10:42:33.898 InfluxLink: value Usage-1,idx=267,name=Power value=5636371
2019-03-30 10:42:33.898 InfluxLink: value Usage-2,idx=267,name=Power value=3127276
2019-03-30 10:42:33.898 InfluxLink: value Usage-current,idx=267,name=Power value=466.0
2019-03-30 10:42:33.898 InfluxLink: value Gas-usage,idx=268,name=Gas value=1458.780
2019-03-30 10:42:36.503 (Z-Stick) Usage (Unknown)
2019-03-30 10:42:36.507 (Z-Stick) General/kWh (kWh Meter PC)
2019-03-30 10:42:36.964 (Nest) Thermostat (Home Downstairs Setpoint)
2019-03-30 10:42:36.967 (Nest) Temp + Humidity (Home Downstairs TempHum)
2019-03-30 10:42:37.365 InfluxLink: value Temperature,idx=97,name=Home-Downstairs-TempHum value=21.0
2019-03-30 10:42:37.365 InfluxLink: value Humidity,idx=97,name=Home-Downstairs-TempHum value=44
2019-03-30 10:42:37.365 InfluxLink: value Humidity-Status,idx=97,name=Home-Downstairs-TempHum value=Comfortable
2019-03-30 10:42:42.691 (Z-Stick) General/kWh (kWh Meter NAS)
2019-03-30 10:42:43.454 (P1) P1 Smart Meter (Power)
2019-03-30 10:42:43.458 (P1) Usage (Usage L1)
2019-03-30 10:42:43.460 (P1) Usage (Delivery L1)
2019-03-30 10:42:43.943 InfluxLink: value Usage-1,idx=267,name=Power value=5636373
2019-03-30 10:42:43.943 InfluxLink: value Usage-current,idx=267,name=Power value=475.0
2019-03-30 10:42:47.898 (Z-Stick) Current (Unknown)
2019-03-30 10:42:50.633 (Z-Stick) Current (Unknown)
2019-03-30 10:42:50.718 (Z-Stick) General/kWh (kWh Meter AV)
2019-03-30 10:42:50.732 (Z-Stick) Current (Unknown)
2019-03-30 10:42:51.457 (Z-Stick) Usage (Unknown)
2019-03-30 10:42:51.464 (Z-Stick) General/kWh (kWh Meter AV)
2019-03-30 10:42:51.702 (Z-Stick) General/kWh (kWh Meter Tuin)
2019-03-30 10:42:51.804 (Z-Stick) Usage (Unknown)
2019-03-30 10:42:51.811 (Z-Stick) General/kWh (kWh Meter Tuin)
2019-03-30 10:42:51.923 (Z-Stick) General/Voltage (Voltage)
2019-03-30 10:42:52.073 (Z-Stick) Current (Unknown)
2019-03-30 10:42:52.226 (Z-Stick) Light/Switch (Alarm Type)
2019-03-30 10:42:52.230 (Z-Stick) Light/Switch (Alarm Level)
2019-03-30 10:42:52.233 (Z-Stick) General/Alarm (Alarm Type: Power Management 8 (0x08))
2019-03-30 10:42:52.236 (Z-Stick) Light/Switch (Power Management)
2019-03-30 10:42:52.301 (Z-Stick) Light/Switch (Level)
2019-03-30 10:42:53.479 (P1) P1 Smart Meter (Power)
2019-03-30 10:42:53.482 (P1) Usage (Usage L1)
2019-03-30 10:42:53.484 (P1) Usage (Delivery L1)
2019-03-30 10:42:53.563 InfluxLink: value Usage-1,idx=267,name=Power value=5636374
2019-03-30 10:42:53.563 InfluxLink: value Usage-current,idx=267,name=Power value=471.0
2019-03-30 10:42:54.896 (Z-Stick) General/Voltage (Voltage)
2019-03-30 10:42:54.955 (Z-Stick) General/Voltage (Voltage)
2019-03-30 10:42:55.005 (Z-Stick) General/Voltage (Voltage)
2019-03-30 10:42:55.043 (Z-Stick) Current (Unknown)
2019-03-30 10:42:55.082 (Z-Stick) Light/Switch (Alarm Type)
2019-03-30 10:42:55.085 (Z-Stick) Light/Switch (Alarm Level)
2019-03-30 10:42:55.088 (Z-Stick) General/Alarm (Alarm Type: Power Management 8 (0x08))
2019-03-30 10:42:55.092 (Z-Stick) Light/Switch (Power Management)
2019-03-30 10:42:56.006 (Z-Stick) General/kWh (kWh Meter NAS)
2019-03-30 10:42:57.791 (Z-Stick) General/kWh (kWh Meter PC)
2019-03-30 10:42:57.861 (Z-Stick) Usage (Unknown)
2019-03-30 10:42:57.867 (Z-Stick) General/kWh (kWh Meter PC)
2019-03-30 10:42:58.054 (Z-Stick) General/kWh (kWh Meter NAS)
2019-03-30 10:42:58.102 (Z-Stick) Usage (Unknown)
2019-03-30 10:42:58.110 (Z-Stick) General/kWh (kWh Meter NAS)
2019-03-30 10:42:58.147 (Z-Stick) General/Voltage (Voltage)
2019-03-30 10:42:58.182 (Z-Stick) Current (Unknown)
2019-03-30 10:42:58.221 (Z-Stick) Light/Switch (Alarm Type)
2019-03-30 10:42:58.225 (Z-Stick) Light/Switch (Alarm Level)
2019-03-30 10:42:58.227 (Z-Stick) General/Alarm (Alarm Type: Power Management 8 (0x08))
2019-03-30 10:42:58.231 (Z-Stick) Light/Switch (Power Management)
2019-03-30 10:42:58.386 (Z-Stick) General/kWh (kWh Meter PC)
2019-03-30 10:42:58.419 (Z-Stick) Usage (Unknown)
2019-03-30 10:42:58.427 (Z-Stick) General/kWh (kWh Meter PC)
2019-03-30 10:42:58.486 (Z-Stick) Usage (Unknown)
2019-03-30 10:42:58.493 (Z-Stick) General/kWh (kWh Meter PC)
2019-03-30 10:42:58.517 (Z-Stick) Current (Unknown)
2019-03-30 10:42:58.557 (Z-Stick) Light/Switch (Alarm Type)
2019-03-30 10:42:58.562 (Z-Stick) Light/Switch (Alarm Level)
2019-03-30 10:42:58.564 (Z-Stick) General/Alarm (Alarm Type: Power Management 8 (0x08))
2019-03-30 10:42:58.568 (Z-Stick) Light/Switch (Power Management)
2019-03-30 10:42:59.046 (Z-Stick) General/Voltage (Voltage)
2019-03-30 10:42:59.860 (Z-Stick) Current (Unknown)
2019-03-30 10:43:03.492 (P1) P1 Smart Meter (Power)
2019-03-30 10:43:03.496 (P1) Usage (Usage L1)
2019-03-30 10:43:03.498 (P1) Usage (Delivery L1)
2019-03-30 10:43:03.675 InfluxLink: value Usage-1,idx=267,name=Power value=5636375
2019-03-30 10:43:03.675 InfluxLink: value Usage-current,idx=267,name=Power value=487.0
2019-03-30 10:43:04.517 (Z-Stick) General/kWh (kWh Meter NAS)
2019-03-30 10:43:05.423 (Z-Stick) Usage (Unknown)
2019-03-30 10:43:05.431 (Z-Stick) General/kWh (kWh Meter NAS)
2019-03-30 10:43:05.594 (RFLink) Temp + Humidity (Temperatuur slaapkamer)
2019-03-30 10:43:06.500 (Z-Stick) General/Voltage (Voltage)
2019-03-30 10:43:07.416 (Z-Stick) Current (Unknown)
2019-03-30 10:43:10.514 (Z-Stick) General/kWh (kWh Meter NAS)
2019-03-30 10:43:11.417 (Z-Stick) Usage (Unknown)
2019-03-30 10:43:11.424 (Z-Stick) General/kWh (kWh Meter NAS)
2019-03-30 10:43:12.500 (Z-Stick) General/Voltage (Voltage)
2019-03-30 10:43:13.414 (Z-Stick) Current (Unknown)
2019-03-30 10:43:13.512 (P1) P1 Smart Meter (Power)
2019-03-30 10:43:13.515 (P1) Usage (Usage L1)
2019-03-30 10:43:13.516 (P1) Usage (Delivery L1)
2019-03-30 10:43:13.766 InfluxLink: value Usage-1,idx=267,name=Power value=5636377
2019-03-30 10:43:13.766 InfluxLink: value Usage-current,idx=267,name=Power value=501.0
2019-03-30 10:43:23.532 (P1) P1 Smart Meter (Power)
2019-03-30 10:43:23.535 (P1) Usage (Usage L1)
2019-03-30 10:43:23.537 (P1) Usage (Delivery L1)
2019-03-30 10:43:23.869 InfluxLink: value Usage-1,idx=267,name=Power value=5636378
2019-03-30 10:43:23.869 InfluxLink: value Usage-current,idx=267,name=Power value=480.0
Can you see the Awox plugin in the hardware list too (awox smarplug) ? This plugin is a native exemple and is by defaut in your plugin folder.
Can you see the Awox plugin in the hardware list too (awox smarplug) ? This plugin is a native exemple and is by defaut in your plugin folder.
No I do not...weird :S
Thorgal789
Posts: 815
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by Thorgal789 »

It miss the first lines logs.
Try to take a look on "status" or "error" tabs, it memorise some lines.

The log buffer is small, to have the first line, try to disable logging for openzwave and z-Stick hardware plugin. The first lines are exactly like mines.

The line I m searching is this one
2019-03-30 09:58:08.652 Status: PluginSystem: Started, Python version '3.5.3'.
I hope for an error here. I think all your python plugin are not working so it's a problem in python framework.
pi@raspberrypi:~ $ python --version
Python 2.7.13
pi@raspberrypi:~ $ python3 --version
Python 3.5.3
https://www.domoticz.com/wiki/Using_Python_plugins
RavenNL
Posts: 7
Joined: Friday 29 March 2019 20:21
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by RavenNL »

This is what I'm seeing after a restart under the 'All' tab, status is empty and there is no error tab.

https://imgur.com/t4cYfPY

Code: Select all

pi@raspberrypi:~ $ sudo service domoticz restart
pi@raspberrypi:~ $ python --version
Python 2.7.13
pi@raspberrypi:~ $ python3 --version
Python 3.5.3 
salopette
Posts: 187
Joined: Tuesday 07 March 2017 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Germany
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by salopette »

you have to set up the plugin first!
Do you have teamviewer? Dan, I can maybe watch
RavenNL
Posts: 7
Joined: Friday 29 March 2019 20:21
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by RavenNL »

I found the problem (I followed the plugin instructions you posted earlier again and still didn't work) but i found another similiar topic who gave the tip to enable Settings -> Other -> EventSystem .

In my case it was already enabled so I turned it off and again again followed by a restart and now the plugin is showing in the hardware list.

Thanks for helping me! Really appreciated!
Thorgal789
Posts: 815
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by Thorgal789 »

Hu ? Lol, I m glad it works now, but I still don't understand the bug and how it can be resolved with eventsystem ?

You still have the link to the forum with the similar bug ?
RavenNL
Posts: 7
Joined: Friday 29 March 2019 20:21
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by RavenNL »

Thorgal789 wrote: Saturday 30 March 2019 14:29 Hu ? Lol, I m glad it works now, but I still don't understand the bug and how it can be resolved with eventsystem ?

You still have the link to the forum with the similar bug ?
viewtopic.php?t=21075
Thorgal789
Posts: 815
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by Thorgal789 »

Ok, so thx a lot ^^.
Realy good to know.
stefanwo
Posts: 16
Joined: Sunday 05 November 2017 12:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by stefanwo »

@Thorgal789
At first i want to thank you for this great Plugin! Is it possible to make a donation for your work?

And my next question is, if you have any eta for the support of the temperatur sensors like you write on github for the next beta version? Just asking, because i use some xiaomi sensors and would love to use them in Donoticz too.
Thorgal789
Posts: 815
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by Thorgal789 »

Nope, no donation yet, the project is little and most of the work was done by deCONZ devs,but I really appreciate your thanks :).

On the beta, I m adding covering, door lock, vibration sensor ans thermostat, but you have a xiaomi temperature sensor that are not already used by deconz ? The square that make temperature + humidity + pression ? If it's this one, You can add it without problem.
stefanwo
Posts: 16
Joined: Sunday 05 November 2017 12:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by stefanwo »

Hey thanks for info, but you know i'm willing to donate your work.

I'm using this one: Xiaomi Mijia Smart Temperature and Humidity Sensor ( https://www.gearbest.com/living-applian ... id=1433363 )

And like you see it works fine in Phoscon:
2019-04-02 19_22_09-Window.png
2019-04-02 19_22_09-Window.png (21.79 KiB) Viewed 2151 times
And in Domotic are two new devices since i add the sensor to phoscon. But there is no temperatur or humidity level shown. Just Zero:
2019-04-02 19_10_28-Window.png
2019-04-02 19_10_28-Window.png (10.44 KiB) Viewed 2153 times

It seems that it doesnt update the device like you see at the last time seen. Did i made anything wrong at inclusion? The included Osram switch works fine, so connection is there.

...
Update1:
OK Sorry for this confusion... now i update the deconz plugin by clicking update in the device page. And the devices syncronize. But only when i update the deconz plugin manualy. If the temperatur changes in phoscon, it doesnt change in domoticz...
2019-04-02 19_26_19-Window.png
2019-04-02 19_26_19-Window.png (14.59 KiB) Viewed 2150 times
Ok Update 2. I found this in domoticz log:

Code: Select all

 2019-04-02 19:34:40.274 Error: CConnection_disconnect, disconnection request from 'deconz' ignored. Transport does not exist.
2019-04-02 19:34:51.059 Status: (deconz) ### deCONZ ready
2019-04-02 19:34:51.059 Status: (deconz) ### Found 2 Operators, 3 Sensors, 2 Groups with 0 Ignored 
Thorgal789
Posts: 815
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by Thorgal789 »

If all is ok, you will receive websocket information every hours or if the temperature change. Something like that if you enable debug.

Code: Select all

2019-04-02 19:54:46.973 (deCONZ) ###### WebSocket Data : {'state': {'temperature': 2092, 'lastupdated': '2019-04-02T17:54:46'}, 'r': 'sensors', 'uniqueid': '00:15:8d:00:02:3f:38:56-01-0402', 'id': '17', 'e': 'changed', 't': 'event'}
2019-04-02 19:54:46.973 (deCONZ) ### Update device (deCONZ - Multi Sensor) : {'sValue': '20.92', 'nValue': 0}
2019-04-02 19:54:47.030 (deCONZ) onMessage called
2019-04-02 19:54:47.031 (deCONZ) ###### WebSocket Data : {'state': {'humidity': 7477, 'lastupdated': '2019-04-02T17:54:46'}, 'r': 'sensors', 'uniqueid': '00:15:8d:00:02:3f:38:56-01-0405', 'id': '18', 'e': 'changed', 't': 'event'}
2019-04-02 19:54:47.032 (deCONZ) ### Update device (deCONZ - Multi Sensor) : {'sValue': '0', 'nValue': 74}
2019-04-02 19:54:47.034 (deCONZ) onMessage called
2019-04-02 19:54:47.035 (deCONZ) ###### WebSocket Data : {'state': {'pressure': 994, 'lastupdated': '2019-04-02T17:54:47'}, 'r': 'sensors', 'uniqueid': '00:15:8d:00:02:3f:38:56-01-0403', 'id': '19', 'e': 'changed', 't': 'event'}
2019-04-02 19:54:47.037 (deCONZ) ### Update device (deCONZ - Multi Sensor) : {'sValue': '994', 'nValue': 0}, IGNORED , no changes !
I have produce theses log with taking the sensor into my closed hands.

For information you need to resynchronise the plugin every time you chnage something on deconz, it will work without problems, but you can miss information or have strange error on log.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest