This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Official SDK2
Comments
So, assuming you have already added Kodi as a device:
- Booting Kodi AFTER booting Homey (i.e. Kodi is off after Homey boot) > no auto reconnect on connection loss
- Booting Homey when Kodi is up and running > auto reconnect on connection loss
You can either:
- Delete and re-add your device
- Reboot Homey and make sure Kodi is up when Homey boots.
Works great, as it used to before .38.
I totally forgot I had to delete my device so I didn't do that and it still worked. Should I still delete it then?
I also have a request, would it be possible to have trigger cards "a episode has ended" and "a movie has ended" as the counterparts for their "a ... has started"?
@Phuturist: Might be possible. I checked the Kodi API documentation and found the following property of the 'stop' event:
I will have a look at it this weekend to see if I can link it to an episode / movie as well.
Just out of curiousity, what are you gonna use it for?
Edit: There is currently no documentation available on how to create custom mobile cards
WHEN: An episode of [tvshow] has stopped
CONFIRM: 'Do you wanna play the next episode?'
ACTION: 'Play the latest episode of [tvshow]'
- Added OnMovieStop flow
- Added OnEpisodeStop flow
- Added auto reconnect on init (after homey boots)
Is there any way (other then restarting the app) to reconnect Homey to Kodi when my Kodi system comes online some time after the Homey reboot. For instance, a configured trigger from Kodi to Homey that it is now possible to reconnect?
- Trying to reconnect
- Still cannot reconnect..
The new reconnect functionality makes sure that if you've made a succesful connection during pairing, it will always reconnect when Kodi comes online no matter how many Homey / Kodi reboots.
About the reconnect trigger. I reckon this will be really hard (if not impossible) to do without writing a script/addon that needs to be installed on Kodi. Because this is a Homey-app, Homey is the initiator of connections to Kodi (not the other way around). And then you'd still have the same problem, only from a Kodi perspective. What happens when Homey is offline when Kodi boots? ;-).
There might be an option where Homey can register itself as a subscriber to Kodi during pairing. This would allow Kodi to send 'heartbeat / alive' signals to Homey upon boot. I am not sure whether this exists, I'll have a look into it.
So that's no solution either, in my opinion.
According to Emile a timer with the minimal of 5 seconds would be ok. And it is better to use setInterval then the homey build-in cron. (don't ask me why, just what emile said )
Still in pursuit of trying to connect Homey to my Kodi install.
I'm running the 1.4.0 from the zip, but i'm wondering where I can find the logging you mentioned earlier, that you build in. On screen there's not that much, and can't find it in the app directoy on my computer?
C:\Data\HomeyKodi-master>athom project --run
? Select active Homey: Homey @ 192.168.0.135:80
1/4 - Archiving...
2/4 - Uploading to Homey @ 192.168.0.135:80...
3/4 - Running `nl.marvinschenkel.kodi`, press CTRL+C to abort...
4/4 - Debugging...
-------------------------------------------------
init()
The problem is that I can't get to connect to my Kodi install. and that is the continuing story with all the versions sofar!
Even after a clean install of my system with a defaultKodi
- Change the http port back to the default for http: 8080
- reboot kodi
- try adding your kodi device to homey
Let me know if it works. I'll start a FAQ section in the OP to put solutions to issues like this.
0.8.38
Kodi app version 1.3.1
That's it, I was assuming when you said that port 9090 was needed you had to change http on Kodi to 9090.
Now I have a connection!
this evening I will play with it
Allso works with MrMc for Apple tv 4, only problem is that you can set it to port 9090, but got it to work by on the apple tv. Set MrMC to 9090, error pop up, let it be, then make new device in Homey, and bingo, its works...
Changelog:
So if a movie/episode is playing and you stop it yourself before the end, that's a different event?