XBMC notify

Moderator: leecollings

Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: XBMC notify

Post by Raspberry Piet »

Brutus wrote: Are there some settings to be made in Kodi?
In Kodi enable setting "Allow programs on other systems to control Kodi". (Setting > Services > Remote Control)
Then it would work i hope.
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: XBMC notify

Post by pvm »

Nice improvement on Domoticz. I did a quick test with the default settings. It did not work. So i changed the ip to one of my 2 Kodi installs and it works fine, nice!
I do not know how to configure it back to multicast... i do not remember the default setting. How should it be configured? My machines are 192.168.1.4 and 192.168.1.5, i would like to reach them both
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
User avatar
Brutus
Posts: 249
Joined: Friday 26 September 2014 9:33
Target OS: Windows
Domoticz version:
Location: Netherlands
Contact:

Re: XBMC notify

Post by Brutus »

Thanks for your reply. I have those options enabled already.

Still nothing hapens when you hit the test button.

The webserver has nothing to do with it? because that is usename and password protected.
You can not enter those in domoticz.
1x Intel NUC8i5BEK (Windows 10 x64) Domoticz on Virtualbox with DietPi.
1x Aeon Labs USB Z-Stick S2
1x P1 Smart Meter USB
28x Fibaro Modules
SMA Solar System
Daikin Airco / Heating
Denon DHT-S716H & DSW-1H
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: XBMC notify

Post by pvm »

Brutus wrote:Thanks for your reply. I have those options enabled already.

Still nothing hapens when you hit the test button.

The webserver has nothing to do with it? because that is usename and password protected.
You can not enter those in domoticz.
Do you have any firewalls enabled ? Running kodi on windows too?
(i'm running Domoticz on Pi and Kodi on Openelec , both non-windows, working fine (for 1 ip))
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
User avatar
Brutus
Posts: 249
Joined: Friday 26 September 2014 9:33
Target OS: Windows
Domoticz version:
Location: Netherlands
Contact:

Re: XBMC notify

Post by Brutus »

Both running on the same Windows Machine.
Firewall is the default from Windows.
1x Intel NUC8i5BEK (Windows 10 x64) Domoticz on Virtualbox with DietPi.
1x Aeon Labs USB Z-Stick S2
1x P1 Smart Meter USB
28x Fibaro Modules
SMA Solar System
Daikin Airco / Heating
Denon DHT-S716H & DSW-1H
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: XBMC notify

Post by pvm »

It might be the Windows firewall, check http://xbmc-commander.com/page2/page9/page9.html for some more info
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: XBMC notify

Post by pvm »

pvm wrote:Nice improvement on Domoticz. I did a quick test with the default settings. It did not work. So i changed the ip to one of my 2 Kodi installs and it works fine, nice!
I do not know how to configure it back to multicast... i do not remember the default setting. How should it be configured? My machines are 192.168.1.4 and 192.168.1.5, i would like to reach them both
Did some checking on the internet, should the multicast address be 224.0.0.0 ? (i tried but it did not work) I also tried 192.168.1.0, 192.168.1.255 and 192.168.1.* those did not work
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
User avatar
Brutus
Posts: 249
Joined: Friday 26 September 2014 9:33
Target OS: Windows
Domoticz version:
Location: Netherlands
Contact:

Re: XBMC notify

Post by Brutus »

pvm wrote:
pvm wrote:Nice improvement on Domoticz. I did a quick test with the default settings. It did not work. So i changed the ip to one of my 2 Kodi installs and it works fine, nice!
I do not know how to configure it back to multicast... i do not remember the default setting. How should it be configured? My machines are 192.168.1.4 and 192.168.1.5, i would like to reach them both
Did some checking on the internet, should the multicast address be 224.0.0.0 ? (i tried but it did not work) I also tried 192.168.1.0, 192.168.1.255 and 192.168.1.* those did not work
I had the same problem so I made a clean domoticz installation on another computer and looked for the default settings: IP adres: 224.0.0.1, port: 9777.
1x Intel NUC8i5BEK (Windows 10 x64) Domoticz on Virtualbox with DietPi.
1x Aeon Labs USB Z-Stick S2
1x P1 Smart Meter USB
28x Fibaro Modules
SMA Solar System
Daikin Airco / Heating
Denon DHT-S716H & DSW-1H
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: XBMC notify

Post by pvm »

Thnx, it does work for one system, other TV is in use so cannot check the other install, but expect this works (maybe I initially did not enable the notification before i changed the ip address... :roll: :oops: )
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: XBMC notify

Post by Dnpwwo »

Multicast will work on any address from 224... up to 239... as per the standard, there is no username or password involved.

I have only tested running Raspberry Pi to Raspberry Pis so not sure about the Windows firewall.

Make sure you look at the Domoticz log, that should give details of any errors.

Looks like I need to allow multiple specific IPs :( I'll do that over the next few days
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
User avatar
Brutus
Posts: 249
Joined: Friday 26 September 2014 9:33
Target OS: Windows
Domoticz version:
Location: Netherlands
Contact:

Re: XBMC notify

Post by Brutus »

Logfile gives me the following output. Also with other IP adresses.

2015-05-17 23:12:11.618 Kodi Notification (244.0.0.1:9777, TTL 5): Domoticz test, Domoticz test message!
2015-05-17 23:12:11.618 Kodi Notification Image: C:\Program Files (x86)\Domoticz\www\images\logo.png
2015-05-17 23:12:11.619 Notification sent (kodi) => Success

I have ruled out the Windows Firewall. I have given kodi.exe full access and still nothing.
Ruled out UDP port 9777 to kodi.exe still nothing.
Shutting down Windows Firewall also nothing.

EDIT:
I also installed kodi on another Windows 8.1 Machine on the netwerk. Enabled the remote control option. And opened the UDP port 9777. Still nothing.
1x Intel NUC8i5BEK (Windows 10 x64) Domoticz on Virtualbox with DietPi.
1x Aeon Labs USB Z-Stick S2
1x P1 Smart Meter USB
28x Fibaro Modules
SMA Solar System
Daikin Airco / Heating
Denon DHT-S716H & DSW-1H
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: XBMC notify

Post by Dnpwwo »

I'm interested to know if anyone has it working on Windows (multicast or specific IP)? this may be a broader issue.

I don't have Domoticz or Kodi on Windows but can suggest some areas to investigate:
  • On the Kodi machine perform a 'netstat -a' and confirm that Kodi is listening on port 9777
  • Turn off windows firewall on source and destination machines and retest
  • If possible cable the machines together directly to make sure any switches/firewalls aren't dropping traffic
From the documentation (http://kodi.wiki/view/EventServer) it should work on Windows:
EventServer is the part of Kodi that accepts remote device input on all platforms.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
User avatar
Brutus
Posts: 249
Joined: Friday 26 September 2014 9:33
Target OS: Windows
Domoticz version:
Location: Netherlands
Contact:

Re: XBMC notify

Post by Brutus »

Dnpwwo wrote:I'm interested to know if anyone has it working on Windows (multicast or specific IP)? this may be a broader issue.

I don't have Domoticz or Kodi on Windows but can suggest some areas to investigate:
  • On the Kodi machine perform a 'netstat -a' and confirm that Kodi is listening on port 9777
  • Turn off windows firewall on source and destination machines and retest
  • If possible cable the machines together directly to make sure any switches/firewalls aren't dropping traffic
From the documentation (http://kodi.wiki/view/EventServer) it should work on Windows:
EventServer is the part of Kodi that accepts remote device input on all platforms.
Thanks for your reply. I think your are maybe right. To answer your questions:
  • netstat -a gives me an open UDP port: UDP 0.0.0.0:9777
  • When you disable the windows Firewall nothing works anymore, every connection is refused... (Microsoft Logic)
  • My Kodi / Domoticz is on the same Windows machine ;)
1x Intel NUC8i5BEK (Windows 10 x64) Domoticz on Virtualbox with DietPi.
1x Aeon Labs USB Z-Stick S2
1x P1 Smart Meter USB
28x Fibaro Modules
SMA Solar System
Daikin Airco / Heating
Denon DHT-S716H & DSW-1H
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: XBMC notify

Post by Dnpwwo »

Okay so it looks like Kodi is listening which is a good, even better I think I may have worked this out.

The current code doesn't loop multicast back to the local host, I'll add that to the next version.

In the mean time, try using 127.0.0.1 as the IP Address rather that the machine's external IP. Can't hurt...
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
User avatar
sincze
Posts: 1302
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: XBMC notify

Post by sincze »

Dnpwwo wrote:Native Kodi notifications have been added to the Beta version from build 2448 onwards, tested against Kodi Helix.

By default it will multi-cast to all Kodi's on the local network (or you can target one specifically). Just enable it under Settings\Notifications and hit 'Test'. If you have a complicated network you may need to bump the number of 'Hops' so that the notification will go further.
:D Nice Will try this at home. Keep up the good work.
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
Brutus
Posts: 249
Joined: Friday 26 September 2014 9:33
Target OS: Windows
Domoticz version:
Location: Netherlands
Contact:

Re: XBMC notify

Post by Brutus »

Dnpwwo wrote:Okay so it looks like Kodi is listening which is a good, even better I think I may have worked this out.

The current code doesn't loop multicast back to the local host, I'll add that to the next version.

In the mean time, try using 127.0.0.1 as the IP Address rather that the machine's external IP. Can't hurt...
I also used the localhost IP yesterday. That didn't work also.
I now have the Domoticz and Kodi executables excluded in the Windows Firewall and still nothing even with the localhost IP

I have Domoticz running as a windows service and I saw it uses another executable (nssm.exe) also excluded this in the firewall for in and outgoing connections. Still nothing.

EDIT: Installed Kodi on my own computer. The broadcast didn't work the direct IP adress to my computer worked.
EDIT: Reinstalled kodi on the Domoticz machine. Still no luck.
EDIT: Installed Domoticz on my own computer. No notifications anymore. Even from server to host. This had worked.
After removing Domoticz on my own computer the notification works again frorm server to host...
EDIT: When installing domoticz as program and not as service I can receive notifications on my computer. (Kodi and Domoticz as program on same computer). So whats the differents...
1x Intel NUC8i5BEK (Windows 10 x64) Domoticz on Virtualbox with DietPi.
1x Aeon Labs USB Z-Stick S2
1x P1 Smart Meter USB
28x Fibaro Modules
SMA Solar System
Daikin Airco / Heating
Denon DHT-S716H & DSW-1H
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: XBMC notify

Post by Dnpwwo »

I uploaded a new version that has a change to the multicast to force messages to loopback and be visible to the machine that sends them. That should help people who run Kodi and Domoitcz on the same server.

Also added some logic to push the correct device icon with the message. Custom icons will be in the next version.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
User avatar
Brutus
Posts: 249
Joined: Friday 26 September 2014 9:33
Target OS: Windows
Domoticz version:
Location: Netherlands
Contact:

Re: XBMC notify

Post by Brutus »

Dnpwwo wrote:I uploaded a new version that has a change to the multicast to force messages to loopback and be visible to the machine that sends them. That should help people who run Kodi and Domoitcz on the same server.

Also added some logic to push the correct device icon with the message. Custom icons will be in the next version.
Thank you. When the a new Windows Domoticz Setup file is online I will test this.

Greetings.
1x Intel NUC8i5BEK (Windows 10 x64) Domoticz on Virtualbox with DietPi.
1x Aeon Labs USB Z-Stick S2
1x P1 Smart Meter USB
28x Fibaro Modules
SMA Solar System
Daikin Airco / Heating
Denon DHT-S716H & DSW-1H
User avatar
Brutus
Posts: 249
Joined: Friday 26 September 2014 9:33
Target OS: Windows
Domoticz version:
Location: Netherlands
Contact:

Re: XBMC notify

Post by Brutus »

Dnpwwo wrote:I uploaded a new version that has a change to the multicast to force messages to loopback and be visible to the machine that sends them. That should help people who run Kodi and Domoitcz on the same server.

Also added some logic to push the correct device icon with the message. Custom icons will be in the next version.
It still will not work as I install Domoticz as a service... :roll:
1x Intel NUC8i5BEK (Windows 10 x64) Domoticz on Virtualbox with DietPi.
1x Aeon Labs USB Z-Stick S2
1x P1 Smart Meter USB
28x Fibaro Modules
SMA Solar System
Daikin Airco / Heating
Denon DHT-S716H & DSW-1H
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: XBMC notify

Post by Dnpwwo »

Beta version 2508 has added the ability to specify multiple IP addresses (semicolon delimited) to cover cases where multicast is being dropped on the network. Multicast and specific IPs can be mixed as required.

Icon support has been uplifted as well.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest