enforce_updates = True

Danke!
[[[UpDw]]] type=bool knx_dpt=1 knx_send= 1/2/1
{{basic.button('UP', 'xxx.xxx.UpDw', '', 'control_arrow_up.svg', 0) }}

def update_item(self, item, caller=None, source=None, dest=None):
"""
Item has been updated
This method is called, if the value of an item has been updated by SmartHomeNG.
It should write the changed value out to the device (hardware/interface) that
is managed by this plugin.
:param item: item to be updated towards the plugin
:param caller: if given it represents the callers name
:param source: if given it represents the source
:param dest: if given it represents the dest
"""
if self.has_iattr(item.conf, KNX_SEND):
if caller != self.get_shortname():
for ga in self.get_iattr_value(item.conf, KNX_SEND):
self.groupwrite(ga, item(), self.get_iattr_value(item.conf, KNX_DPT))
[B] if self.logger.isEnabledFor(logging.DEBUG):
self.logger.debug("{}: update for item {}, send value '{}' to group address {}".format(KNX_SEND, item, item(), ga))[/B]
if self.has_iattr(item.conf, KNX_STATUS):
for ga in self.get_iattr_value(item.conf, KNX_STATUS): # send status update
if ga != dest:
self.groupwrite(ga, item(), self.get_iattr_value(item.conf, KNX_DPT))
[B] if self.logger.isEnabledFor(logging.DEBUG):
self.logger.debug("{}: update for item {}, send value '{}' to group address {}".format(KNX_SEND, item, item(), ga))[/B]
2020-11-21 22:18:32 CET DEBUG __init__ CP Server Thread-18 plugins.knx knx_send: update for item ArtMooney, send value 'True' to group address 8/1/158 -- __init__.py:update_item:682 2020-11-21 22:19:33 CET DEBUG __init__ items.ArtMooney-Timer plugins.knx knx_send: update for item ArtMooney, send value 'False' to group address 8/1/158 -- __init__.py:update_item:682
2020-11-20 22:41:25 CET WARNING smarthome Main The following threads have not been terminated properly by their plugins (please report to the plugin's author): -- (smarthome.py:stop:689) 2020-11-20 22:41:25 CET WARNING smarthome Main -Thread: Admin: Update blog links, still alive -- (smarthome.py:stop:691) 2020-11-20 22:41:25 CET WARNING smarthome Main SmartHomeNG stopped -- (smarthome.py:stop:693) 2020-11-20 22:41:31 CET WARNING smarthome Main -------------------- Init SmartHomeNG 1.7.2.master (3828810e) -------------------- -- (smarthome.py:__init__:310) 2020-11-20 22:41:31 CET WARNING smarthome Main Running in Python interpreter 'v3.5.3 final' on Linux-4.9.0-6-amd64-x86_64-with-debian-9.13 (pid=18590) -- (smarthome.py:__init__:311)
version: 1
disable_existing_loggers: False
formatters:
shng_simple:
format: '%(asctime)s %(levelname)-8s %(name)-19s %(message)s'
datefmt: '%Y-%m-%d %H:%M:%S'
shng_detail:
format: '%(asctime)s %(levelname)-8s %(module)-17s %(threadName)-12s %(message)s -- (%(filename)s:%(funcName)s:%(lineno)d)'
datefmt: '%Y-%m-%d %H:%M:%S %Z'
handlers:
console:
class: logging.StreamHandler
formatter: shng_detail
stream: ext://sys.stdout
shng_warnings_file:
class: logging.handlers.TimedRotatingFileHandler
formatter: shng_simple
level: WARNING
when: midnight
backupCount: 7
filename: ./var/log/smarthome-warnings.log
encoding: utf8
shng_details_file:
class: logging.handlers.TimedRotatingFileHandler
formatter: shng_detail
level: DEBUG
when: midnight
backupCount: 7
filename: ./var/log/smarthome-details.log
encoding: utf8
loggers:
__main__:
level: WARNING
handlers: [shng_details_file]
plugins.knx:
handlers: [shng_details_file]
level: DEBUG
# lib.scheduler:
# level: DEBUG
# plugins.cli:
# level: DEBUG
root:
level: WARNING
handlers: [shng_warnings_file]
loggers:
__main__:
level: WARNING
handlers: [shng_details_file]
plugins.knx:
handlers: [shng_details_file]
level: DEBUG
Wir verarbeiten personenbezogene Daten über die Nutzer unserer Website mithilfe von Cookies und anderen Technologien, um unsere Dienste bereitzustellen. Weitere Informationen findest Du in unserer Datenschutzerklärung.
Indem Du unten auf "ICH stimme zu" klickst, stimmst Du unserer Datenschutzerklärung und unseren persönlichen Datenverarbeitungs- und Cookie-Praktiken zu, wie darin beschrieben. Du erkennst außerdem an, dass dieses Forum möglicherweise außerhalb Deines Landes gehostet wird und bist damit einverstanden, dass Deine Daten in dem Land, in dem dieses Forum gehostet wird, gesammelt, gespeichert und verarbeitet werden.


Einen Kommentar schreiben: