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

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

Moderator: leecollings

Jemand
Posts: 15
Joined: Saturday 11 May 2019 12:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by Jemand »

I have bought a zigbee-device which monitors my powermeter. It has the total consumption and a power value. I only get the total consumption in domoticz but not the current power.

It would be great if I could add another utility device with the current power to the utility section of domoticz.

The raw output of the device is this:

Code: Select all

{
  "config": {
    "interfacemode": 1,
    "on": true,
    "pulseconfiguration": 1000,
    "reachable": true
  },
  "ep": 2,
  "etag": "5fd244ae59817c97ad8f45052928ff40",
  "lastannounced": "2022-01-07T15:47:45Z",
  "lastseen": "2022-01-07T17:35Z",
  "manufacturername": "Develco Products A/S",
  "modelid": "ZHEMI101",
  "name": "Consumption 75",
  "state": {
    "consumption": 3614,
    "lastupdated": "2022-01-07T17:36:37.330",
    "power": 1679
  },
  "type": "ZHAConsumption",
  "uniqueid": "00:15:bc:00:1b:02:1f:0f-02-0702",
  "id": "75",
  "deviceclass": "sensors"
}
Is there any chance you could update the deconz-Plugin to have another device with the current usage (which is 1679 Watt in this case)?
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 »

Yep this code part was disabled, but I don't remember why, and never re-enabled because most of sensor use 2 different endpoint for that, so you will have 2 sensors a ZHAconsumption and a ZHAPower.

For your device, if I m right you will have both values on the same widget. Have re-enabled this code part can you try with the beta branch ?

Code: Select all

git pull
git checkout beta
git pull
Just delete the previous widget, it will be re-created with the new one
Jemand
Posts: 15
Joined: Saturday 11 May 2019 12:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by Jemand »

Thorgal789 wrote: Saturday 08 January 2022 10:49 For your device, if I m right you will have both values on the same widget. Have re-enabled this code part can you try with the beta branch ?
Thanks but now I get the following errors:

Code: Select all

2022-01-08 11:09:40.136 Error: Deconz: (Deconz) 'onHeartbeat' failed 'TypeError':'CreateIfnotExist() takes 4 positional arguments but 5 were given'.
2022-01-08 11:09:40.136 Error: Deconz: (Deconz) ----> Line 1112 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function onHeartbeat
2022-01-08 11:09:40.137 Error: Deconz: (Deconz) ----> Line 508 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function onHeartbeat
2022-01-08 11:09:40.137 Error: Deconz: (Deconz) ----> Line 565 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function ManageInit
2022-01-08 11:09:40.137 Error: Deconz: (Deconz) ----> Line 1005 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function SendCommand
2022-01-08 11:09:40.137 Error: Deconz: (Deconz) ----> Line 1046 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function UpdateBuffer
2022-01-08 11:09:40.137 Error: Deconz: (Deconz) ----> Line 769 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function NormalConnexion
2022-01-08 11:09:40.137 Error: Deconz: (Deconz) ----> Line 709 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function InitDomoticzDB
Jemand
Posts: 15
Joined: Saturday 11 May 2019 12:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by Jemand »

Okay, I think I fixed it:
plugin.py:

Code: Select all

 747:     def CreateIfnotExist(self,__IEEE,__Type,Name,opt = 0):
 748:         if GetDomoDeviceInfo(__IEEE) == False:
 749:             CreateDevice(__IEEE,Name,__Type, opt)
But this now only shows the current power and not the total consumption. So maybe my fix is not working :-)
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, your fix is perefct, I will add it too.

How is the new widget ? (need to delete the previous one and restart the plugin hardware/deconz/update)
It need to be a widget with kw/h and power, probably this one

Image
Jemand
Posts: 15
Joined: Saturday 11 May 2019 12:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by Jemand »

Ah okay, I thought I would get 2 devices. One with the current usage and one with the total consumption. This would be better for me. I mean like outlets with power meter like the Blitzwolf SH13. I also couldn't find a meter offset to enter when I checked out the beta.
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 depend of devices, somes have ZHAconsumption and ZHAPower, and somes have all values on the first one.
And I never see an offset for this kind of devices too, you want one on power or consumption ?

Code: Select all

  "config": {
    "interfacemode": 1,
    "pulseconfiguration": 1000,
  },
You have some information on thoses settings ?

Edit:

Ok, so nothing usefull for you, interfacemode if for electricity/gaz/water/ect ...
Jemand
Posts: 15
Joined: Saturday 11 May 2019 12:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by Jemand »

This is what i mean with offset:

Image
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 »

Ha ok, so thoses one can't work, offset setting in domoticz can't work on python plugin (from the last time I have asked)
On deconz there is some device that use offset, but it's temperature, humidity, ect .... not consumption one.

You are using this offset to simulate a starting point to count ? It s not possible to reset this counter on the device ? (on some of then just need to unplug it)
altaphista
Posts: 12
Joined: Tuesday 05 April 2022 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: NL
Contact:

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

Post by altaphista »

My Raspberry 'crashed' yesterday, didnt want to reboot so unfortunately had to reinstall everything. I ran Domoticz on it with a Conbee2 stick and some 433mhz stuff. Good thing is clean install, but after I installed Domoticz-deCONZ plugin my Domoticz just stops working after about 10 seconds. If I remove the direcory 'Domoticz-deCONZ' in plugins, it works again.
My error log if I startup via commandline with ./domoticz :

Code: Select all

2022-04-05 16:38:54.111  Error: Domoticz(pid:11986, tid:12012('deconz')) received fatal signal 11 (Segmentation fault)
2022-04-05 16:38:54.112  Error: siginfo address=0x2ed2, address=(nil)
2022-04-05 16:38:55.915  Error: Did not find stack frame for thread (LWP 12012)), printing full gdb output:

2022-04-05 16:38:55.915  Error: > [New LWP 11987]
2022-04-05 16:38:55.915  Error: > [New LWP 11988]
2022-04-05 16:38:55.915  Error: > [New LWP 11989]
2022-04-05 16:38:55.915  Error: > [New LWP 11990]
2022-04-05 16:38:55.915  Error: > [New LWP 11991]
2022-04-05 16:38:55.916  Error: > [New LWP 11992]
2022-04-05 16:38:55.916  Error: > [New LWP 11993]
2022-04-05 16:38:55.916  Error: > [New LWP 11994]
2022-04-05 16:38:55.916  Error: > [New LWP 11995]
2022-04-05 16:38:55.916  Error: > [New LWP 11996]
2022-04-05 16:38:55.916  Error: > [New LWP 12009]
2022-04-05 16:38:55.916  Error: > [New LWP 12010]
2022-04-05 16:38:55.916  Error: > [New LWP 12011]
2022-04-05 16:38:55.916  Error: > [New LWP 12012]
2022-04-05 16:38:55.916  Error: > [New LWP 12013]
2022-04-05 16:38:55.916  Error: > [New LWP 12014]
2022-04-05 16:38:55.916  Error: > [New LWP 12015]
2022-04-05 16:38:55.916  Error: > [New LWP 12016]
2022-04-05 16:38:55.916  Error: > [New LWP 12023]
2022-04-05 16:38:55.916  Error: > [Thread debugging using libthread_db enabled]
2022-04-05 16:38:55.916  Error: > Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
2022-04-05 16:38:55.916  Error: > 0xb6898f8c in __GI___clock_nanosleep_time64 (clock_id=clock_id@entry=0, flags=flags@entry=0, req=0xbee73f18, req@entry=0xbee73f10, rem=0xbee73f28, rem@entry=0xbee73f20) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:52
2022-04-05 16:38:55.916  Error: > 52	../sysdeps/unix/sysv/linux/clock_nanosleep.c: No such file or directory.
2022-04-05 16:38:55.916  Error: >   Id   Target Id                                       Frame 
2022-04-05 16:38:55.916  Error: > * 1    Thread 0xb6f19240 (LWP 11986) "domoticz"        0xb6898f8c in __GI___clock_nanosleep_time64 (clock_id=clock_id@entry=0, flags=flags@entry=0, req=0xbee73f18, req@entry=0xbee73f10, rem=0xbee73f28, rem@entry=0xbee73f20) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:52
2022-04-05 16:38:55.916  Error: >   2    Thread 0xb5894200 (LWP 11987) "Watchdog"        0xb6898f8c in __GI___clock_nanosleep_time64 (clock_id=clock_id@entry=0, flags=flags@entry=0, req=0xb5893b70, req@entry=0xb5893b68, rem=0xb5893b80, rem@entry=0xb5893b78) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:52
2022-04-05 16:38:55.916  Error: >   3    Thread 0xb5093200 (LWP 11988) "SQLHelper"       syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2022-04-05 16:38:55.917  Error: >   4    Thread 0xb4892200 (LWP 11989) "PluginMgr"       syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2022-04-05 16:38:55.917  Error: >   5    Thread 0xb3a57200 (LWP 11990) "InfluxPush"      syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2022-04-05 16:38:55.917  Error: >   6    Thread 0xb3256200 (LWP 11991) "Webem_ssncleane" 0xb68d863c in epoll_wait (epfd=20, events=0xb3255358, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
2022-04-05 16:38:55.917  Error: >   7    Thread 0xb2a22200 (LWP 11992) "WebServer_8080"  0xb68d863c in epoll_wait (epfd=16, events=0xb2a21328, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
2022-04-05 16:38:55.917  Error: >   8    Thread 0xb20ff200 (LWP 11993) "Scheduler"       syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2022-04-05 16:38:55.917  Error: >   9    Thread 0xb18fe200 (LWP 11994) "TCPServer"       0xb68d863c in epoll_wait (epfd=23, events=0xb18fd358, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
2022-04-05 16:38:55.917  Error: >   10   Thread 0xb0eff200 (LWP 11995) "MainWorker"      syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2022-04-05 16:38:55.917  Error: >   11   Thread 0xb06fe200 (LWP 11996) "MainWorkerRxMsg" futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0xb06fdb80, clockid=<optimized out>, expected=0, futex_word=0xa8e3b4 <m_mainworker+3988>) at ../sysdeps/nptl/futex-internal.h:323
2022-04-05 16:38:55.917  Error: >   12   Thread 0xafaff200 (LWP 12009) "rfxcom"          syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2022-04-05 16:38:55.917  Error: >   13   Thread 0xaf2fe200 (LWP 12010) "MainWorker"      0xb68d863c in epoll_wait (epfd=13, events=0xaf2fd340, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
2022-04-05 16:38:55.917  Error: >   14   Thread 0xae8ff200 (LWP 12011) "p1slimme meter"  syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2022-04-05 16:38:55.917  Error: >   15   Thread 0xae0fe200 (LWP 12012) "deconz"          0xb689f4d4 in __GI___wait4 (pid=12103, stat_loc=0x1371e10, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
2022-04-05 16:38:55.917  Error: >   16   Thread 0xad6ff200 (LWP 12013) "NotificationSys" futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0xad6febb0, clockid=<optimized out>, expected=0, futex_word=0xa8de7c <m_mainworker+2652>) at ../sysdeps/nptl/futex-internal.h:323
2022-04-05 16:38:55.917  Error: >   17   Thread 0xacefe200 (LWP 12014) "EventSystem"     syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2022-04-05 16:38:55.917  Error: >   18   Thread 0xac6fd200 (LWP 12015) "EventSystemQueu" futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0xac6fcac0, clockid=<optimized out>, expected=0, futex_word=0xa8d57c <m_mainworker+348>) at ../sysdeps/nptl/futex-internal.h:323
2022-04-05 16:38:55.917  Error: >   19   Thread 0xabdbc200 (LWP 12016) "Plugin_ASIO"     futex_wait_cancelable (private=0, expected=0, futex_word=0x12a0498) at ../sysdeps/nptl/futex-internal.h:186
2022-04-05 16:38:55.917  Error: >   20   Thread 0xab2d3200 (LWP 12023) "rfxcom"          0xb68d863c in epoll_wait (epfd=10, events=0xab2d2340, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
2022-04-05 16:38:55.917  Error: > 
2022-04-05 16:38:55.917  Error: > Thread 20 (Thread 0xab2d3200 (LWP 12023) "rfxcom"):
2022-04-05 16:38:55.917  Error: > #0  0xb68d863c in epoll_wait (epfd=10, events=0xab2d2340, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
2022-04-05 16:38:55.917  Error: > #1  0x003d519c in boost::asio::detail::epoll_reactor::run(long, boost::asio::detail::op_queue<boost::asio::detail::scheduler_operation>&) ()
2022-04-05 16:38:55.917  Error: > #2  0x003d7194 in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
2022-04-05 16:38:55.917  Error: > #3  0x003d9520 in boost::detail::thread_data<AsyncSerial::open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, boost::asio::serial_port_base::parity, boost::asio::serial_port_base::character_size, boost::asio::serial_port_base::flow_control, boost::asio::serial_port_base::stop_bits)::{lambda()#2}>::run() ()
2022-04-05 16:38:55.917  Error: > #4  0x0077d374 in thread_proxy ()
2022-04-05 16:38:55.917  Error: > #5  0xb6a14300 in start_thread (arg=0xab2d3200) at pthread_create.c:477
2022-04-05 16:38:55.917  Error: > #6  0xb68d8208 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2022-04-05 16:38:55.917  Error: > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
2022-04-05 16:38:55.917  Error: > 
2022-04-05 16:38:55.918  Error: > Thread 19 (Thread 0xabdbc200 (LWP 12016) "Plugin_ASIO"):
2022-04-05 16:38:55.918  Error: > #0  futex_wait_cancelable (private=0, expected=0, futex_word=0x12a0498) at ../sysdeps/nptl/futex-internal.h:186
2022-04-05 16:38:55.918  Error: > #1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x0, cond=0x12a0470) at pthread_cond_wait.c:508
2022-04-05 16:38:55.918  Error: > #2  __pthread_cond_wait (cond=0x12a0470, mutex=0x0) at pthread_cond_wait.c:638
2022-04-05 16:38:55.918  Error: > #3  0x003d727c in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
2022-04-05 16:38:55.918  Error: > #4  0x00683e74 in Plugins::BoostWorkers() ()
2022-04-05 16:38:55.918  Error: > #5  0x0077d374 in thread_proxy ()
2022-04-05 16:38:55.918  Error: > #6  0xb6a14300 in start_thread (arg=0xabdbc200) at pthread_create.c:477
2022-04-05 16:38:55.918  Error: > #7  0xb68d8208 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2022-04-05 16:38:55.918  Error: > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
2022-04-05 16:38:55.918  Error: > 
2022-04-05 16:38:55.918  Error: > Thread 18 (Thread 0xac6fd200 (LWP 12015) "EventSystemQueu"):
2022-04-05 16:38:55.918  Error: > #0  futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0xac6fcac0, clockid=<optimized out>, expected=0, futex_word=0xa8d57c <m_mainworker+348>) at ../sysdeps/nptl/futex-internal.h:323
2022-04-05 16:38:55.918  Error: > #1  __pthread_cond_wait_common (abstime=0xac6fcac0, clockid=<optimized out>, mutex=0x0, cond=0xa8d550 <m_mainworker+304>) at pthread_cond_wait.c:520
2022-04-05 16:38:55.918  Error: > #2  __pthread_cond_timedwait (cond=0xa8d550 <m_mainworker+304>, mutex=0x0, abstime=0xac6fcac0) at pthread_cond_wait.c:656
2022-04-05 16:38:55.918  Error: > #3  0x00213404 in CEventSystem::EventQueueThread() ()
2022-04-05 16:38:55.918  Error: > #4  0x00906734 in execute_native_thread_routine ()
2022-04-05 16:38:55.918  Error: > #5  0xb6a14300 in start_thread (arg=0xac6fd200) at pthread_create.c:477
2022-04-05 16:38:55.918  Error: > #6  0xb68d8208 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2022-04-05 16:38:55.918  Error: > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
2022-04-05 16:38:55.918  Error: > 
2022-04-05 16:38:55.919  Error: > Thread 17 (Thread 0xacefe200 (LWP 12014) "EventSystem"):
2022-04-05 16:38:55.919  Error: > #0  syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2022-04-05 16:38:55.919  Error: > #1  0x008e41a4 in std::__atomic_futex_unsigned_base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::duration<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::ratio<1ll, 1000000000ll> >) ()
2022-04-05 16:38:55.919  Error: > #2  0x0020a438 in CEventSystem::Do_Work() ()
2022-04-05 16:38:55.919  Error: > #3  0x00906734 in execute_native_thread_routine ()
2022-04-05 16:38:55.919  Error: > #4  0xb6a14300 in start_thread (arg=0xacefe200) at pthread_create.c:477
2022-04-05 16:38:55.919  Error: > #5  0xb68d8208 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2022-04-05 16:38:55.919  Error: > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
2022-04-05 16:38:55.919  Error: > 
2022-04-05 16:38:55.919  Error: > Thread 16 (Thread 0xad6ff200 (LWP 12013) "NotificationSys"):
2022-04-05 16:38:55.919  Error: > #0  futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0xad6febb0, clockid=<optimized out>, expected=0, futex_word=0xa8de7c <m_mainworker+2652>) at ../sysdeps/nptl/futex-internal.h:323
2022-04-05 16:38:55.919  Error: > #1  __pthread_cond_wait_common (abstime=0xad6febb0, clockid=<optimized out>, mutex=0x0, cond=0xa8de50 <m_mainworker+2608>) at pthread_cond_wait.c:520
2022-04-05 16:38:55.919  Error: > #2  __pthread_cond_timedwait (cond=0xa8de50 <m_mainworker+2608>, mutex=0x0, abstime=0xad6febb0) at pthread_cond_wait.c:656
2022-04-05 16:38:55.919  Error: > #3  0x00277298 in CNotificationSystem::QueueThread() ()
2022-04-05 16:38:55.919  Error: > #4  0x00906734 in execute_native_thread_routine ()
2022-04-05 16:38:55.919  Error: > #5  0xb6a14300 in start_thread (arg=0xad6ff200) at pthread_create.c:477
2022-04-05 16:38:55.919  Error: > #6  0xb68d8208 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2022-04-05 16:38:55.919  Error: > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
2022-04-05 16:38:55.919  Error: > 
2022-04-05 16:38:55.919  Error: > Thread 15 (Thread 0xae0fe200 (LWP 12012) "deconz"):
2022-04-05 16:38:55.920  Error: > #0  0xb689f4d4 in __GI___wait4 (pid=12103, stat_loc=0x1371e10, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
2022-04-05 16:38:55.920  Error: > #1  0x0029121c in dumpstack_gdb(bool) ()
2022-04-05 16:38:55.920  Error: > #2  0x002917e8 in signal_handler(int, siginfo_t*, void*) ()
2022-04-05 16:38:55.920  Error: > #3  <signal handler called>
2022-04-05 16:38:55.920  Error: > #4  raise (sig=11) at ../sysdeps/unix/sysv/linux/raise.c:50
2022-04-05 16:38:55.920  Error: > #5  <signal handler called>
2022-04-05 16:38:55.920  Error: > #6  0x0000000c in ?? ()
2022-04-05 16:38:55.920  Error: > #7  0xb591747c in _PyEval_EvalFrameDefault () from /lib/arm-linux-gnueabihf/libpython3.9.so
2022-04-05 16:38:55.920  Error: > #8  0xab33e8a0 in ?? ()
2022-04-05 16:38:55.920  Error: > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
2022-04-05 16:38:55.920  Error: > 
2022-04-05 16:38:55.920  Error: > Thread 14 (Thread 0xae8ff200 (LWP 12011) "p1slimme meter"):
2022-04-05 16:38:55.920  Error: > #0  syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2022-04-05 16:38:55.920  Error: > #1  0x008e41a4 in std::__atomic_futex_unsigned_base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::duration<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::ratio<1ll, 1000000000ll> >) ()
2022-04-05 16:38:55.920  Error: > #2  0x005a2f34 in P1MeterSerial::Do_Work() ()
2022-04-05 16:38:55.920  Error: > #3  0x00906734 in execute_native_thread_routine ()
2022-04-05 16:38:55.920  Error: > #4  0xb6a14300 in start_thread (arg=0xae8ff200) at pthread_create.c:477
2022-04-05 16:38:55.920  Error: > #5  0xb68d8208 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2022-04-05 16:38:55.920  Error: > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
2022-04-05 16:38:55.920  Error: > 
2022-04-05 16:38:55.920  Error: > Thread 13 (Thread 0xaf2fe200 (LWP 12010) "MainWorker"):
2022-04-05 16:38:55.920  Error: > #0  0xb68d863c in epoll_wait (epfd=13, events=0xaf2fd340, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
2022-04-05 16:38:55.920  Error: > #1  0x003d519c in boost::asio::detail::epoll_reactor::run(long, boost::asio::detail::op_queue<boost::asio::detail::scheduler_operation>&) ()
2022-04-05 16:38:55.920  Error: > #2  0x003d7194 in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
2022-04-05 16:38:55.921  Error: > #3  0x003d9520 in boost::detail::thread_data<AsyncSerial::open(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, boost::asio::serial_port_base::parity, boost::asio::serial_port_base::character_size, boost::asio::serial_port_base::flow_control, boost::asio::serial_port_base::stop_bits)::{lambda()#2}>::run() ()
2022-04-05 16:38:55.921  Error: > #4  0x0077d374 in thread_proxy ()
2022-04-05 16:38:55.921  Error: > #5  0xb6a14300 in start_thread (arg=0xaf2fe200) at pthread_create.c:477
2022-04-05 16:38:55.921  Error: > #6  0xb68d8208 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2022-04-05 16:38:55.921  Error: > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
2022-04-05 16:38:55.921  Error: > 
2022-04-05 16:38:55.921  Error: > Thread 12 (Thread 0xafaff200 (LWP 12009) "rfxcom"):
2022-04-05 16:38:55.921  Error: > #0  syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2022-04-05 16:38:55.921  Error: > #1  0x008e41a4 in std::__atomic_futex_unsigned_base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::duration<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::ratio<1ll, 1000000000ll> >) ()
2022-04-05 16:38:55.921  Error: > #2  0x005da878 in RFXComSerial::Do_Work() ()
2022-04-05 16:38:55.921  Error: > #3  0x00906734 in execute_native_thread_routine ()
2022-04-05 16:38:55.921  Error: > #4  0xb6a14300 in start_thread (arg=0xafaff200) at pthread_create.c:477
2022-04-05 16:38:55.921  Error: > #5  0xb68d8208 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2022-04-05 16:38:55.921  Error: > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
2022-04-05 16:38:55.921  Error: > 
2022-04-05 16:38:55.921  Error: > Thread 11 (Thread 0xb06fe200 (LWP 11996) "MainWorkerRxMsg"):
2022-04-05 16:38:55.921  Error: > #0  futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0xb06fdb80, clockid=<optimized out>, expected=0, futex_word=0xa8e3b4 <m_mainworker+3988>) at ../sysdeps/nptl/futex-internal.h:323
2022-04-05 16:38:55.921  Error: > #1  __pthread_cond_wait_common (abstime=0xb06fdb80, clockid=<optimized out>, mutex=0x0, cond=0xa8e388 <m_mainworker+3944>) at pthread_cond_wait.c:520
2022-04-05 16:38:55.921  Error: > #2  __pthread_cond_timedwait (cond=0xa8e388 <m_mainworker+3944>, mutex=0x0, abstime=0xb06fdb80) at pthread_cond_wait.c:656
2022-04-05 16:38:55.921  Error: > #3  0x00263724 in MainWorker::Do_Work_On_Rx_Messages() ()
2022-04-05 16:38:55.921  Error: > #4  0x00906734 in execute_native_thread_routine ()
2022-04-05 16:38:55.921  Error: > #5  0xb6a14300 in start_thread (arg=0xb06fe200) at pthread_create.c:477
2022-04-05 16:38:55.922  Error: > #6  0xb68d8208 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2022-04-05 16:38:55.922  Error: > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
2022-04-05 16:38:55.922  Error: > 
2022-04-05 16:38:55.922  Error: > Thread 10 (Thread 0xb0eff200 (LWP 11995) "MainWorker"):
2022-04-05 16:38:55.922  Error: > #0  syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2022-04-05 16:38:55.922  Error: > #1  0x008e41a4 in std::__atomic_futex_unsigned_base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::duration<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::ratio<1ll, 1000000000ll> >) ()
2022-04-05 16:38:55.922  Error: > #2  0x0025f5fc in MainWorker::Do_Work() ()
2022-04-05 16:38:55.922  Error: > #3  0x00906734 in execute_native_thread_routine ()
2022-04-05 16:38:55.922  Error: > #4  0xb6a14300 in start_thread (arg=0xb0eff200) at pthread_create.c:477
2022-04-05 16:38:55.922  Error: > #5  0xb68d8208 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2022-04-05 16:38:55.922  Error: > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
2022-04-05 16:38:55.922  Error: > 
2022-04-05 16:38:55.922  Error: > Thread 9 (Thread 0xb18fe200 (LWP 11994) "TCPServer"):
2022-04-05 16:38:55.922  Error: > #0  0xb68d863c in epoll_wait (epfd=23, events=0xb18fd358, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
2022-04-05 16:38:55.922  Error: > #1  0x003d519c in boost::asio::detail::epoll_reactor::run(long, boost::asio::detail::op_queue<boost::asio::detail::scheduler_operation>&) ()
2022-04-05 16:38:55.922  Error: > #2  0x003d7194 in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
2022-04-05 16:38:55.922  Error: > #3  0x006e0d80 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<tcp::server::CTCPServer::StartServer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)::{lambda()#1}> > >::_M_run() ()
2022-04-05 16:38:55.922  Error: > #4  0x00906734 in execute_native_thread_routine ()
2022-04-05 16:38:55.922  Error: > #5  0xb6a14300 in start_thread (arg=0xb18fe200) at pthread_create.c:477
2022-04-05 16:38:55.922  Error: > #6  0xb68d8208 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2022-04-05 16:38:55.922  Error: > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
2022-04-05 16:38:55.922  Error: > 
2022-04-05 16:38:55.922  Error: > Thread 8 (Thread 0xb20ff200 (LWP 11993) "Scheduler"):
2022-04-05 16:38:55.922  Error: > #0  syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2022-04-05 16:38:55.922  Error: > #1  0x008e41a4 in std::__atomic_futex_unsigned_base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::duration<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::ratio<1ll, 1000000000ll> >) ()
2022-04-05 16:38:55.922  Error: > #2  0x00288690 in CScheduler::Do_Work() ()
2022-04-05 16:38:55.922  Error: > #3  0x00906734 in execute_native_thread_routine ()
2022-04-05 16:38:55.923  Error: > #4  0xb6a14300 in start_thread (arg=0xb20ff200) at pthread_create.c:477
2022-04-05 16:38:55.923  Error: > #5  0xb68d8208 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2022-04-05 16:38:55.923  Error: > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
2022-04-05 16:38:55.923  Error: > 
2022-04-05 16:38:55.923  Error: > Thread 7 (Thread 0xb2a22200 (LWP 11992) "WebServer_8080"):
2022-04-05 16:38:55.923  Error: > #0  0xb68d863c in epoll_wait (epfd=16, events=0xb2a21328, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
2022-04-05 16:38:55.923  Error: > #1  0x003d519c in boost::asio::detail::epoll_reactor::run(long, boost::asio::detail::op_queue<boost::asio::detail::scheduler_operation>&) ()
2022-04-05 16:38:55.923  Error: > #2  0x003d7194 in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
2022-04-05 16:38:55.923  Error: > #3  0x0072bc88 in http::server::server_base::run() ()
2022-04-05 16:38:55.923  Error: > #4  0x002d9bfc in std::thread::_State_impl<std::thread::_Invoker<std::tuple<http::server::CWebServer::StartServer(http::server::server_settings&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)::{lambda()#280}> > >::_M_run() ()
2022-04-05 16:38:55.923  Error: > #5  0x00906734 in execute_native_thread_routine ()
2022-04-05 16:38:55.923  Error: > #6  0xb6a14300 in start_thread (arg=0xb2a22200) at pthread_create.c:477
2022-04-05 16:38:55.923  Error: > #7  0xb68d8208 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2022-04-05 16:38:55.923  Error: > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
2022-04-05 16:38:55.923  Error: > 
2022-04-05 16:38:55.923  Error: > Thread 6 (Thread 0xb3256200 (LWP 11991) "Webem_ssncleane"):
2022-04-05 16:38:55.923  Error: > #0  0xb68d863c in epoll_wait (epfd=20, events=0xb3255358, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
2022-04-05 16:38:55.923  Error: > #1  0x003d519c in boost::asio::detail::epoll_reactor::run(long, boost::asio::detail::op_queue<boost::asio::detail::scheduler_operation>&) ()
2022-04-05 16:38:55.924  Error: > #2  0x003d7194 in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
2022-04-05 16:38:55.924  Error: > #3  0x006fc0b4 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<http::server::cWebem::cWebem(http::server::server_settings const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)::{lambda()#2}> > >::_M_run() ()
2022-04-05 16:38:55.924  Error: > #4  0x00906734 in execute_native_thread_routine ()
2022-04-05 16:38:55.924  Error: > #5  0xb6a14300 in start_thread (arg=0xb3256200) at pthread_create.c:477
2022-04-05 16:38:55.924  Error: > #6  0xb68d8208 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2022-04-05 16:38:55.924  Error: > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
2022-04-05 16:38:55.924  Error: > 
2022-04-05 16:38:55.924  Error: > Thread 5 (Thread 0xb3a57200 (LWP 11990) "InfluxPush"):
2022-04-05 16:38:55.924  Error: > #0  syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2022-04-05 16:38:55.924  Error: > #1  0x008e41a4 in std::__atomic_futex_unsigned_base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::duration<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::ratio<1ll, 1000000000ll> >) ()
2022-04-05 16:38:55.924  Error: > #2  0x00393ed0 in CInfluxPush::Do_Work() ()
2022-04-05 16:38:55.924  Error: > #3  0x00906734 in execute_native_thread_routine ()
2022-04-05 16:38:55.924  Error: > #4  0xb6a14300 in start_thread (arg=0xb3a57200) at pthread_create.c:477
2022-04-05 16:38:55.924  Error: > #5  0xb68d8208 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2022-04-05 16:38:55.924  Error: > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
2022-04-05 16:38:55.924  Error: > 
2022-04-05 16:38:55.924  Error: > Thread 4 (Thread 0xb4892200 (LWP 11989) "PluginMgr"):
2022-04-05 16:38:55.924  Error: > #0  syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2022-04-05 16:38:55.925  Error: > #1  0x008e41a4 in std::__atomic_futex_unsigned_base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::duration<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::ratio<1ll, 1000000000ll> >) ()
2022-04-05 16:38:55.925  Error: > #2  0x00684684 in Plugins::CPluginSystem::Do_Work() ()
2022-04-05 16:38:55.925  Error: > #3  0x00906734 in execute_native_thread_routine ()
2022-04-05 16:38:55.925  Error: > #4  0xb6a14300 in start_thread (arg=0xb4892200) at pthread_create.c:477
2022-04-05 16:38:55.925  Error: > #5  0xb68d8208 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2022-04-05 16:38:55.925  Error: > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
2022-04-05 16:38:55.925  Error: > 
2022-04-05 16:38:55.925  Error: > Thread 3 (Thread 0xb5093200 (LWP 11988) "SQLHelper"):
2022-04-05 16:38:55.925  Error: > #0  syscall () at ../sysdeps/unix/sysv/linux/arm/syscall.S:37
2022-04-05 16:38:55.925  Error: > #1  0x008e41a4 in std::__atomic_futex_unsigned_base::_M_futex_wait_until(unsigned int*, unsigned int, bool, std::chrono::duration<long long, std::ratio<1ll, 1ll> >, std::chrono::duration<long long, std::ratio<1ll, 1000000000ll> >) ()
2022-04-05 16:38:55.925  Error: > #2  0x002a8698 in CSQLHelper::Do_Work() ()
2022-04-05 16:38:55.925  Error: > #3  0x00906734 in execute_native_thread_routine ()
2022-04-05 16:38:55.925  Error: > #4  0xb6a14300 in start_thread (arg=0xb5093200) at pthread_create.c:477
2022-04-05 16:38:55.925  Error: > #5  0xb68d8208 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2022-04-05 16:38:55.925  Error: > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
2022-04-05 16:38:55.925  Error: > 
2022-04-05 16:38:55.925  Error: > Thread 2 (Thread 0xb5894200 (LWP 11987) "Watchdog"):
2022-04-05 16:38:55.925  Error: > #0  0xb6898f8c in __GI___clock_nanosleep_time64 (clock_id=clock_id@entry=0, flags=flags@entry=0, req=0xb5893b70, req@entry=0xb5893b68, rem=0xb5893b80, rem@entry=0xb5893b78) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:52
2022-04-05 16:38:55.925  Error: > #1  0xb6899080 in __GI___clock_nanosleep (clock_id=clock_id@entry=0, flags=flags@entry=0, req=<optimized out>, rem=0xb5893bb0) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:92
2022-04-05 16:38:55.926  Error: > #2  0xb689f830 in __GI___nanosleep (requested_time=<optimized out>, remaining=<optimized out>) at nanosleep.c:27
2022-04-05 16:38:55.926  Error: > #3  0x00224e2c in sleep_milliseconds(long) ()
2022-04-05 16:38:55.926  Error: > #4  0x00291950 in Do_Watchdog_Work() ()
2022-04-05 16:38:55.926  Error: > #5  0x00906734 in execute_native_thread_routine ()
2022-04-05 16:38:55.926  Error: > #6  0xb6a14300 in start_thread (arg=0xb5894200) at pthread_create.c:477
2022-04-05 16:38:55.926  Error: > #7  0xb68d8208 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
2022-04-05 16:38:55.926  Error: > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
2022-04-05 16:38:55.926  Error: > 
2022-04-05 16:38:55.926  Error: > Thread 1 (Thread 0xb6f19240 (LWP 11986) "domoticz"):
2022-04-05 16:38:55.926  Error: > #0  0xb6898f8c in __GI___clock_nanosleep_time64 (clock_id=clock_id@entry=0, flags=flags@entry=0, req=0xbee73f18, req@entry=0xbee73f10, rem=0xbee73f28, rem@entry=0xbee73f20) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:52
2022-04-05 16:38:55.926  Error: > #1  0xb6899080 in __GI___clock_nanosleep (clock_id=clock_id@entry=0, flags=flags@entry=0, req=<optimized out>, rem=0xbee73f58) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:92
2022-04-05 16:38:55.926  Error: > #2  0xb689f830 in __GI___nanosleep (requested_time=<optimized out>, remaining=<optimized out>) at nanosleep.c:27
2022-04-05 16:38:55.926  Error: > #3  0x00224d98 in sleep_seconds(long) ()
2022-04-05 16:38:55.926  Error: > #4  0x001af740 in main ()
2022-04-05 16:38:55.926  Error: > 
2022-04-05 16:38:55.926  Error: > Main thread:
2022-04-05 16:38:55.926  Error: > #0  0xb6898f8c in __GI___clock_nanosleep_time64 (clock_id=clock_id@entry=0, flags=flags@entry=0, req=0xbee73f18, req@entry=0xbee73f10, rem=0xbee73f28, rem@entry=0xbee73f20) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:52
2022-04-05 16:38:55.926  Error: > #1  0xb6899080 in __GI___clock_nanosleep (clock_id=clock_id@entry=0, flags=flags@entry=0, req=<optimized out>, rem=0xbee73f58) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:92
2022-04-05 16:38:55.926  Error: > #2  0xb689f830 in __GI___nanosleep (requested_time=<optimized out>, remaining=<optimized out>) at nanosleep.c:27
2022-04-05 16:38:55.927  Error: > #3  0x00224d98 in sleep_seconds(long) ()
2022-04-05 16:38:55.927  Error: > #4  0x001af740 in main ()
2022-04-05 16:38:55.927  Error: > [Inferior 1 (process 11986) detached]
Segmentation fault
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 »

Domoticz direclty crash ?
You have made a re-install from a backup or a new installation ?
You don't have a more recent python version ?
bertbigb
Posts: 147
Joined: Thursday 13 August 2015 13:36
Target OS: NAS (Synology & others)
Domoticz version: beta
Location: Netherlands
Contact:

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

Post by bertbigb »

I also have the same problem as altaphista.
I did a complete new install.
My pyhton version is Python 3.9.2
This is the start of the error
2022-04-05 17:32:31.113 Error: Domoticz(pid:1241, tid:1307('Zwave-Conbee')) received fatal signal 11 (Segmentation fault)
When I disable the deCONZ plugin then Domoticz is running fine. After enabling the deCONZ plugin after some 15 seconds domoticz freezes with the error message above,
Best regards Bert

Synology DS1517+ - DSM 6.2
Raspberry PI2-B, Raspberry Nano - Raspberry PI3 - model B
Xiaomi Gateway - Philips HUE Lights - Zwave - RFXCom(E) with KaKu and other 433MHz devices - Yeelight Lights - Toon
altaphista
Posts: 12
Joined: Tuesday 05 April 2022 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: NL
Contact:

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

Post by altaphista »

Thorgal789 wrote: Tuesday 05 April 2022 18:03 Domoticz direclty crash ?
You have made a re-install from a backup or a new installation ?
You don't have a more recent python version ?
I did a clean install (https://www.domoticz.com/wiki/Raspberry_Pi ) and restored a backup configuration file. This al works, until I add this add-on. Same a @bertbigb above.
This is my Python version: Python 3.9.2 (default, Mar 12 2021, 04:06:34)
User avatar
waltervl
Posts: 5152
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post by waltervl »

There is an issue when running Python plugins on a RPI with Bullseye OS. It is solved in latest Domoticz beta. So you have the choice to downgrade OS to Buster or use latest Domoticz beta.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
altaphista
Posts: 12
Joined: Tuesday 05 April 2022 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: NL
Contact:

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

Post by altaphista »

waltervl wrote: Tuesday 05 April 2022 20:18 There is an issue when running Python plugins on a RPI with Bullseye OS. It is solved in latest Domoticz beta. So you have the choice to downgrade OS to Buster or use latest Domoticz beta.
thanks for your answer, this solved my problem. My RasPi version was bullseye indeed. I upgraded via Domoticz -> Settings -> Beta release and added the deCONZ again, works like a charm. Thanks
bertbigb
Posts: 147
Joined: Thursday 13 August 2015 13:36
Target OS: NAS (Synology & others)
Domoticz version: beta
Location: Netherlands
Contact:

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

Post by bertbigb »

my issues is also solved by installing the beta release. Everything is working fine now.
Thanks for helping.
Best regards Bert

Synology DS1517+ - DSM 6.2
Raspberry PI2-B, Raspberry Nano - Raspberry PI3 - model B
Xiaomi Gateway - Philips HUE Lights - Zwave - RFXCom(E) with KaKu and other 433MHz devices - Yeelight Lights - Toon
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 »

And It seem too the beta solve too the domoticz crash when the plugin restart (just somes days ago).
Nice.
Jemand
Posts: 15
Joined: Saturday 11 May 2019 12:17
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by Jemand »

@Thorgal789 I have a small code-change for your great plugin. There are devices which can monitor the usage of a power-meter. They need to be configured how many pulses the meters send per kilowatt power. This configuration has the name "pulseconfiguration" and is writable. So in the deCONZ.html-Template you need to add this name as writable:

ng-disabled = "['pulseconfiguration', 'duration','sensitivity','mode','offset','delay','windowopen_set','locked','preset','on'].indexOf(key) < 0"

I have done this manually and it worked.
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 »

Ha nice, I did not know at all. Thx a lot.
Have just added it in the beta.
Pacman42
Posts: 19
Joined: Monday 28 December 2015 1:36
Target OS: NAS (Synology & others)
Domoticz version:
Location: Sweden
Contact:

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

Post by Pacman42 »

I have a very strange problem with the deConz plugin. I can import devices to Domoticz, and they do work for a while after an initial installation, but then they suddenly stop working. I still have communication with deConz, everything is fine except when I turn a switch on/off, then I get this error:
- 2022-09-27 00:27:29.448 Error: PhosCon: deCONZ error :{'error': {'address': '/lights/3/state', 'description': 'resource, /lights/3/state, is not modifiable. Device is not reachable.', 'type': 202}}

I have another issue as well, I can't start the GUI in deConz to debug the problem from that end either. It works after a fresh install with a manual start from the menu in Raspbian GUI (which is required to get access to deConz from Domoticz as well), but as soon as I try to make a service out of it (with or without GUI), communication for devices with deConz stops to work from the Domoticz side. It is working from deConz towards Domoticz though.

I have reinstalled deConz from scratch three times, the same with the plugin. The only time I got the plugin to work when communicating to deconz was after a reboot when RFXTRX plugin stopped working instead. After another reboot (no changes at all), the deConz plugin stopped working again and RFXTRX was working again.

I have gone back to a fresh installation of the previous Raspbian release after huge issues with Python on the latest one (together with plugins). I however ended up in having the same problems with the Daikin plugin also on this older release, so I am not running that plugin at all (it anyway ended up better with my own integration). I had to update to the latest beta to avoid other issues with Python and the deConz plugin and here I am with something that works, kind of, but not at all...

I saw something about issues with websockets, can this be it in this case?

The reason I was going down the deConz path again was that several of my devices stopped working in SmartThings (that I've been using for ZigBee up until now, as they used to have more custom integrations than deConz and it was much easier to patch broken integrations there up until now). Maybe I need to start developing my own edge drivers on SmartThings instead?

Does anyone have any idea in what ditch to start digging?

I have full debugging and the only strange thing is the error message above. All other deConz communication seems to work as it is supposed to.

2022-09-27 00:52:15.023 PhosCon: Pushing 'onHeartbeatCallback' on to queue
2022-09-27 00:52:15.073 PhosCon: Processing 'onHeartbeatCallback' message
2022-09-27 00:52:15.073 PhosCon: Acquiring GIL for 'onHeartbeatCallback'
2022-09-27 00:52:15.073 PhosCon: Calling message handler 'onHeartbeat' on 'module' type object.
2022-09-27 00:52:15.073 PhosCon: onHeartbeat called
2022-09-27 00:52:15.073 PhosCon: Acquiring GIL for 'onHeartbeatCallback'
2022-09-27 00:52:25.040 PhosCon: Pushing 'onHeartbeatCallback' on to queue
2022-09-27 00:52:25.090 PhosCon: Processing 'onHeartbeatCallback' message
2022-09-27 00:52:25.090 PhosCon: Acquiring GIL for 'onHeartbeatCallback'
2022-09-27 00:52:25.090 PhosCon: Calling message handler 'onHeartbeat' on 'module' type object.
2022-09-27 00:52:25.090 PhosCon: onHeartbeat called
2022-09-27 00:52:25.090 PhosCon: Acquiring GIL for 'onHeartbeatCallback'

Restarting the deConz plugin gives this chunk of data that looks OK:

2022-09-27 00:54:13.198 PhosCon: ### Groupe > 1 Name:Farstu
2022-09-27 00:54:13.198 PhosCon: ### Groupe > 2 Name:Ute
2022-09-27 00:54:13.198 PhosCon: Acquiring GIL for 'onHeartbeatCallback'
2022-09-27 00:54:13.198 PhosCon: Processing 'ProtocolDirective' message
2022-09-27 00:54:13.198 PhosCon: Acquiring GIL for 'ProtocolDirective'
2022-09-27 00:54:13.198 PhosCon: Protocol set to: 'None'.
2022-09-27 00:54:13.198 PhosCon: Acquiring GIL for 'ProtocolDirective'
2022-09-27 00:54:13.198 PhosCon: Processing 'ConnectDirective' message
2022-09-27 00:54:13.198 PhosCon: Acquiring GIL for 'ConnectDirective'
2022-09-27 00:54:13.198 PhosCon: Transport set to: 'TCP/IP', 127.0.0.1:8088.
2022-09-27 00:54:13.199 PhosCon: Connect directive received, action initiated successfully.
2022-09-27 00:54:13.199 PhosCon: Acquiring GIL for 'ConnectDirective'
2022-09-27 00:54:13.199 PhosCon: Acquiring GIL for 'CPluginTransportTCP::handleAsyncResolve'
2022-09-27 00:54:13.199 PhosCon: Acquiring GIL for 'CPluginTransportTCP::handleAsyncResolve'
2022-09-27 00:54:13.199 PhosCon: Pushing 'onConnectCallback' on to queue
2022-09-27 00:54:13.249 PhosCon: Processing 'onConnectCallback' message
2022-09-27 00:54:13.249 PhosCon: Acquiring GIL for 'onConnectCallback'
2022-09-27 00:54:13.249 PhosCon: Calling message handler 'onConnect' on 'module' type object.
2022-09-27 00:54:13.249 PhosCon: onConnect called
2022-09-27 00:54:13.249 PhosCon: Pushing 'WriteDirective' on to queue
2022-09-27 00:54:13.249 PhosCon: Acquiring GIL for 'onConnectCallback'
2022-09-27 00:54:13.249 PhosCon: Processing 'WriteDirective' message
2022-09-27 00:54:13.249 PhosCon: Acquiring GIL for 'WriteDirective'
2022-09-27 00:54:13.249 PhosCon: Sending 217 bytes of data
2022-09-27 00:54:13.249 PhosCon: 47 45 54 20 2f 20 48 54 54 50 2f 31 2e 31 0d 0a 48 6f 73 74 GET./.HTTP/1.1..Host
2022-09-27 00:54:13.249 PhosCon: 3a 20 31 32 37 2e 30 2e 30 2e 31 3a 38 30 38 38 0d 0a 55 73 :.127.0.0.1:8088..Us
2022-09-27 00:54:13.249 PhosCon: 65 72 2d 41 67 65 6e 74 3a 20 44 6f 6d 6f 74 69 63 7a 2f 31 er-Agent:.Domoticz/1
2022-09-27 00:54:13.249 PhosCon: 2e 30 0d 0a 53 65 63 2d 57 65 62 53 6f 63 6b 65 74 2d 56 65 .0..Sec-WebSocket-Ve
2022-09-27 00:54:13.249 PhosCon: 72 73 69 6f 6e 3a 20 31 33 0d 0a 4f 72 69 67 69 6e 3a 20 68 rsion:.13..Origin:.h
2022-09-27 00:54:13.249 PhosCon: 74 74 70 3a 2f 2f 31 32 37 2e 30 2e 30 2e 31 0d 0a 53 65 63 ttp://127.0.0.1..Sec
2022-09-27 00:54:13.249 PhosCon: 2d 57 65 62 53 6f 63 6b 65 74 2d 4b 65 79 3a 20 71 71 4d 4c -WebSocket-Key:.qqML
2022-09-27 00:54:13.249 PhosCon: 42 78 79 79 6a 7a 39 54 6f 67 31 62 6c 6c 37 4b 36 41 3d 3d Bxyyjz9Tog1bll7K6A==
2022-09-27 00:54:13.249 PhosCon: 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 6b 65 65 70 2d 61 ..Connection:.keep-a
2022-09-27 00:54:13.249 PhosCon: 6c 69 76 65 2c 20 55 70 67 72 61 64 65 0d 0a 55 70 67 72 61 live,.Upgrade..Upgra
2022-09-27 00:54:13.250 PhosCon: 64 65 3a 20 77 65 62 73 6f 63 6b 65 74 0d 0a 0d 0a .. .. .. de:.websocket....
2022-09-27 00:54:13.250 PhosCon: Acquiring GIL for 'WriteDirective'
2022-09-27 00:54:13.251 PhosCon: Acquiring GIL for 'CPluginTransportTCP::handleRead'
2022-09-27 00:54:13.251 PhosCon: Pushing 'ReadEvent' on to queue
2022-09-27 00:54:13.300 PhosCon: Processing 'ReadEvent' message
2022-09-27 00:54:13.300 PhosCon: Acquiring GIL for 'ReadEvent'
2022-09-27 00:54:13.300 PhosCon: Received 349 bytes of data
2022-09-27 00:54:13.300 PhosCon: 48 54 54 50 2f 31 2e 31 20 31 30 31 20 53 77 69 74 63 68 69 HTTP/1.1.101.Switchi
2022-09-27 00:54:13.300 PhosCon: 6e 67 20 50 72 6f 74 6f 63 6f 6c 73 0d 0a 55 70 67 72 61 64 ng.Protocols..Upgrad
2022-09-27 00:54:13.300 PhosCon: 65 3a 20 77 65 62 73 6f 63 6b 65 74 0d 0a 43 6f 6e 6e 65 63 e:.websocket..Connec
2022-09-27 00:54:13.300 PhosCon: 74 69 6f 6e 3a 20 55 70 67 72 61 64 65 0d 0a 53 65 63 2d 57 tion:.Upgrade..Sec-W
2022-09-27 00:54:13.300 PhosCon: 65 62 53 6f 63 6b 65 74 2d 41 63 63 65 70 74 3a 20 56 30 68 ebSocket-Accept:.V0h
2022-09-27 00:54:13.300 PhosCon: 74 45 62 6e 35 46 68 49 41 31 78 66 51 52 79 47 33 79 55 31 tEbn5FhIA1xfQRyG3yU1
2022-09-27 00:54:13.300 PhosCon: 61 47 39 63 3d 0d 0a 53 65 72 76 65 72 3a 20 64 65 63 6f 6e aG9c=..Server:.decon
2022-09-27 00:54:13.300 PhosCon: 7a 0d 0a 41 63 63 65 73 73 2d 43 6f 6e 74 72 6f 6c 2d 41 6c z..Access-Control-Al
2022-09-27 00:54:13.300 PhosCon: 6c 6f 77 2d 43 72 65 64 65 6e 74 69 61 6c 73 3a 20 66 61 6c low-Credentials:.fal
2022-09-27 00:54:13.300 PhosCon: 73 65 0d 0a 41 63 63 65 73 73 2d 43 6f 6e 74 72 6f 6c 2d 41 se..Access-Control-A
2022-09-27 00:54:13.300 PhosCon: 6c 6c 6f 77 2d 4d 65 74 68 6f 64 73 3a 20 47 45 54 0d 0a 41 llow-Methods:.GET..A
2022-09-27 00:54:13.300 PhosCon: 63 63 65 73 73 2d 43 6f 6e 74 72 6f 6c 2d 41 6c 6c 6f 77 2d ccess-Control-Allow-
2022-09-27 00:54:13.300 PhosCon: 48 65 61 64 65 72 73 3a 20 63 6f 6e 74 65 6e 74 2d 74 79 70 Headers:.content-typ
2022-09-27 00:54:13.300 PhosCon: 65 0d 0a 41 63 63 65 73 73 2d 43 6f 6e 74 72 6f 6c 2d 41 6c e..Access-Control-Al
2022-09-27 00:54:13.300 PhosCon: 6c 6f 77 2d 4f 72 69 67 69 6e 3a 20 68 74 74 70 3a 2f 2f 31 low-Origin:.http://1
2022-09-27 00:54:13.300 PhosCon: 32 37 2e 30 2e 30 2e 31 0d 0a 44 61 74 65 3a 20 4d 6f 6e 2c 27.0.0.1..Date:.Mon,
2022-09-27 00:54:13.300 PhosCon: 20 32 36 20 53 65 70 20 32 30 32 32 20 32 32 3a 35 34 3a 31 .26.Sep.2022.22:54:1
2022-09-27 00:54:13.300 PhosCon: 33 20 47 4d 54 0d 0a 0d 0a .. .. .. .. .. .. .. .. .. .. .. 3.GMT....
2022-09-27 00:54:13.300 PhosCon: Pushing 'onMessageCallback' on to queue
2022-09-27 00:54:13.300 PhosCon: Acquiring GIL for 'ReadEvent'
2022-09-27 00:54:13.300 PhosCon: Processing 'onMessageCallback' message
2022-09-27 00:54:13.300 PhosCon: Acquiring GIL for 'onMessageCallback'
2022-09-27 00:54:13.301 PhosCon: Calling message handler 'onMessage' on 'module' type object.
2022-09-27 00:54:13.301 PhosCon: onMessage called
2022-09-27 00:54:13.301 PhosCon: WebSocket Handshake : HTTP/1.1 101 Switching Protocols ***Upgrade: websocket ***Connection: Upgrade ***Sec-WebSocket-Accept: V0htEbn5FhIA1xfQRyG3yU1aG9c= ***Server: deconz ***Access-Control-Allow-Credentials: false ***Access-Control-Allow-Methods: GET ***Access-Control-Allow-Headers: content-type ***Access-Control-Allow-Origin: http://127.0.0.1 ***Date: Mon, 26 Sep 2022 22:54:13 GMT *** ***
2022-09-27 00:54:13.301 PhosCon: Acquiring GIL for 'onMessageCallback'
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests