Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Domoticz plugin

Questions and comments specific to a particular plugin should go here.
WoLpH
Experienced User
Posts: 96
Joined: Mon Dec 10, 2012 3:57 am

Re: Domoticz plugin

Post by WoLpH »

I think I may have a different solution which looks pretty easy. It appears that hbmqtt is pretty easy to install and run.

Assuming you have a separate Python installation:
pip install hbmqtt
hbmqtt

Docs: http://hbmqtt.readthedocs.io/en/latest/quickstart.html
Author of the book Mastering Python. Got Python questions? Perhaps I can help :)
kalinkamaen
Experienced User
Posts: 138
Joined: Wed Dec 26, 2012 9:23 am

Re: Domoticz plugin

Post by kalinkamaen »

I found both Dll files now on forum and it worked. Sorry for bothering you with this. I have now made connection from domoticz to EG finaly.
I restarted the computer on teamviewer but now i can not connect it again hehe. It probably never restarted for some reason. Beeing away from the computer
i can not play with it. Looking forward to test this more :)
kalinkamaen
Experienced User
Posts: 138
Joined: Wed Dec 26, 2012 9:23 am

Re: Domoticz plugin

Post by kalinkamaen »

Mqtt working in windows 7 :)

Code: Select all

MQTT.domoticz/out/Lighting 4/269 [255, 6, 'Lighting 4', 'C0004C', 269, 'PIR gang (1)', 1, 'PT2262', '343', 'Motion Sensor', 0]
MQTT.domoticz/out/Lighting 2/293 [255, 12, 'Lighting 2', '0669732', 293, 'Gang', 2, 'AC', '15', 'Dimmer', 11]
MQTT.domoticz/out/Lighting 4/269 [255, 6, 'Lighting 4', 'C0004C', 269, 'PIR gang (1)', 1, 'PT2262', '343', 'Motion Sensor', 0]
MQTT.domoticz/out/Lighting 2/293 [255, 12, 'Lighting 2', '0669732', 293, 'Gang', 2, 'AC', '15', 'Dimmer', 11]
MQTT.domoticz/out/Lighting 4/269 [255, 6, 'Lighting 4', 'C0004C', 269, 'PIR gang (1)', 1, 'PT2262', '343', 'Motion Sensor', 0]
MQTT.domoticz/out/Lighting 2/293 [255, 12, 'Lighting 2', '0669732', 293, 'Gang', 2, 'AC', '15', 'Dimmer', 11]
MQTT.domoticz/out/Lighting 2/11 [255, 12, 'Lighting 2', '0005442', 11, 'Kj\xc3\xb8kken Spisebord', 2, 'AC', '11', 'Dimmer', 2]
MQTT.domoticz/out/Lighting 2/17 [255, 12, 'Lighting 2', '0005442', 17, 'Kj\xc3\xb8kken v/benk', 2, 'AC', '11', 'Dimmer', 1]
MQTT.domoticz/out/Lighting 2/293 [255, 12, 'Lighting 2', '0669732', 293, 'Gang', 2, 'AC', '15', 'Dimmer', 11]
MQTT.domoticz/out/Lighting 2/22 [255, 12, 'Lighting 2', '000B73A', 22, 'Bad 1 etg Spotter', 0, 'AC', '0', 'Dimmer', 1]
MQTT.domoticz/out/Lighting 2/16 [255, 12, 'Lighting 2', '0003551', 16, 'Bad 1 etg v/speil', 0, 'AC', '0', 'Dimmer', 1]
MQTT.domoticz/out/Lighting 2/428 [255, 12, 'Lighting 2', '3080403', 428, 'Bad lys sonos control', 0, 'AC', '0', 'On/Off', 12]
TellStickDuo.Bad 1etg spotter.OFF u"selflearning-dimmer:nexa.253.0"
MQTT.domoticz/out/Lighting 4/269 [255, 6, 'Lighting 4', 'C0004C', 269, 'PIR gang (1)', 1, 'PT2262', '343', 'Motion Sensor', 0]
MQTT.domoticz/out/Lighting 2/293 [255, 12, 'Lighting 2', '0669732', 293, 'Gang', 2, 'AC', '15', 'Dimmer', 11]
MQTT.domoticz/out/Temp + Humidity/261 [100, 5, 'Temp + Humidity', '34304', 261, 'Ute temp 2', 0, 'Viking 02035, 02038, TSS320', '8.7', '0', 0]
MQTT.domoticz/out/Temp + Humidity/143 [100, 6, 'Temp + Humidity', '38656', 143, 'Bad temp', 0, 'Viking 02035, 02038, TSS320', '26.1', '37', 0]
MQTT.domoticz/out/Lighting 4/269 [255, 6, 'Lighting 4', 'C0004C', 269, 'PIR gang (1)', 1, 'PT2262', '343', 'Motion Sensor', 0]
MQTT.domoticz/out/Lighting 2/293 [255, 12, 'Lighting 2', '0669732', 293, 'Gang', 2, 'AC', '15', 'Dimmer', 11]
MQTT.domoticz/out/Temp/41 [100, 5, 'Temp', '12544', 41, 'Loft temp', 0, 'Viking 02811/02813, Proove TSS330', '22.3', 0]
MQTT.domoticz/out/Temp + Humidity/1037 [100, 5, 'Temp + Humidity', '34560', 1037, 'Ute temp', 0, 'Viking 02035, 02038, TSS320', '9.4', '60', 0]
MQTT.domoticz/out/Lighting 2/11 [255, 12, 'Lighting 2', '0005442', 11, 'Kj\xc3\xb8kken Spisebord', 2, 'AC', '11', 'Dimmer', 2]
MQTT.domoticz/out/Lighting 2/17 [255, 12, 'Lighting 2', '0005442', 17, 'Kj\xc3\xb8kken v/benk', 2, 'AC', '11', 'Dimmer', 1]
MQTT.domoticz/out/Lighting 2/293 [255, 12, 'Lighting 2', '0669732', 293, 'Gang', 2, 'AC', '15', 'Dimmer', 11]
MQTT.domoticz/out/Lighting 2/22 [255, 12, 'Lighting 2', '000B73A', 22, 'Bad 1 etg Spotter', 0, 'AC', '0', 'Dimmer', 1]
MQTT.domoticz/out/Lighting 2/16 [255, 12, 'Lighting 2', '0003551', 16, 'Bad 1 etg v/speil', 0, 'AC', '0', 'Dimmer', 1]
MQTT.domoticz/out/Lighting 2/428 [255, 12, 'Lighting 2', '3080403', 428, 'Bad lys sonos control', 0, 'AC', '0', 'On/Off', 12]
TellStickDuo.Bad 1etg spotter.OFF u"selflearning-dimmer:nexa.253.0"
MQTT.domoticz/out/Temp/41 [100, 5, 'Temp', '12544', 41, 'Loft temp', 0, 'Viking 02811/02813, Proove TSS330', '22.3', 0]
MQTT.domoticz/out/Lighting 4/274 [255, 6, 'Lighting 4', 'CFFFF3', 274, 'PIR kj\xc3\xb8kken', 1, 'PT2262', '343', 'Motion Sensor', 0]
MQTT.domoticz/out/Lighting 2/11 [255, 12, 'Lighting 2', '0005442', 11, 'Kj\xc3\xb8kken Spisebord', 2, 'AC', '11', 'Dimmer', 2]
MQTT.domoticz/out/Lighting 2/17 [255, 12, 'Lighting 2', '0005442', 17, 'Kj\xc3\xb8kken v/benk', 2, 'AC', '11', 'Dimmer', 1]
This works like a champ. Thank you! I could never have done this without your help!
WoLpH
Experienced User
Posts: 96
Joined: Mon Dec 10, 2012 3:57 am

Re: Domoticz plugin

Post by WoLpH »

Great :)

Although most of the thanks go to krambriw in this case, he wrote the mqtt plugin
Author of the book Mastering Python. Got Python questions? Perhaps I can help :)
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Domoticz plugin

Post by krambriw »

Having the correct dll's seem to be the biggest problem. I tried to make mosquitto broker run on Windows 10 but so far, no success (I really do not need it to run since I have all my brokers running under Linux, it is for curiosity)

Do you have a link where reliable libeay32.dll and ssleay32.dll can be found? I do not see that they are installed by OpenSSL

EDIT: The problem might be related to what is discussed in the forum here: https://github.com/paralect/robomongo/issues/786. It seems those files should have been part of the OpenSSL installation. Anyway, I downloaded the dll's from the links provided in the discussion and now it works, mosquitto is running as a service under Windows 10
kalinkamaen
Experienced User
Posts: 138
Joined: Wed Dec 26, 2012 9:23 am

Re: Domoticz plugin

Post by kalinkamaen »

Yes, you found the same dll files as me. Sorry, I should have shared this for other users. Thanks for sharing.
Hopfully this will help others windows users.
aldi13
Posts: 25
Joined: Wed Jan 01, 2014 3:35 pm

Re: Domoticz plugin

Post by aldi13 »

I am feeling stupid. I can't get this plugin to connect. I am only interested in sending commands to Domocitz not listening in. I went to gethub and downloaded the latest version. I am running Domocitz on the same machine as eventghost. When I add the plugin I type in http://127.0.0.1:8080 for the host and it won't connect. I left username and password blank. I tried adding a unsername and password then putting that in but it still won't connect. I get Unable to connect KeyError('result') in the console. What am I missing with getting this setup?
WoLpH
Experienced User
Posts: 96
Joined: Mon Dec 10, 2012 3:57 am

Re: Domoticz plugin

Post by WoLpH »

The plugin tests using the json url in domotics. Can you attach the output of http://127.0.0.1:8080/json.htm?type=dev ... &used=true

One theory is that you don't have any used switches set up, it filters on all applicable devices.
Author of the book Mastering Python. Got Python questions? Perhaps I can help :)
aldi13
Posts: 25
Joined: Wed Jan 01, 2014 3:35 pm

Re: Domoticz plugin

Post by aldi13 »

I think you might be right...I haven't setup any switches. I plan to use this to control my Harmony Hub. Sounds like I need to setup some switches first.
loveleejohn
Experienced User
Posts: 133
Joined: Thu Dec 10, 2015 12:09 am

Re: Domoticz plugin

Post by loveleejohn »

This certainly looks like an interesting plugin if I can ever muster the courage to divorce my Vera or should she die - whichever comes first. lol. Thanks for the post OP!
WoLpH
Experienced User
Posts: 96
Joined: Mon Dec 10, 2012 3:57 am

Re: Domoticz plugin

Post by WoLpH »

There is some compatibility between them but it's not something I would recommend. https://www.domoticz.com/wiki/VERA

The Vera certainly looks good :)
Author of the book Mastering Python. Got Python questions? Perhaps I can help :)
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Domoticz plugin

Post by kgschlosser »

WoLpH wrote:There is some compatibility between them but it's not something I would recommend. https://www.domoticz.com/wiki/VERA

The Vera certainly looks good :)

yeah and that's about the only thing a Vera does that is good. you should take a gander at the forums... it's crazy. I have one also. and it just took a crap on me and all i did was login to the thing.. I am changing really soon. going to order the USB Z-wave tomorrow then bye bye Vera.. and Domoticz will be what I change to.
If you like the work I have been doing then feel free to Image
WoLpH
Experienced User
Posts: 96
Joined: Mon Dec 10, 2012 3:57 am

Re: Domoticz plugin

Post by WoLpH »

Domoticz is far from perfect but at least it's open source and you can run your own fork if needed. I've had some weird stuff with domoticz as well, the worst of which was when it connected all z-wave devices to each other. The result was that the motion sensors in the hallways of my house caused the curtains to open in the bedroom. Not too convenient when you're simply going for a pee at night.
Author of the book Mastering Python. Got Python questions? Perhaps I can help :)
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Domoticz plugin

Post by kgschlosser »

How is the support end of things??? are they quick to respond and actually try to figure out what the issue is?. or do they try to pass the buck all the time?
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Domoticz plugin

Post by kgschlosser »

i do have a question tho.... why the use of mqtt?? you can code a connector up in python for Domoticz and do a direct socket connection to a plugin made for EG.
If you like the work I have been doing then feel free to Image
Post Reply