[help]how to use "onNotification" function in python plugin file
Posted: Saturday 16 June 2018 8:38
Version: V3.8135 (stable)
Platform: windows
Plugin/Hardware: no hardware,the code down from "https://github.com/domoticz/domoticz/bl ... emplate.py"
Description:
i do not know how to use (or how to active) "onNotification" callbacks function, who can tell me ? i find in Developing_a_Python_plugin.pdf .but is too simple
I Created a virtual hardware which download from "https://github.com/domoticz/domoticz/bl ... emplate.py"
this is my code :
and i've active all Notification system , as matter of fact,my phone is aleady receiving Notification(prowl)
and this is runing debug logs
I mean when i press "switch" button . the onCommand function executioned and loged at history file but。。。 the onNotification no run yet
========================================================================================
i don't know how to post imgs, i used google photo album . pls copy the url at brower sorry
i am chinese. i've studied Domoticz about six months,this is my first time i've asked a question , i hope you can help me thank you !!!
Platform: windows
Plugin/Hardware: no hardware,the code down from "https://github.com/domoticz/domoticz/bl ... emplate.py"
Description:
i do not know how to use (or how to active) "onNotification" callbacks function, who can tell me ? i find in Developing_a_Python_plugin.pdf .but is too simple
I Created a virtual hardware which download from "https://github.com/domoticz/domoticz/bl ... emplate.py"
this is my code :
and i've active all Notification system , as matter of fact,my phone is aleady receiving Notification(prowl)
and this is runing debug logs
I mean when i press "switch" button . the onCommand function executioned and loged at history file but。。。 the onNotification no run yet
========================================================================================
i don't know how to post imgs, i used google photo album . pls copy the url at brower sorry
i am chinese. i've studied Domoticz about six months,this is my first time i've asked a question , i hope you can help me thank you !!!