Zitat von Bonze
Beitrag anzeigen
Die Frage ist, halt woher nehmen und nicht stehlen?

>>> import minimalmodbus
>>> instrument = minimalmodbus.schnittstelle('/dev/trovis', 10)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'minimalmodbus' has no attribute 'schnittstelle'
>>>
2021-08-27 08:46:29 ERROR pymodbus.client.sync [Errno 13] could not open port /dev/trovis: [Errno 13] Permission denied: '/dev/trovis' 2021-08-27 08:46:29 ERROR plugins.trovis557x.poll_device Method plugins.trovis557x.poll_device exception: 'ConnectionException' object is not iterable > Traceback (most recent call last): > File "/usr/local/smarthome/lib/scheduler.py", line 664, in _task > obj() > File "/usr/local/smarthome/plugins/trovis557x/__init__.py", line 84, in poll_device > self.verarbeiteWerte(ids_mit_werten, 'register') > File "/usr/local/smarthome/plugins/trovis557x/__init__.py", line 238, in verarbeiteWerte > for id, buswert in _ids_mit_werten: > TypeError: 'ConnectionException' object is not iterable
sudo chmod 777 /dev/trovis
2021-08-27 07:50:39 WARNING lib.smarthome.main -------------------- Init SmartHomeNG 1.8.2.master (0f462a1e) -------------------- 2021-08-27 07:50:39 WARNING lib.smarthome.main Running in Python interpreter 'v3.8.10 final', from directory /usr/local/smarthome 2021-08-27 07:50:39 WARNING lib.smarthome.main - on Linux-5.4.0-1042-raspi-armv7l-with-glibc2.29 (pid=2303) 2021-08-27 07:50:40 WARNING lib.smarthome.main - Nutze Feiertage für Land 'DE', Provinz 'NW', 1 benutzerdefinierte(r) Feiertag(e) definiert 2021-08-27 07:50:48 ERROR lib.db Database [Database]: Could not connect to the database using 'sqlite3': unable to open database file 2021-08-27 07:50:48 CRITICAL plugins.database Database: Initialization failed: unable to open database file 2021-08-27 07:50:48 WARNING lib.smarthome.main -------------------- SmartHomeNG restarting, initiated by SmartHomeNG (Database plugin stalled) -------------------- 2021-08-27 07:51:09 WARNING lib.smarthome.main -------------------- SmartHomeNG stopped -------------------- 2021-08-27 07:51:15 WARNING lib.smarthome.main -------------------- Init SmartHomeNG 1.8.2.master (0f462a1e) -------------------- 2021-08-27 07:51:15 WARNING lib.smarthome.main Running in Python interpreter 'v3.8.10 final', from directory /usr/local/smarthome 2021-08-27 07:51:15 WARNING lib.smarthome.main - on Linux-5.4.0-1042-raspi-armv7l-with-glibc2.29 (pid=2377) 2021-08-27 07:51:16 WARNING lib.smarthome.main - Nutze Feiertage für Land 'DE', Provinz 'NW', 1 benutzerdefinierte(r) Feiertag(e) definiert 2021-08-27 07:51:25 WARNING lib.item.items Plugins 'smartvisu' and 'trovis557x' define the same item-attribute 'visu_acl' 2021-08-27 07:51:28 WARNING lib.metadata Item 'heizung.rk3.heizkurve.minsoll', attribute 'werte': Attribute is undefined and has value '[20.0, 25.0, 30.0, 35.0, 40.0, 45.0, 50.0, 55.0, 60.0, 65.0, 70.0, 75.0, 80.0, 85.0, 90.0]' (defined in trovis.yaml) 2021-08-27 07:51:28 WARNING lib.metadata Item 'heizung.rk3.heizkurve.solltemperatur', attribute 'werte': Attribute is undefined and has value '[20.0, 25.0, 30.0, 35.0, 40.0, 45.0, 50.0, 55.0, 60.0, 65.0, 70.0, 75.0, 80.0, 85.0, 90.0]' (defined in trovis.yaml) 2021-08-27 07:51:28 WARNING lib.metadata Item 'heizung.rk3.heizkurve.maxsoll', attribute 'werte': Attribute is undefined and has value '[20.0, 25.0, 30.0, 35.0, 40.0, 45.0, 50.0, 55.0, 60.0, 65.0, 70.0, 75.0, 80.0, 85.0, 90.0]' (defined in trovis.yaml) 2021-08-27 09:51:28 WARNING lib.smarthome.main -------------------- SmartHomeNG initialization finished -------------------- 2021-08-27 09:51:43 WARNING pymodbus.client.sync Cleanup recv buffer before send: 0x0 0x1 0xff 0xfe 0x16 0x16 0x0 0x1 0xff 0xfe 0x1b 0x1b 0x0 0x1 0xff 0xfe 0x1b 0x1b 0x0 0x1 0xff 0xfe 0x1f 0x1b 0x0 0x1 0xff 0xfe 0x13 0x13 0x0 0x1 0xff 0xfe 0x1d 0x19 0x0 0x1 0xff 0xfe 0x13 0x12 0x0 0x1 0xff 0xfe 0x16 0x6 0x0 0x1 0xff 0xfe 0x12 0x16 0x0 0x1 0xff 0xfe 0x19 0x19 0x0 0x1 0xff 0xfe 0x1f 0x1b 0x0 0x1 0xff 0xfe 0x1f 0x1b 0x0 0x1 0xff 0xfe 0x1f 0x1b 0x0 0x1 0xff 0xfe 0x16 0x1a 0x0 0x1 0xff 0xfe 0x13 0x12 0x0 0x1 0xff 0xfe 0x17 0x16 0x0 0x1 0xff 0xfe 0x1d 0x1b 2021-08-27 09:51:43 ERROR plugins.trovis557x.poll_device Method plugins.trovis557x.poll_device exception: 'AttributeError' object is not iterable > Traceback (most recent call last): > File "/usr/local/smarthome/lib/scheduler.py", line 664, in _task > obj() > File "/usr/local/smarthome/plugins/trovis557x/__init__.py", line 84, in poll_device > self.verarbeiteWerte(ids_mit_werten, 'register') > File "/usr/local/smarthome/plugins/trovis557x/__init__.py", line 238, in verarbeiteWerte > for id, buswert in _ids_mit_werten: > TypeError: 'AttributeError' object is not iterable 2021-08-27 09:52:43 ERROR plugins.trovis557x.poll_device Method plugins.trovis557x.poll_device exception: 'AttributeError' object is not iterable > Traceback (most recent call last): > File "/usr/local/smarthome/lib/scheduler.py", line 664, in _task > obj() > File "/usr/local/smarthome/plugins/trovis557x/__init__.py", line 84, in poll_device > self.verarbeiteWerte(ids_mit_werten, 'register') > File "/usr/local/smarthome/plugins/trovis557x/__init__.py", line 238, in verarbeiteWerte > for id, buswert in _ids_mit_werten: > TypeError: 'AttributeError' object is not iterable 2021-08-27 09:53:43 ERROR plugins.trovis557x.poll_device Method plugins.trovis557x.poll_device exception: 'AttributeError' object is not iterable > Traceback (most recent call last): > File "/usr/local/smarthome/lib/scheduler.py", line 664, in _task > obj() > File "/usr/local/smarthome/plugins/trovis557x/__init__.py", line 84, in poll_device > self.verarbeiteWerte(ids_mit_werten, 'register') > File "/usr/local/smarthome/plugins/trovis557x/__init__.py", line 238, in verarbeiteWerte > for id, buswert in _ids_mit_werten: > TypeError: 'AttributeError' object is not iterable
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.


Kommentar