Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disbaled-buggy-Stable7 7.1.13 #1749

Closed
wants to merge 151 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
bdbe16b
zclCluster decode the value and an int is provided. Allow to check st…
pipiche38 Jun 1, 2024
7c53e6d
Fix profalux tilt (#1746)
pipiche38 Jun 8, 2024
549786d
fix mistake in the way to Update or not Timedout flag on domoticz (#1…
pipiche38 Jun 8, 2024
9506c5b
WebUI update to display RSSI if available (#1739)
pipiche38 Jun 8, 2024
1650c9b
Remove disabled function, optimize and use time() only once (#1738)
pipiche38 Jun 8, 2024
e52a7b0
cleaning up logs messages / refactor submit request (#1745)
pipiche38 Jun 8, 2024
d81bd82
make sure that requests is part of the python3 modules (#1747)
pipiche38 Jun 9, 2024
a43eefc
when seting Device timedout make sure to read the correspoding unit (…
pipiche38 Jun 9, 2024
7e24445
Logging to track python module loading (#1741)
pipiche38 Jun 17, 2024
7909631
Do not push Ack/Nack when Ack is disable
pipiche38 Jun 19, 2024
0cc9e05
fix python3 module check against constraints.txt instead of requireme…
pipiche38 Jun 22, 2024
e97465f
in case check_requirements return True meaning problem, stop the plugin
pipiche38 Jun 22, 2024
3459a07
better decoding of the heiman door bel (#1744)
pipiche38 Jun 22, 2024
350e398
Make WebUI on dedicated thread (#1751)
pipiche38 Jun 26, 2024
7db6caa
do not make error if certificate path do not exists
pipiche38 Jun 26, 2024
1f0aaed
Do not check the path for SSL certificate and private key when loadin…
pipiche38 Jun 26, 2024
3fc8359
before starting WebUI check that the port is not already in use
pipiche38 Jun 28, 2024
e5c5c56
prevent forcing Level to 1 for Profalux blinds (#1754)
pipiche38 Jul 8, 2024
6bd0e8e
disable checking against security issue Possible binding to all inte…
pipiche38 Jul 8, 2024
dfaea6c
Merge remote-tracking branch 'refs/remotes/origin/wip-stable7-7.1.13'…
pipiche38 Jul 8, 2024
170a2ae
Fix lvlcontrol (#1756)
pipiche38 Jul 10, 2024
46cc3b4
return value from 0 to 100 for all Blind and Venetian widgets
pipiche38 Jul 13, 2024
efb294b
add Sunricher PIR/Motion Manufacturer specific parameters (#1753)
pipiche38 Jul 13, 2024
ea3128b
remove checking the adress is already bind
pipiche38 Jul 17, 2024
e1ebba1
fix formating issue
pipiche38 Jul 17, 2024
3bbedc3
do not send default response, as zigpy layer is taking care of it
pipiche38 Jul 17, 2024
9def20a
enable Keep alive
pipiche38 Jul 17, 2024
958a69a
fix Error 200, when doing Auto Provisioning ( #1760)
pipiche38 Jul 17, 2024
78a89c6
Implement Polling and other Tuya specific command for the Tuya Temper…
pipiche38 Jul 29, 2024
a32b7a1
Fix schneider zoning path file (#1762)
badzz Jul 29, 2024
fbb574a
Rawaps for 0201 cluster (#1763)
badzz Jul 29, 2024
9623885
Temp piscine (#1764)
pipiche38 Jul 29, 2024
a9b1c45
read all data in case of any Verb
pipiche38 Jul 30, 2024
51bcf93
disable for now Chunk
pipiche38 Jul 30, 2024
f42e30b
add more debug
pipiche38 Jul 30, 2024
d22752c
making sure that we read all frame
pipiche38 Jul 30, 2024
9f44c8c
increase Chunk size to 8KB
pipiche38 Jul 30, 2024
a290534
rename MAX_BLOCK_SIZE
pipiche38 Jul 31, 2024
275cb90
refactor get_deviceconf_parameter_value()
pipiche38 Aug 3, 2024
2fd1929
simplify ts0601_instant_power() code
pipiche38 Aug 3, 2024
a22688e
update for Door/Vibration sensor from Lexman
pipiche38 Aug 5, 2024
3dcf409
Fix argument error when updating in case of Vibration
pipiche38 Aug 5, 2024
69a36f9
adding update of BatteryPercentage widget if exist
pipiche38 Aug 5, 2024
5edb7ad
implement BatteryPercentage widget
pipiche38 Aug 5, 2024
a56eb7e
create a dedicated function for _ldsenk08_zone_status_change
pipiche38 Aug 6, 2024
fbae736
fix error
pipiche38 Aug 6, 2024
954bac1
fix error
pipiche38 Aug 6, 2024
b82d7f2
Move Log to Debug and fix issue on BatteryPercentage widget
pipiche38 Aug 6, 2024
f58b826
force to send default response if needed (hack for Tuya)
pipiche38 Aug 6, 2024
4aa9713
fix issue on BatteryPercentage
pipiche38 Aug 6, 2024
08dbdea
use HighPriority to send default response
pipiche38 Aug 6, 2024
6cd3600
cosmetic
pipiche38 Aug 7, 2024
99822f4
Make additional query optional
pipiche38 Aug 7, 2024
c991c47
fix f-string missing statement
pipiche38 Aug 7, 2024
b7c17a7
fix several issue in polling calculation
pipiche38 Aug 7, 2024
f092714
change default consecutive polling and elapsed time
pipiche38 Aug 8, 2024
73dad9b
Polling widget implemntation (#1765)
pipiche38 Aug 9, 2024
de7e0fd
Polling widget (#1766)
pipiche38 Aug 9, 2024
f4be5dc
adding PollingControlV2
pipiche38 Aug 12, 2024
8b117a2
adding PollingControlV2
pipiche38 Aug 12, 2024
38cf6eb
adding PollingControlV2
pipiche38 Aug 12, 2024
ef5a7c1
adding PollingControlV2
pipiche38 Aug 12, 2024
14a1f4a
Prevent WidgetType Tamper and ClusterType =! "Alarm"
pipiche38 Aug 13, 2024
d1d4f16
fixing mistake
pipiche38 Aug 13, 2024
b46d97f
Enable NodOn Firmware update
pipiche38 Aug 15, 2024
acc320d
define generic function for TS0601 curtain ( https://github.com/zigbe…
pipiche38 Aug 16, 2024
be540b0
during onStop, check if self.log exist before using it
pipiche38 Aug 16, 2024
2debd7e
Convert percentage to analog before updqting the widget
pipiche38 Aug 16, 2024
6f5b3dc
Merge remote-tracking branch 'refs/remotes/origin/wip-stable7-7.1.13'…
pipiche38 Aug 16, 2024
d6def0c
Actuatoir based on TS0601 DP
pipiche38 Aug 16, 2024
9a606aa
On is 2
pipiche38 Aug 16, 2024
576c42e
update
pipiche38 Aug 16, 2024
cc9ebf5
fix codefactor - 2 spaces
pipiche38 Aug 17, 2024
71afeea
Curtain state is using data type 0x04 (bitmap) and not 0x01 (boolean)
pipiche38 Aug 17, 2024
c41184d
Invert Open/Close for Tuya Curtain actionator
pipiche38 Aug 18, 2024
18fc141
Update to handle Open/Close
pipiche38 Aug 20, 2024
521d20e
Add SwitchCalibration
pipiche38 Aug 20, 2024
c9ff52b
Use bitmap instead of boolean for Calibration
pipiche38 Aug 22, 2024
e42006c
refactor and simplify
pipiche38 Aug 22, 2024
5bd5c51
differentiate command from response
pipiche38 Aug 22, 2024
fe5ad50
update data type
pipiche38 Aug 24, 2024
f751ca0
fix syntax issue
pipiche38 Aug 24, 2024
d60cde5
Use dp 0x07 for Calibration instead of 0x03
pipiche38 Aug 24, 2024
dfd22ca
Update widget Calibration when On/Off
pipiche38 Aug 24, 2024
7dc4ac7
Update ts0601_curtain_level to report %
pipiche38 Aug 24, 2024
e3cc921
When receiving Open/Closed for Blind correctly handle the widget update
pipiche38 Aug 26, 2024
d23554c
Update LevelControl handling for Curtain
pipiche38 Aug 27, 2024
615fb6a
fix syntax issue
pipiche38 Aug 29, 2024
0d9cb43
fix mistake from previous commit
pipiche38 Aug 29, 2024
c690d43
Add quick calibration command
pipiche38 Aug 30, 2024
0a99910
make sure the object exist
pipiche38 Sep 2, 2024
bd05c48
Convert to int if the Tuya Baterry attribute is str
pipiche38 Sep 2, 2024
4314dd2
make the code more resilient
pipiche38 Sep 2, 2024
b821e69
make sure that modelname is not a dict
pipiche38 Sep 2, 2024
c23e0d5
looks like we can get device_id as {}
pipiche38 Sep 2, 2024
af151d5
test only if not None
pipiche38 Sep 3, 2024
f3aa842
enhance and allow debug BatteryManagement
pipiche38 Sep 6, 2024
4423178
function to store Battery timestamp
pipiche38 Sep 8, 2024
92816be
Disabled Analytics
pipiche38 Sep 8, 2024
958d1a2
Timestamp when receiving Battery voltage or percentage
pipiche38 Sep 8, 2024
b11449b
Timestamp when receiving Voltage or Percentage
pipiche38 Sep 8, 2024
3638cf6
prioritize with timestamp to take Percentage or Voltage
pipiche38 Sep 8, 2024
960a865
remove multiple spaces after keyword
pipiche38 Sep 8, 2024
9594af1
decoding more Timestamp in WebUI Tools
pipiche38 Sep 8, 2024
21ab1fc
implement functionality for the TS0207 Rain and Lux sensor
pipiche38 Sep 10, 2024
1c7a062
add RainIntensity
pipiche38 Sep 10, 2024
156946d
cosmetic
pipiche38 Sep 10, 2024
341a8aa
adding illuminance 20min average for Tuya Rain/Lux sensor
pipiche38 Sep 11, 2024
d072ba7
update the Tuya attribute for illuminance on 20min average
pipiche38 Sep 11, 2024
eb16bec
Handle TS0601 TempHumi
pipiche38 Sep 13, 2024
c2746aa
Fine tune integration of TRV BAB-1413Pro-E ( https://github.com/zigbe…
pipiche38 Sep 13, 2024
bc0a4c4
Fix Valve (Pi Heating) reporting in Vale% widget
pipiche38 Sep 14, 2024
2667932
Some time the Boolean can come with a different value than 0x00 or 0x…
pipiche38 Sep 16, 2024
4bcae86
refactor Update Switch/LvlControl
pipiche38 Sep 16, 2024
f2218a8
Fix logging (#1769)
badzz Oct 12, 2024
2ae8e96
fix function signature issue: no idea what are the consequence but th…
badzz Oct 16, 2024
b1f97a3
Revert "fix function signature issue: no idea what are the consequenc…
pipiche38 Oct 16, 2024
18be38f
when filter nwkid on logging, we can see that some function dont log …
badzz Oct 16, 2024
8c6d2c5
fix miss-alignement in signature of tuya_eTRV_registration. See ( ##1…
pipiche38 Oct 18, 2024
9e6a3b5
Upgrade zigpy libraries 7 1 13 stable7 (#1757)
pipiche38 Oct 18, 2024
659d020
Adding bindingDelay parameter, which allow to specify a waiting time …
pipiche38 Oct 18, 2024
c5619c1
retreive bindingDelay and use it when sending the command
pipiche38 Oct 18, 2024
d8fb468
adding delayAfterSent to the zigpy_raw_APS_request signature
pipiche38 Oct 18, 2024
4ae904d
implement the use of delayAfterSent to do a asyncio.sleep after a com…
pipiche38 Oct 18, 2024
af8fed7
reverting the disabling of Plugin Analytics, as it has some side effect
pipiche38 Oct 18, 2024
7b853ae
fine tune Moes Curtain calibration ( https://github.com/zigbeefordomo…
pipiche38 Oct 18, 2024
d66f90c
prevent trying to extract delayAfterSent, when it is empty
pipiche38 Oct 18, 2024
fdf9740
Disable Tamper if disabled in Config file
pipiche38 Oct 19, 2024
f604842
enable plugin device database to be writen in Domoticz sqlite db duri…
pipiche38 Oct 20, 2024
05036f4
remove un-necessary log
pipiche38 Oct 20, 2024
feb86b0
Use Datapoint 0x03 for Moes Curtain Switch Accurate calibration and n…
pipiche38 Oct 20, 2024
5fa065e
cosmetic in log message
pipiche38 Oct 20, 2024
540b4e6
cosmetic
pipiche38 Oct 28, 2024
ec2d13d
correct log message
pipiche38 Oct 28, 2024
3c82632
cosmetic
pipiche38 Oct 28, 2024
2ad0d09
do not forward 0x0019 OTA packets to zigpy layer
pipiche38 Oct 28, 2024
10f7f3d
better manage quote
pipiche38 Oct 28, 2024
5b5002f
update zigpy libs
pipiche38 Oct 28, 2024
a7eb4e0
update zigpy libs
pipiche38 Oct 29, 2024
136dc75
Backup coordinator infos to Domoticz and makes the all Domoticz backu…
pipiche38 Oct 30, 2024
bebfdc2
makes function more resilient
pipiche38 Oct 30, 2024
315430d
make functions more resilient
pipiche38 Oct 30, 2024
264c659
disable DeviceList storage/read in domoticz for now
pipiche38 Oct 30, 2024
20be7ee
Store in Domoticz only if storeDomoticzDatabase is enabled
pipiche38 Oct 30, 2024
f57cd04
refactor _open_image_file()
pipiche38 Oct 30, 2024
95fc966
refactor test and make storeDomoticzDatabase or useDomoticzDatabase t…
pipiche38 Oct 30, 2024
e2043f9
enable possibility of race memory allocations with tracemalloc
pipiche38 Oct 30, 2024
d7f7091
resilience of database load
pipiche38 Oct 31, 2024
2b98d7b
fixing
pipiche38 Oct 31, 2024
1836e95
Use contextlib instead of try/except
pipiche38 Nov 2, 2024
41e65dd
Revert domoticz storage (#1776)
pipiche38 Nov 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/*/.DS_store
Conf/PluginConf-*
OTAFirmware/*/*
certs/*
!OTAFirmware/*/README.me
!OTAFirmware/*/.PRECIOUS
Conf/ZigateGroupsConfig-*
Expand Down
3 changes: 2 additions & 1 deletion Classes/AdminWidgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@ def _get_switch_selector_options(self, ):
}

class AdminWidgets:
def __init__(self, log, PluginConf, pluginParameters, ListOfDomoticzWidget, Devices, ListOfDevices, HardwareID):
def __init__(self, log, PluginConf, pluginParameters, ListOfDomoticzWidget, Devices, ListOfDevices, HardwareID, IEEE2NWK):

self.pluginconf = PluginConf
self.pluginParameters = pluginParameters
self.ListOfDomoticzWidget = ListOfDomoticzWidget
self.Devices = Devices # Point to the List of Domoticz Devices
self.ListOfDevices = ListOfDevices # Point to the Global ListOfDevices
self.HardwareID = HardwareID
self.IEEE2NWK = IEEE2NWK
self.log = log
self.createStatusWidget(Devices)
self.createNotificationWidget(Devices)
Expand Down
4 changes: 2 additions & 2 deletions Classes/LoggingManagement.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,12 +511,12 @@ def process_logging_event( self, logging_tuple):
_catch_error_event(self, context,logging_tuple, err )
return

thread_name = f"{thread_name} {thread_id}"

if logType == "Error":
thread_name=thread_name + " " + thread_id
loggingError(self, thread_name, module, message, nwkid, context)

elif logType == "Debug" and _should_log_debug(self, thread_name) and _is_to_be_logged(self, logType, module):
thread_name=thread_name + " " + thread_id
_logginfilter(self, thread_name, message, nwkid)

else:
Expand Down
1 change: 1 addition & 0 deletions Classes/OTA.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"Ledvance": {"Folder": "LEDVANCE", "ManufCode": 0x1189, "ManufName": "LEDVANCE", "Enabled": True},
"Legrand": {"Folder": "LEGRAND", "ManufCode": 0x1021, "ManufName": "Legrand", "Enabled": True},
"Lixee": {"Folder": "LIXEE", "ManufCode": 0x1037, "ManufName": "LiXee", "Enabled": True},
"Nodon": {"Folder": "NODON", "ManufCode": 0x128b, "ManufName": "NodOn", "Enabled": True},
"Osram1": {"Folder": "OSRAM", "ManufCode": 0xBBAA, "ManufName": "OSRAM", "Enabled": True},
"Osram2": {"Folder": "LEDVANCE", "ManufCode": 0x110C, "ManufName": "OSRAM", "Enabled": True},
"Philips": {"Folder": "PHILIPS", "ManufCode": 0x100B, "ManufName": "Philips", "Enabled": True},
Expand Down
12 changes: 11 additions & 1 deletion Classes/PluginConf.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
"reenforcementWiser": { "type": "int", "default": 300, "current": None, "restart": 0, "hidden": False, "Advanced": True, },
"ReadAttributeChunk": { "type": "int", "default": 3, "current": None, "restart": 0, "hidden": False, "Advanced": True, },
"ZiGateConfigureReporting": {"type": "bool","default": 1,"current": None,"restart": 0,"hidden": False,"Advanced": True,"ZigpyRadio": ""},
"bindingDelay": {"type": "int","default": 0.75,"current": None,"restart": 0,"hidden": False,"Advanced": True},
},
},
"WebInterface": {
Expand Down Expand Up @@ -210,6 +211,8 @@
"pluginReports": {"type": "path","default": "","current": None,"restart": 1,"hidden": False,"Advanced": True,},
"pluginWWW": {"type": "path","default": "","current": None,"restart": 1,"hidden": False,"Advanced": True,},
"pluginLogs": {"type": "path","default": "","current": None,"restart": 1,"hidden": False,"Advanced": True,},
"SSLCertificate": {"type": "path","default": "","current": None,"restart": 1,"hidden": False,"Advanced": True,},
"SSLPrivateKey": {"type": "path","default": "","current": None,"restart": 1,"hidden": False,"Advanced": True,},
},
},
# Verbose
Expand All @@ -218,6 +221,7 @@
"param": {
"AbstractDz": { "type": "bool", "default": 0, "current": None, "restart": 0, "hidden": False, "Advanced": True },
"Barometer": { "type": "bool", "default": 0, "current": None, "restart": 0, "hidden": False, "Advanced": True },
"BatteryManagement": { "type": "bool", "default": 0, "current": None, "restart": 0, "hidden": False, "Advanced": True },
"BasicOutput": { "type": "bool", "default": 0, "current": None, "restart": 0, "hidden": False, "Advanced": True },
"Binding": { "type": "bool", "default": 0, "current": None, "restart": 0, "hidden": False, "Advanced": True },
"CasaIA": { "type": "bool", "default": 0, "current": None, "restart": 0, "hidden": False, "Advanced": True },
Expand Down Expand Up @@ -285,6 +289,8 @@
"ReadAttributes": { "type": "bool", "default": 0, "current": None, "restart": 0, "hidden": False, "Advanced": True },
"Schneider": { "type": "bool", "default": 0, "current": None, "restart": 0, "hidden": False, "Advanced": True },
"Sonoff": { "type": "bool", "default": 0, "current": None, "restart": 0, "hidden": False, "Advanced": True },
"Sunricher": { "type": "bool", "default": 0, "current": None, "restart": 0, "hidden": False, "Advanced": True },

"Temperature": { "type": "bool", "default": 0, "current": None, "restart": 0, "hidden": False, "Advanced": True },
"Thermostats": { "type": "bool", "default": 0, "current": None, "restart": 0, "hidden": False, "Advanced": True },
"ThreadCommunication": { "type": "bool", "default": 0, "current": None, "restart": 0, "hidden": False, "Advanced": True },
Expand Down Expand Up @@ -653,7 +659,7 @@ def _path_check(self):
# this is a url
continue
_path_name = Path( self.pluginConf[param] )
if not os.path.exists(_path_name):
if param not in ( "SSLCertificate", "SSLPrivateKey") and not os.path.exists(_path_name):
Domoticz.Error("Cannot access path: %s" % _path_name)
if self.pluginConf[param] != str( _path_name ):
if self.pluginConf["PosixPathUpdate"]:
Expand Down Expand Up @@ -716,5 +722,9 @@ def setup_folder_parameters(self, homedir):
self.pluginConf[param] = str( Path(self.pluginConf["pluginHome"]) / "Reports")
elif param == "pluginWWW":
self.pluginConf[param] = str( Path(self.pluginConf["pluginHome"]) / "www")
elif param == "SSLCertificate":
self.pluginConf[param] = str( Path(self.pluginConf["pluginHome"]) / "certs" / "server.crt")
elif param == "SSLPrivateKey":
self.pluginConf[param] = str( Path(self.pluginConf["pluginHome"]) / "certs" / "server.key")
else:
self.pluginConf[param] = SETTINGS[theme]["param"][param]["default"]
75 changes: 65 additions & 10 deletions Classes/WebServer/WebServer.py

Large diffs are not rendered by default.

Loading
Loading