[Total Python N00b!]
Experiencing exactly this too...
About Domotic
Version: 4.9723
Build Hash: 7d8c01f7
Compile Date: 2018-06-27 15:06:06
dzVents Version: 2.4.6
Python Version: 3.5.3 (default, Jan 19 2017, 14:11:04) [GCC 6.3.0 20170124]
Uptime: 17 Hours, 9 Minutes, 35 Seconds
Error in log:
Code: Select all
2018-06-30 11:48:09.377 PluginSystem: Restarting I/O service thread.
2018-06-30 11:48:18.494 Error: EventSystem: Failed to execute python event script "Just-a-log-line"
2018-06-30 11:48:18.494 Error: EventSystem: Traceback (most recent call last):
2018-06-30 11:48:18.494 Error: EventSystem: File "<string>", line 4, in <module>
2018-06-30 11:48:18.494 Error: EventSystem: File "/home/pi/domoticz/scripts/python/domoticz.py", line 42, in log
2018-06-30 11:48:18.494 Error: EventSystem: domoticz_.log(0, " ".join([str(k) for k in args]))
2018-06-30 11:48:18.494 Error: EventSystem: AttributeError: module 'DomoticzEvents' has no attribute 'log'
Script
Code: Select all
import domoticz
import random
domoticz.log("Hi Domoticz!")