Closed JeroenVdb closed 2 years ago
Interesting. What eosstb plugin version are you using?
I installed it yesterday, so the latest: homebridge-eosstb v1.2.1
When I console.log this.config.devices
I see on line 3669 I get this:
[
{
syncName: true,
accessoryCategory: 'settopbox',
showChannelNumbers: false,
maxChannels: 95,
arrowUpButton: 'ArrowUp',
arrowUpButtonDoubleTap: 'ChannelUp',
arrowDownButton: 'ArrowDown',
arrowDownButtonDoubleTap: 'ChannelDown',
arrowLeftButton: 'ArrowLeft',
arrowLeftButtonDoubleTap: 'MediaRewind',
arrowRightButton: 'ArrowRight',
arrowRightButtonDoubleTap: 'MediaFastForward',
selectButton: 'Enter',
selectButtonDoubleTap: 'Enter',
playPauseButton: 'MediaPlayPause',
playPauseButtonDoubleTap: 'MediaPlayPause',
backButton: 'Escape',
backButtonDoubleTap: 'Escape',
infoButton: 'MediaTopMenu',
infoButtonDoubleTap: 'Guide',
viewTvSettingsCommand: 'Help'
}
]
I guess the problem is that my device has no deviceId
. I'll have not set it via config, I'll try to set it via config and see if it then is selected correctly.
@jsiegenthaler adding deviceId
resolved the problem 🎉. I might have missed it in the config but I thought this was not mandatory.
The device can not be selected when it has no deviceId
here: https://github.com/jsiegenthaler/homebridge-eosstb/blob/master/index.js#L3670
Should the deviceId
not be set in the script when not provided in the config?
Thanks for that info, I'll review my code and try and reproduce the error you saw. I'll also review what my code is doing regarding the deviceId...
In the meantime enjoy the plugin :)
Root cause found and all fixed in v1.2.2
Describe The Bug: I can't use the Apple TV Remote to control the set-top-box. Whenever I try to use it the plugin crashes and homebridge is restarted. Other features of this plugin work: box on/off, list of channels, select another channel, etc...
To Reproduce:
Expected behavior: The buttons from the remote should be emulated.
Logs:
Plugin Config:
Screenshots:
Environment: