I have this strange situation that probably has a simple solution. I want to run the following script (script_time_alarm.py):
Code: Select all
import DomoticzEvents as DE
import verisure
session = verisure.Session('email', 'password')
session.login()
armstate = session.get_arm_state()
session.logout()
print(armstate["statusType"])
DE.Log("Alarm status")
The problem is that Domoticz will not run the script with the verisure library included. If i remove DomoticzEvents i can run it from the command line without problem. If i remove the Verisure library domoticz runs it as it should every minute.
What have i done wrong?