klattimer / LGWebOSRemote

Command line webOS remote for LGTVs
MIT License
511 stars 99 forks source link

`lgtv MyTV on ssl` command not working? (wakeonlan works when given an ip) #124

Closed Shasoosh closed 1 year ago

Shasoosh commented 1 year ago

lgtv MyTV off ssl is working fine. I've tracked down this issue which resolves to a problem with getmac but that's not my issue. My mac address is fine and config.json is also configured correctly with the right mac and ip.

On Windows LGTVCompanion works fine.

Calling from the terminal to wakeonlan a2:a1:33:42:h2:4g - doesn't work wakeonlan -i 192.168.1.186 a2:a1:33:42:h2:4g - works!

Any help would be appreciated.

klattimer commented 1 year ago

Do you have multiple network adapters?

Shasoosh commented 1 year ago

Hey, thanks for the reply. No. The TV is connected by wifi btw.

Shasoosh commented 1 year ago

Sorry, reading your comment again, I guess that Access points qualifies as network adapters. If that's the case, is there a way to configure it in LGWebOSRemote?

Luckyman76489 commented 1 year ago

I had a siliar issue, my TV was on a different VLAN. wakeonlan with mac wasn't working but wakeonlan with ip and mac was working as stated above.

I managed to fix the issue by modifying the remote.py script and changed the send_magic_packet function to as follows:

send_magic_packet(self.__macAddress, ip_address=self.__ip)

Hope that helps someone

Shasoosh commented 1 year ago

Thanks @Luckyman76489, That's exactly what I ended up doing a few months back. It would be great if this could be added as a configuration.

klattimer commented 1 year ago

@Luckyman76489 make it a PR and I'll pull it in.

Luckyman76489 commented 1 year ago

@klattimer will do, I've been looking for an excuse to make my first ever PR

klattimer commented 1 year ago

Merged - next time mention the issue number in the PR and it'll link it up. :)