Kodi add-on to control Domoticz

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

Re: Kodi add-on to control Domoticz

Post by pvm » Sunday 28 June 2015 22:31

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, PI3, ZWave, Xiamo zigbee devices, BTLE plant sensor

Raspberry Piet
Posts: 464
Joined: Saturday 11 January 2014 17:21
Target OS: Raspberry Pi
Domoticz version: Beta
Location: NL
Contact:

Re: Kodi add-on to control Domoticz

Post by Raspberry Piet » Sunday 28 June 2015 23:22

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: 962
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: NL
Contact:

Re: Kodi add-on to control Domoticz

Post by pvm » Sunday 28 June 2015 23:41

Sorry for using this topic, made new one in http://www.domoticz.com/forum/viewtopic.php?f=28&t=7098
Synology NAS, PI3, ZWave, Xiamo zigbee devices, BTLE plant sensor

User avatar
sincze
Posts: 995
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Netherlands
Contact:

Re: Kodi add-on to control Domoticz

Post by sincze » Wednesday 23 December 2015 0:52

Looks very nice version 0.0.6. Thanks for the instructions via:
https://www.chopperrob.nl/xbmc-add-ons/ ... -from-kodi :D
Using Pass2php since 2016-12
LAN: RFLink, P1-Port, OTGW, MySensors
USB: RFXCom, ZWave
WIFI: Mi-light Wifi-Bridge, Sonoff, ESP8266, Xiaomi Gateway
Solar: Omnik Inverter, PVOutput
Video: Kodi clients with Harmony HUB
Sensors: You name it I probably got 1.

User avatar
Egregius
Posts: 2747
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: Beta
Location: Beitem, BE
Contact:

Re: Kodi add-on to control Domoticz

Post by Egregius » Wednesday 23 December 2015 1:29

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 18:54
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Kodi add-on to control Domoticz

Post by mrjem » Sunday 27 December 2015 18:58

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: 2747
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: Beta
Location: Beitem, BE
Contact:

Re: Kodi add-on to control Domoticz

Post by Egregius » Sunday 27 December 2015 23:36

Does the kodi.log file gives a clue?

Marcinek
Posts: 1
Joined: Saturday 07 May 2016 20:59
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Kodi add-on to control Domoticz

Post by Marcinek » Saturday 07 May 2016 21:04

Where can I find documentation for this add-on

kniazio
Posts: 77
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Kodi add-on to control Domoticz

Post by kniazio » Thursday 15 December 2016 22:47

I have version 3.6154 domoticz
Plugin seems to see my Domoticz.
He sees room plan.
He can not see devices

kniazio
Posts: 77
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Kodi add-on to control Domoticz

Post by kniazio » Friday 14 April 2017 8:47

Can you share this add-on?

MikeF
Posts: 242
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi
Domoticz version: V4.9700
Location: UK
Contact:

Re: Kodi add-on to control Domoticz

Post by MikeF » Friday 14 April 2017 10:59

I'm getting '404 Not Found' on @Chopper-Rob's url - is this no longer available? :(

MikeF
Posts: 242
Joined: Sunday 19 April 2015 0:36
Target OS: Raspberry Pi
Domoticz version: V4.9700
Location: UK
Contact:

Re: Kodi add-on to control Domoticz

Post by MikeF » Friday 14 April 2017 12:03

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: 48
Joined: Friday 03 February 2017 12:34
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: Italy
Contact:

Re: Kodi add-on to control Domoticz

Post by Denny64 » Friday 14 April 2017 12:10

Hi MikeF.

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

SeeU

kniazio
Posts: 77
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Kodi add-on to control Domoticz

Post by kniazio » Friday 14 April 2017 12:59

This plugin sees my devices but does not launch them

kniazio
Posts: 77
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Kodi add-on to control Domoticz

Post by kniazio » Friday 14 April 2017 17:59

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: 57
Joined: Wednesday 28 May 2014 21:11
Target OS: Raspberry Pi
Domoticz version:
Location: NL
Contact:

Re: Kodi add-on to control Domoticz

Post by Chopper_Rob » Saturday 22 April 2017 16:23

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: 77
Joined: Thursday 06 October 2016 8:14
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Kodi add-on to control Domoticz

Post by kniazio » Saturday 22 April 2017 16:55

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 3416 times

mrjulien
Posts: 2
Joined: Tuesday 24 October 2017 21:36
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Kodi add-on to control Domoticz

Post by mrjulien » Wednesday 07 February 2018 1:01

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

DylanCooper
Posts: 1
Joined: Tuesday 09 October 2018 16:09
Target OS: -
Domoticz version:
Contact:

Re: Kodi add-on to control Domoticz

Post by DylanCooper » Tuesday 09 October 2018 16:16

I was also searching different addons, i went to googling and found the detailed best kodi addons list. Hope this will help to all streaming users on Domoticz. 8-)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest