marvinschenkel / homeykodi Goto Github PK
View Code? Open in Web Editor NEWDriver and app for Homey to support Kodi
Driver and app for Homey to support Kodi
After the upgrade from 2.2.0 to 2.3.0 the app kept on crashing even after a Homey rebooted. Deleted the app and installed the app again, now Homey is not able to add the Kodi devices with error "invalid_capability"
The connection to my Kodi (on smart TV) gets lost every few days. It doesn't pickup any events from Kodi. The logs dont show the reconnect loop (still listeningForEvents), so i guess something weird is going on.
Maybe you can add a reconnect action to the app? (restarting the app always fixes my issue)
Because my Kodi-machine uses DHCP and therefore might have it's IP-address changed, I setup the Kodi-app to use the hostname. This works fine when I just set it up.
But after a while, where Kodi has been switched off, it is unable to connect. When I checked the settings I noticed it was trying to connect to the external IP-address instead of the internal. I am able to fix this by saving the hostname again, but the issue appears again after some time.
I have updated to version 1.1 (manually) and I've tested several events for triggering a flow in Homey.
It seems to work, however I see some unexpected behaviour.
In Homey, I've created a new Flow that triggers a Push notification. The "Als" is set to "Een aflevering begint". I receive a notification when I start a random episode. So that's good. However, my setup in Kodi pauses the episode if it doesn't find a Dutch subtitle and suggests available online subs. When I close this and continue to watch the episode. I receive a 2nd notification, which means the flow is triggered again. However I would expect that "Een aflevering begint" is an initial event and is only triggered when I select an episode in Kodi to play.
It's only when this subtitle stuff is shown. Maybe it's something you cannot catch when receiving the event from Kodi. In that case I need to think about a different approach.
I have installed the plugin and configured it with my Kodi instance. In Kodi it mentions that a listener is detected. So it seems to be correct.
After configuring a simple flow in Homey based on pausing a video in Kodi, nothing happens. I also created a flow that's triggered when I resume watching in Kodi. This also doesn't work. Because there is no other way to check what's going wrong I assume it has something to do with the app itself, but I might (hopefully) be wrong!
I'm on Homey Firmware Version: 0.8.29.
If you need any info, please let me know. I'm really looking forward to use this app.
Homey firmware 1.0.1
Kodi app version: 1.6.0
A voice command to start music by Artist works with one word, by example:
Play music by artist Armin --> works
Play music by artist Armin van Buuren --> didn't work
Tested by voice and by the http://[ip-homey]/manager/speech-input/
Posted on Slack
Issue occurs here, it looks like it can happen that this._player
isn't defined yet when it gets called.
I have a Homey on 0.8.20 and I can use an action card. When I use homey on 0.8.22 There is no action card available.
EDIT: After fiddling around, it stopped working on 0.8.20 too. Reboots do not fix it.
Homey v1.1.2 & Kodi app 1.6.0
Kodi system installed on Win7 media center, used in combination with PlexKodiConnect (Plex client).
I'm having issues where the Kodi app does not start to re-poll after my Kodi system has been shutdown...So my flows are not receiving the right triggers.
Last updates of my logging:
2017-01-19T21:28:48.977Z "Stil cannot reconnect: " {"code":"EHOSTUNREACH","errno":"EHOSTUNREACH","syscall":"connect","address":"10.0.2.90","port":9090}
2017-01-19T21:28:59.025Z "Trying to reconnect"
2017-01-19T21:29:02.027Z "Stil cannot reconnect: " {"code":"EHOSTUNREACH","errno":"EHOSTUNREACH","syscall":"connect","address":"10.0.2.90","port":9090}
2017-01-19T21:29:12.040Z "Trying to reconnect"
2017-01-19T21:29:15.047Z "Stil cannot reconnect: " {"code":"EHOSTUNREACH","errno":"EHOSTUNREACH","syscall":"connect","address":"10.0.2.90","port":9090}
2017-01-19T21:29:25.056Z "Trying to reconnect"
2017-01-19T21:29:28.057Z "Stil cannot reconnect: " {"code":"EHOSTUNREACH","errno":"EHOSTUNREACH","syscall":"connect","address":"10.0.2.90","port":9090}
2017-01-19T21:29:38.064Z "Trying to reconnect"
2017-01-19T21:29:39.419Z "startListeningForEvents()"
2017-01-19T21:31:10.609Z "onKodiPlay()"
2017-01-19T21:31:10.610Z "Triggering flow kodi_playing_something"
2017-01-19T21:31:10.686Z "Triggering flow kodi_movie_start for device" "10.0.2.90"
2017-01-19T21:55:21.245Z "onKodiStop"
2017-01-19T21:55:21.246Z "Triggering flow " "kodi_stop"
2017-01-19T21:55:58.414Z "onKodiPlay()"
2017-01-19T21:55:58.415Z "Triggering flow kodi_playing_something"
2017-01-19T22:38:02.770Z "onKodiStop"
2017-01-19T22:38:02.771Z "Triggering flow " "kodi_stop"
2017-01-19T22:39:05.022Z "onKodiPlay()"
2017-01-19T22:39:05.023Z "Triggering flow kodi_playing_something"
2017-01-19T23:21:16.543Z "onKodiStop"
2017-01-19T23:21:16.545Z "Triggering flow " "kodi_stop"
2017-01-19T23:39:35.551Z "onKodiGenericEvent() " "kodi_shutdown"
2017-01-19T23:39:35.582Z {"data":{"exitcode":64},"sender":"xbmc"}
2017-01-19T23:39:35.583Z "Triggering flow " "kodi_shutdown"
Restarted Kodi app (did not restart Kodi on windows 7 system
2017-01-22T20:41:49.460Z "Trying to reconnect"
2017-01-22T20:41:50.382Z "startListeningForEvents()"
2017-01-22T20:42:23.610Z "onKodiStop"
2017-01-22T20:42:23.612Z "Triggering flow " "kodi_stop"
2017-01-22T20:42:36.100Z "onKodiPlay()"
2017-01-22T20:42:36.101Z "Triggering flow kodi_playing_something"
Playing something can be explained by the PKC client.
Any ideas on the issue? Would it be possible to trigger a re-start of the app?
If you need further detailed logging, please let me know.
I haven't yet tried myself, but according to this forum post, the app doesn't work properly with the Kodi 18 beta's.
Hi! I am wondering if you will update your app to SDK3 because the new Homey Pro will only work with SDK3 apps.. I'm using your app a lot, so I hope you will!
Best regards, and thanks for the development.
Cheers, Marcel
Kodi app crashed, when homey send a command and kodi is offline.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.