Skip to content

Instantly share code, notes, and snippets.

@tikismoke
Created November 4, 2015 21:09
Show Gist options
  • Save tikismoke/a4099e707d94f46a3b5c to your computer and use it in GitHub Desktop.
Save tikismoke/a4099e707d94f46a3b5c to your computer and use it in GitHub Desktop.
sudo -u domogik /usr/bin/python /var/lib/domogik//domogik_packages/plugin_ozwave/bin/ozwave.py -f
Error: Plugin Starting failed to import module (No module named domogik_packages.plugin_ozwave.lib.ozwave)
is manager
2015-11-04 22:08:28,222 domogik-ozwave INFO Looking for launched instances of 'ozwave'
2015-11-04 22:08:28,238 domogik-ozwave INFO No existing process.
2015-11-04 22:08:28,242 domogik-ozwave DEBUG watcher fork
2015-11-04 22:08:28,243 domogik-ozwave INFO ----------------------------------
2015-11-04 22:08:28,245 domogik-ozwave INFO Starting client 'ozwave' (new manager instance)
2015-11-04 22:08:28,245 domogik-ozwave INFO Python version is sys.version_info(major=2, minor=7, micro=3, releaselevel='final', serial=0)
2015-11-04 22:08:28,248 domogik-ozwave DEBUG Send client status : starting
2015-11-04 22:08:28,250 domogik-ozwave DEBUG Send client status : starting
2015-11-04 22:08:28,255 domogik-ozwave DEBUG Write pid file for pid '13248' in file '/var/run/domogik/ozwave.pid'
2015-11-04 22:08:28,256 domogik-ozwave INFO Read the json file and validate id
2015-11-04 22:08:28,269 domogik-ozwave INFO The json file is valid
2015-11-04 22:08:28,270 domogik-ozwave INFO Check if there are pictures for the defined products
2015-11-04 22:08:28,270 domogik-ozwave WARNING - Missing : Z-Stick S2 (ctrl_aeon_stick2.['jpg', 'png'])
2015-11-04 22:08:28,270 domogik-ozwave WARNING - Missing : FGS211 Relay 3kW (FGS211_Relay.['jpg', 'png'])
2015-11-04 22:08:28,270 domogik-ozwave WARNING - Missing : FGS221 Double Relay Switch 2x1,5kW (FGS221_Double_Relay.['jpg', 'png'])
2015-11-04 22:08:28,271 domogik-ozwave WARNING - Missing : HSM02 Mini Door/Window Detector (HSM02.['jpg', 'png'])
2015-11-04 22:08:28,271 domogik-ozwave WARNING - Missing : ZME_KFOB 4 Button Key Fob (ZME_KFOB.['jpg', 'png'])
2015-11-04 22:08:28,271 domogik-ozwave WARNING - Missing : Home Energy Meter 3 phases (HEM_3p.['jpg', 'png'])
2015-11-04 22:08:28,271 domogik-ozwave WARNING - Missing : Home Energy Meter 2 phases (HEM_2p.['jpg', 'png'])
2015-11-04 22:08:28,272 domogik-ozwave WARNING - Missing : HSM100 Wireless Multi-Sensor (HSM100.['jpg', 'png'])
2015-11-04 22:08:28,272 domogik-ozwave WARNING - Missing : AN158 Plug-in Meter Appliance Module (AN158.['jpg', 'png'])
2015-11-04 22:08:28,272 domogik-ozwave WARNING - Missing : FGWPE Wall Plug (FGWPE_Wall_Plug.['jpg', 'png'])
2015-11-04 22:08:28,272 domogik-ozwave WARNING - Missing : ST814 Temperature and Humidity Sensor (ST814.['jpg', 'png'])
2015-11-04 22:08:28,272 domogik-ozwave WARNING - Missing : SF812 Smoke Alarm (SF812.['jpg', 'png'])
2015-11-04 22:08:28,272 domogik-ozwave WARNING - Missing : Danfoss living connect (014G0013.['jpg', 'png'])
2015-11-04 22:08:28,273 domogik-ozwave WARNING Some pictures are missing!
2015-11-04 22:08:28,273 domogik-ozwave INFO End init of the global client part
2015-11-04 22:08:28,273 domogik-ozwave INFO Start of the xPL init
2015-11-04 22:08:28,273 domogik-ozwave INFO Configured interface(s) : ['eth0']
2015-11-04 22:08:28,273 domogik-ozwave INFO The xpl connection may be done on the below addresses (only one will be used):
2015-11-04 22:08:28,274 domogik-ozwave INFO - 192.168.0.34:0
2015-11-04 22:08:28,274 domogik-ozwave INFO Binding to ('192.168.0.34', 0) [BIND]...
2015-11-04 22:08:28,274 domogik-ozwave DEBUG xPL plugin ozwave socket bound to 192.168.0.34, port 42145
2015-11-04 22:08:28,274 domogik-ozwave INFO Plugin configure to have the xPL hub as mandatory!
2015-11-04 22:08:28,274 domogik-ozwave INFO HUB discovery > starting
2015-11-04 22:08:28,274 domogik-ozwave DEBUG send hbeat
2015-11-04 22:08:28,275 domogik-ozwave INFO HUB discovery > looking for the hub. I hope there is one hub, Domogik won't work without the hub!
HUB discovery > looking for the hub. I hope there is one hub, Domogik won't work without the hub!
2015-11-04 22:08:28,275 domogik-ozwave DEBUG normal send
2015-11-04 22:08:28,279 domogik-ozwave DEBUG xPL thread started for ozwave
2015-11-04 22:08:28,279 domogik-ozwave INFO HUB discovery > Received HBEAT echo, HUB detected
HUB discovery > Received HBEAT echo, HUB detected
2015-11-04 22:08:28,280 domogik-ozwave DEBUG New timer registered : <domogik.xpl.common.xplconnector.XplTimer instance at 0x13e05f0>
2015-11-04 22:08:28,280 domogik-ozwave DEBUG send hbeat
2015-11-04 22:08:28,280 domogik-ozwave DEBUG New timer created : <domogik.xpl.common.xplconnector.XplTimer instance at 0x13e05f0>
2015-11-04 22:08:28,281 domogik-ozwave INFO HUB discovery > hub found, configuration in progress
HUB discovery > hub found, configuration in progress
2015-11-04 22:08:28,282 domogik-ozwave INFO End of the xPL init
2015-11-04 22:08:28,282 domogik-ozwave DEBUG normal send
2015-11-04 22:08:28,283 domogik-ozwave DEBUG Init config query(mq) instance
2015-11-04 22:08:28,284 domogik-ozwave INFO Request query config for client ozwave : key configured
2015-11-04 22:08:28,284 domogik-ozwave DEBUG send hbeat
2015-11-04 22:08:28,285 domogik-ozwave INFO HUB discovery > hub found, configuration in progress
HUB discovery > hub found, configuration in progress
2015-11-04 22:08:28,286 domogik-ozwave DEBUG normal send
2015-11-04 22:08:28,289 domogik-ozwave DEBUG New listener 31e0ce18-8338-11e5-aec6-00ffaa000014, filter : {'xpltype': 'xpl-cmnd', 'schema': 'hbeat.request'}
2015-11-04 22:08:28,298 domogik-ozwave DEBUG Query config : successfull response : <MQMessage(action=config.result, data='{u'status': True, u'name': u'ozwave', u'reason': u'', u'value': True, u'host': u'domogik0', u'key': u'configured', u'type': u'plugin'}')>
2015-11-04 22:08:28,299 domogik-ozwave INFO The client is configured. Continuing (hoping that the user applied the appropriate configuration ;)
2015-11-04 22:08:28,299 domogik-ozwave INFO Request query config for client ozwave : key ozwlog
2015-11-04 22:08:28,308 domogik-ozwave DEBUG Query config : successfull response : <MQMessage(action=config.result, data='{u'status': True, u'name': u'ozwave', u'reason': u'', u'value': u'Y', u'host': u'domogik0', u'key': u'ozwlog', u'type': u'plugin'}')>
2015-11-04 22:08:28,308 domogik-ozwave INFO Value for 'ozwlog' is : Y
2015-11-04 22:08:28,308 domogik-ozwave INFO Casting value for key 'ozwlog' in type 'boolean'...
2015-11-04 22:08:28,309 domogik-ozwave INFO Value is : True
('Mode log openzwave :', True)
2015-11-04 22:08:28,309 domogik-ozwave INFO Request query config for client ozwave : key configpath
2015-11-04 22:08:28,317 domogik-ozwave DEBUG Query config : successfull response : <MQMessage(action=config.result, data='{u'status': True, u'name': u'ozwave', u'reason': u'', u'value': u'/home/python-openzwave/openzwave/config/', u'host': u'domogik0', u'key': u'configpath', u'type': u'plugin'}')>
2015-11-04 22:08:28,318 domogik-ozwave INFO Value for 'configpath' is : /home/python-openzwave/openzwave/config/
2015-11-04 22:08:28,318 domogik-ozwave INFO Casting value for key 'configpath' in type 'string'...
2015-11-04 22:08:28,318 domogik-ozwave INFO Value is : /home/python-openzwave/openzwave/config/
Traceback (most recent call last):
File "/var/lib/domogik//domogik_packages/plugin_ozwave/bin/ozwave.py", line 286, in <module>
OZwave()
File "/var/lib/domogik//domogik_packages/plugin_ozwave/bin/ozwave.py", line 81, in __init__
self.myzwave = OZWavemanager(self, self.send_xPL, self.sendxPL_trig, self.get_stop(), self.log, configPath = pathConfig, userPath = pathUser, ozwlog = ozwlogConf)
NameError: global name 'OZWavemanager' is not defined
2015-11-04 22:08:43,254 domogik-ozwave DEBUG Send client status : starting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment