Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin not working #1

Open
wants to merge 38 commits into
base: master
Choose a base branch
from
Open

Plugin not working #1

wants to merge 38 commits into from

Conversation

ojoaosemtil
Copy link

Hello,
I have this same exact model of TV, but I can’t make this plugin work. I have the option WoWLAN activated on the TV, and the commands in the config, but everytime I try to turn on or off nothing happens, it shows some error on ambilight too but I can set the brightness.
Do you have any idea of what can be happening?
Thank u!

@jebabin
Copy link
Owner

jebabin commented May 20, 2019

Have you tried using the wakeonlan command directly in your shell ? like wakeonlan aa:bb:cc:dd:ee:ff ?
Is it working ?

@ojoaosemtil
Copy link
Author

Yes, I’ve used it without success.
Btw, I’m using an iMac with homebridge, don’t know if it can change anything in the config.

@jebabin
Copy link
Owner

jebabin commented May 20, 2019

Should not but you should have wakeonlan command working first. If it did not, it means you either use the wrong mac address of you TV (take care between wire/wireless) or your computer & tv are not on the same subnet and/or you have a network filtering the wol message

@ojoaosemtil
Copy link
Author

And how can I have wakeonlan command working first?
Sorry, I’m a noob ahah

@ojoaosemtil
Copy link
Author

I've confirmed everything, wakeonlan is working, when I type in terminal "wakeonlan (tv macadress)it says "Sending magic packet to 255.255.255.255:9 with c4:98:5c:fe:93:4c"

But in HomeKit, when I try to turn off the tv it doesn't work, neither turning on. But it knows the state of the TV because when I turn it off in HomeKit, after a few seconds it turns on again - but only the icon/animation of the TV, not the TV itself.

When using "has_ambilight: true" this is what happens:

[2019-5-21 02:26:39] [TV] data recvd: {
"values": [
{
"value": {

		}
	}
]

}

[2019-5-21 02:26:39] TypeError: Cannot read property 'value' of undefined
at /usr/local/lib/node_modules/homebridge-philipstv-enhanced-x/menuitem.js:26:31
at Request._callback (/usr/local/lib/node_modules/homebridge-philipstv-enhanced-x/index.js:251:17)
at Request.self.callback (/usr/local/lib/node_modules/homebridge-philipstv-enhanced-x/node_modules/request/request.js:185:22)
at Request.emit (events.js:188:13)
at Request. (/usr/local/lib/node_modules/homebridge-philipstv-enhanced-x/node_modules/request/request.js:1161:10)
at Request.emit (events.js:188:13)
at IncomingMessage. (/usr/local/lib/node_modules/homebridge-philipstv-enhanced-x/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:276:13)
at IncomingMessage.emit (events.js:193:15)
at endReadableNT (_stream_readable.js:1129:12)
[2019-5-21 02:26:39] Got SIGTERM, shutting down Homebridge...
[2019-5-21 02:26:41] [TV] Getting brightness: { accessory:
{ log:
{ [Function: bound ]
debug: [Function],
info: [Function],
warn: [Function],
error: [Function],
log: [Function],
prefix: 'TV' },
ip_address: '192.168.1.79',
name: 'TV',
poll_status_interval: '60',
model_year: '2018',
wol_url: 'wol://c4:98:5c:fe:93:4c',
model_year_nr: 2018,
set_attempt: 0,
has_ambilight: true,
has_ssl: false,
username: '',
password: '',
api_version: 6,
protocol: 'http',
portno: '1925',
need_authentication: 0,
state_power: true,
state_ambilight: false,
state_ambilightLevel: 0,
state_volume: 1,
state_volumeLevel: 36,
base_url: 'http://192.168.1.79:1925/6',
power_url: 'http://192.168.1.79:1925/6/powerstate',
power_on_body: '{"powerstate":"On"}',
power_off_body: '{"powerstate":"Standby"}',
audio_url: 'http://192.168.1.79:1925/6/audio/volume',
audio_unmute_body: '{"muted":false}',
audio_mute_body: '{"muted":true}',
input_url: 'http://192.168.1.79:1925/6/input/key',
ambilight_brightness: [Circular],
ambilight_status_url: 'http://192.168.1.79:1925/6/menuitems/settings/current',
ambilight_brightness_body: '{"nodes":[{"nodeid":2131230769}]}',
ambilight_mode_body: '{"nodes":[{"nodeid":100}]}',
ambilight_config_url: 'http://192.168.1.79:1925/6/menuitems/settings/update',
ambilight_power_on_body:
'{"value":{"Nodeid":100,"Controllable":true,"Available":true,"data":{"activenode_id":120}}}',
ambilight_power_off_body:
'{"value":{"Nodeid":100,"Controllable":true,"Available":true,"data":{"activenode_id":110}}}',
interval: 60,
switchHandling: 'poll',
services: [ [Service], [Service] ],
tvService:
Service {
displayName: 'TV',
UUID: '000000D8-0000-1000-8000-0026BB765291',
subtype: undefined,
iid: 8,
characteristics: [Array],
optionalCharacteristics: [Array],
isHiddenService: false,
isPrimaryService: false,
linkedServices: [],
_events: [Object],
_eventsCount: 2 },
ambilightService:
Service {
displayName: 'TV Brightness',
UUID: '00000043-0000-1000-8000-0026BB765291',
subtype: '0e',
iid: 23,
characteristics: [Array],
optionalCharacteristics: [Array],
isHiddenService: false,
isPrimaryService: false,
linkedServices: [],
_events: [Object],
_eventsCount: 2 },
state_ambilight_brightness: 0 },
log:
{ [Function: bound ]
debug: [Function],
info: [Function],
warn: [Function],
error: [Function],
log: [Function],
prefix: 'TV' },
nodeid: 2131230842,
is_polling: false,
state: 0 }
[2019-5-21 02:26:41] [TV] data recvd: {
"values": [
{
"value": {

		}
	}
]

}

[2019-5-21 02:26:41] TypeError: Cannot read property 'value' of undefined
at /usr/local/lib/node_modules/homebridge-philipstv-enhanced-x/menuitem.js:26:31
at Request._callback (/usr/local/lib/node_modules/homebridge-philipstv-enhanced-x/index.js:251:17)
at Request.self.callback (/usr/local/lib/node_modules/homebridge-philipstv-enhanced-x/node_modules/request/request.js:185:22)
at Request.emit (events.js:188:13)
at Request. (/usr/local/lib/node_modules/homebridge-philipstv-enhanced-x/node_modules/request/request.js:1161:10)
at Request.emit (events.js:188:13)
at IncomingMessage. (/usr/local/lib/node_modules/homebridge-philipstv-enhanced-x/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:276:13)
at IncomingMessage.emit (events.js:193:15)
at endReadableNT (_stream_readable.js:1129:12)

@ojoaosemtil
Copy link
Author

Do you know any solution for what is happening with my TV and this plugin?
I can't make it work..

@ojoaosemtil
Copy link
Author

Any help please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants