Kodi add-on to control Domoticz

Moderator: leecollings

pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: Kodi add-on to control Domoticz

Post by pvm »

Is this add-on related to the Kodi Media Server hardware type added to Domoticz recently??
I activated that but it does not show anything
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Kodi add-on to control Domoticz

Post by Raspberry Piet »

pvm wrote:Is this add-on related to the Kodi Media Server hardware type added to Domoticz recently??
I activated that but it does not show anything

No it is not related.
I also noticed this new functionality within Domoticz.
It automaticaly makes this switch:
Image

Maybe start a new thread about this new promising functionality?
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: Kodi add-on to control Domoticz

Post by pvm »

Sorry for using this topic, made new one in http://www.domoticz.com/forum/viewtopic.php?f=28&t=7098
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
User avatar
sincze
Posts: 1299
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: Kodi add-on to control Domoticz

Post by sincze »

Looks very nice version 0.0.6. Thanks for the instructions via:
https://www.chopperrob.nl/xbmc-add-ons/ ... -from-kodi :D
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
User avatar
Egregius
Posts: 2582
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Kodi add-on to control Domoticz

Post by Egregius »

Nice thing from chopperrob :)

Altered one line in default.py do:

Code: Select all

if json_object["result"][i]["Status"] == "On" or json_object["result"][i]["Status"] == "Open" or json_object["result"][i]["Status"] == "All On" or json_object["result"][i]["Status"][:3] == "Set": 
Added the last or statement because dimmers didn't function.
mrjem
Posts: 4
Joined: Sunday 27 December 2015 17:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Kodi add-on to control Domoticz

Post by mrjem »

Hello

I tryed to install this addom on my Windows 7 pc with te latest version of kodi.
Script faild it says
i try to install version 006 but it wont work

Whats wrong ??
User avatar
Egregius
Posts: 2582
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Kodi add-on to control Domoticz

Post by Egregius »

Does the kodi.log file gives a clue?
Marcinek
Posts: 1
Joined: Saturday 07 May 2016 20:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Kodi add-on to control Domoticz

Post by Marcinek »

Where can I find documentation for this add-on
kniazio
Posts: 198
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: Kodi add-on to control Domoticz

Post by kniazio »

I have version 3.6154 domoticz
Plugin seems to see my Domoticz.
He sees room plan.
He can not see devices
kniazio
Posts: 198
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: Kodi add-on to control Domoticz

Post by kniazio »

Can you share this add-on?
MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Re: Kodi add-on to control Domoticz

Post by MikeF »

I'm getting '404 Not Found' on @Chopper-Rob's url - is this no longer available? :(
MikeF
Posts: 350
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.2
Location: UK
Contact:

Re: Kodi add-on to control Domoticz

Post by MikeF »

Just found it here: viewtopic.php?t=11576 - thanks @egregius - and got it working. Nice! :D
(I'm using osmc on a RPi 3)
User avatar
Denny64
Posts: 53
Joined: Friday 03 February 2017 11:34
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Italy
Contact:

Re: Kodi add-on to control Domoticz

Post by Denny64 »

Hi MikeF.

I suppose you're looking for this: https://github.com/h4wkmoon/xbmc-domoti ... master.zip

SeeU
kniazio
Posts: 198
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: Kodi add-on to control Domoticz

Post by kniazio »

This plugin sees my devices but does not launch them
kniazio
Posts: 198
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: Kodi add-on to control Domoticz

Post by kniazio »

Denny64 wrote:Hi MikeF.

I suppose you're looking for this: https://github.com/h4wkmoon/xbmc-domoti ... master.zip

SeeU
I think this is a problem here

Code: Select all

# Function to send commands to domoticz.
# It handles
# switches
# dimmer
# scenes & groups
def sendcmd(args):
		opt=""
		for val in args:
			if opt!="":
				opt=opt+"&"
			opt=opt+val+"="+args[val]
		#http://www.bbrose.net/domoticz//json.htm?cmd=On&type=command&param=switchlight&idx=22

		#~ log("Sending "+cmd+" to Switch "+str(switchid), xbmc.LOGNOTICE)
		#~ thisurl=__rooturl__+"/json.htm?type=command&param="+itemtype+"&idx="+str(switchid)+"&switchcmd="+cmd+"&level="+str(level)
		thisurl=__rooturl__+"/json.htm?"+opt
		log ("URL is "+thisurl , xbmc.LOGNOTICE)
		xbmc.executebuiltin( "ActivateWindow(busydialog)" )
		try:
			pagehandle = urllib2.urlopen(thisurl)
			html = pagehandle.read()
			pagehandle.close()
		except:
			html="Error !!"
		xbmc.executebuiltin( "Dialog.Close(busydialog)" )
		log(html, xbmc.LOGERROR)
		xbmc.sleep(2)
Invalid command syntax

Code: Select all

#http://www.bbrose.net/domoticz//json.htm?cmd=On&type=command&param=switchlight&idx=22
At present Domoticz should be:

Code: Select all

json.htm?type=command&param=switchlight&idx=18&switchcmd=On&level=0
I can not improve it
Chopper_Rob
Posts: 17
Joined: Wednesday 28 May 2014 21:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: NL
Contact:

Re: Kodi add-on to control Domoticz

Post by Chopper_Rob »

Hi guys,

If anyone is still looking for this add-on.
You can find it here:
https://www.dropbox.com/s/damik7spatoms ... l.zip?dl=0
kniazio
Posts: 198
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: Kodi add-on to control Domoticz

Post by kniazio »

But this plugin does not work for me.
It does not show my devices.

I have yet another plugin.
Very nice looks, shows my devices but they do not switch

https://github.com/h4wkmoon/xbmc-domoticz

Plugin works but only in Scenes.
What to do to work on Switches?
Attachments
IMG_20170422_172117_rs.jpg
IMG_20170422_172117_rs.jpg (109.12 KiB) Viewed 4632 times
mrjulien
Posts: 2
Joined: Tuesday 24 October 2017 21:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Kodi add-on to control Domoticz

Post by mrjulien »

Hi,

very nice plugins but don't work at home...i leave an issue on github.

i'm impatient to use it !

in fact, project is over and need some improvement. i'll try to create a fork
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest