Hello amazing forum.
This is my first post here and I would like to get assistance with
Broadlink SP3S configuration.
I've followed this guide (
https://www.domoticz.com/wiki/Plugins/BroadlinkRM2.html) in order to install the plugin.
I would say everything works fine except of the one thing.
I can't figure out how to configure the meter in order to calculate energy usage per day/week/month...
Current energy consumption is being displayed correctly, the issue is only with total values.
Code: Select all
IDX Hardware ID Unit Name Type Subtype Data
---------------------------------------------------------------------------------------------------------
25 BR 000A0002 2 BR - SP3S CURRENT Usage Electric 909.36 Watt
26 BR 000A0003 3 BR - SP3 USAGE General kWh 0, 909.36
When I go to the utility tab I see only values, taken from the IDX 25(current consumption).
Configuration of the device IDX 26 is:
Energy read: From device
Type - Usage.
In this case it doesn't show anything, so the graphs are just empty.
If I put Type - Usage, Energy read - Computed, the plugin crashes.
2019-03-26 14:56:47.723 (BR) Update 0:'912.16' (BR - SP3 USAGE)
2019-03-26 14:56:47.760 (BR) Power state : True
2019-03-26 14:56:47.797 (BR) Light state : False
2019-03-26 14:57:17.603 (BR) Pushing 'onHeartbeatCallback' on to queue
2019-03-26 14:57:17.616 (BR) Processing 'onHeartbeatCallback' message
2019-03-26 14:57:17.616 (BR) Calling message handler 'onHeartbeat'.
2019-03-26 14:57:17.617 (BR) SP3S called
2019-03-26 14:57:17.738 (BR) Energy : 907.68
2019-03-26 14:57:17.739 (BR - SP3S CURRENT) Updating device from 0:'912.16' to have values 0:'907.68'.
2019-03-26 14:57:17.742 (BR) Update 0:'907.68' (BR - SP3S CURRENT)
2019-03-26 14:57:17.743 (BR - SP3 USAGE) Updating device from 0:'912.16' to have values 0:'907.68'.
2019-03-26 14:57:17.746 (BR) Update 0:'907.68' (BR - SP3 USAGE)
2019-03-26 14:57:17.783 (BR) Power state : True
2019-03-26 14:57:17.820 (BR) Light state : False
2019-03-26 14:57:19.742 (BR) Pushing 'CPluginMessageBase' on to queue
2019-03-26 14:57:19.742 Status: EventSystem: reset all device statuses...
2019-03-26 14:57:19.776 (BR) Processing 'CPluginMessageBase' message
2019-03-26 14:57:19.777 (BR) Message handler 'onDeviceModified' not callable, ignored.
2019-03-26 14:57:47.609 (BR) Pushing 'onHeartbeatCallback' on to queue
2019-03-26 14:57:47.643 (BR) Processing 'onHeartbeatCallback' message
2019-03-26 14:57:47.643 (BR) Calling message handler 'onHeartbeat'.
2019-03-26 14:57:47.643 (BR) SP3S called
2019-03-26 14:57:47.785 (BR) Energy : 905.84
2019-03-26 14:57:47.785 (BR - SP3S CURRENT) Updating device from 0:'907.68' to have values 0:'905.84'.
2019-03-26 14:57:47.789 (BR) Update 0:'905.84' (BR - SP3S CURRENT)
2019-03-26 14:57:47.789 (BR - SP3 USAGE) Updating device from 0:'907.68' to have values 0:'905.84'.
2019-03-26 14:57:47.790 Error: Domoticz(pid:21854, tid:21873('PluginMgr')) received fatal signal 11 (Segmentation fault)
2019-03-26 14:57:47.790 Error: siginfo address=0x52422820, address=0x76ca057c
2019-03-26 14:57:57.267 Error: Thread 4 (Thread 0x74fbe430 (LWP 21873)):
2019-03-26 14:57:57.267 Error: #0 0x76ef24cc in __waitpid (pid=22028, stat_loc=0x74fbc868, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:29
2019-03-26 14:57:57.267 Error: #1 0x002c9af0 in dumpstack_gdb(bool) ()
2019-03-26 14:57:57.267 Error: #2 0x002ca0dc in signal_handler(int, siginfo_t*, void*) ()
2019-03-26 14:57:57.267 Error: #3 <signal handler called>
2019-03-26 14:57:57.267 Error: #4 __GI_____strtof_l_internal (nptr=0x52422820 <error: Cannot access memory at address 0x52422820>, endptr=0x0, group=<optimized out>, loc=0x76fd7b18) at strtod_l.c:583
2019-03-26 14:57:57.267 Error: #5 0x002dfcec in CSQLHelper::UpdateValueInt(int, char const*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, int, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, bool) ()
2019-03-26 14:57:57.267 Error: #6 0x002e1204 in CSQLHelper::UpdateValue(int, char const*, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, int, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, bool) ()
2019-03-26 14:57:57.268 Error: #7 0x0061b8a4 in Plugins::CDevice_update(Plugins::CDevice*, _object*, _object*) ()
2019-03-26 14:57:57.268 Error: #8 0x760521d8 in PyCFunction_Call () from /usr/lib/arm-linux-gnueabihf/libpython3.5m.so
2019-03-26 14:57:57.268 Error: #9 0x761bc950 in PyEval_EvalFrameEx () from /usr/lib/arm-linux-gnueabihf/libpython3.5m.so
2019-03-26 14:57:57.268 Error: #10 0x761bb3b0 in PyEval_EvalFrameEx () from /usr/lib/arm-linux-gnueabihf/libpython3.5m.so
2019-03-26 14:57:57.268 Error: #11 0x7623c624 in ?? () from /usr/lib/arm-linux-gnueabihf/libpython3.5m.so
2019-03-26 14:58:11.134 Status: Domoticz V4.10548 (c)2012-2019 GizMoCuz
2019-03-26 14:58:11.135 Status: Build Hash: 3f713ad4, Date: 2019-03-14 12:11:35
2019-03-26 14:58:11.135 Status: Startup Path: /home/pi/domoticz/
2019-03-26 14:58:11.232 Sunrise: 06:32:00 SunSet: 19:05:00
2019-03-26 14:58:11.232 Day length: 12:32:00 Sun at south: 12:05:00
2019-03-26 14:58:11.232 Civil twilight start: 05:59:00 Civil twilight end: 19:38:00
2019-03-26 14:58:11.232 Nautical twilight start: 05:20:00 Nautical twilight end: 20:17:00
2019-03-26 14:58:11.232 Astronomical twilight start: 04:38:00 Astronomical twilight end: 20:58:00
2019-03-26 14:58:11.232 Status: EventSystem: reset all events...
2019-03-26 14:58:11.575 Status: PluginSystem: Started, Python version '3.5.3'.
2019-03-26 14:58:11.599 Active notification Subsystems: (0/13)
2019-03-26 14:58:11.604 Status: WebServer(HTTP) started on address: 0.0.0.0 with port 8080
2019-03-26 14:58:11.609 Status: Proxymanager started.
2019-03-26 14:58:11.611 Status: Camera: settings (re)loaded
2019-03-26 14:58:11.614 Starting shared server on: 0.0.0.0:6144
After certain manipulations with server restart/disabling the hardware and devices I could force this meter to calculate computed daily consumption without crashes.
My questions are the following:
1) What is the correct way to configure this meter, should the value be "computed" or "from device"?
2) If it's computed, what the reason of plugin crash is that a known issue ?
3) If the value should be "From device" how I could force domoticz to show it in the utility meter?
Thanks for any help.
Here are my environment details:
Code: Select all
Name: broadlink
Version: 0.9
Summary: Python API for controlling Broadlink IR controllers
Home-page: http://github.com/mjg59/python-broadlink
Author: Matthew Garrett
Author-email: [email protected]
License: UNKNOWN
Location: /home/pi/.local/lib/python3.5/site-packages
Requires: pycryptodome, PyCRC
About Domoticz
Version: 4.10548
Build Hash: 3f713ad4
Compile Date: 2019-03-14 12:11:35
dzVents Version: 2.4.15
Python Version: 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516]
Uptime: 20 Minutes, 50 Seconds
plugin.py - 4.2.0