roberodin / ha-samsungtv-custom

📺 HomeAssistant - SamsungTV Custom Component
Apache License 2.0
124 stars 178 forks source link

TV status allways OFF #1

Open dolenec opened 5 years ago

dolenec commented 5 years ago

Same problem as before with other components.

TV status allways show that TV is OFF.

My code:

  - platform: samsungtv_custom
    host: 192.168.3.61
    name: HDTV KSLB

  - platform: samsungtv_custom
    host: 192.168.3.62
    name: HDTV Spodaj

Also, I tried with adding MAC, but still the same..

phairplay commented 5 years ago

Hi, I'm having the same issue with my ue55mu6500 Samsung TV

dolenec commented 5 years ago

My 2 TVs: UE43MU6172U UE40H6200AK

Maybe is there some websocket problem but I do not know how to fix it.. Using RP4 and lastest HA version..

arsaboo commented 5 years ago

Same issue with my NU8000.

pitoganzado commented 5 years ago

Same problem with js8500.

piitaya commented 5 years ago

Same issue with QE49Q6F2018

mleiber commented 5 years ago

same for GQ55Q7FN.

ObiKaiKenobi commented 5 years ago

Same here with an UM43MU6179.

- platform: samsungtv_custom
  host: 192.168.178.XX
  port: 8001 (optional)
  mac: 28:39:5E:XX:XX:XX (optional)

The only thing working is "power on" via WOL when the MAC-Address is configured. Same behaviour as the original component.

Home Assistant 0.100.2 on Docker.

rome1983 commented 5 years ago

@ pitoganzado Which port are you using?

pitoganzado commented 5 years ago

@ pitoganzado Which port are you using?

rome1983 commented 5 years ago

Port 8000 gives me proper on/off states using the official integration with that model. I use a rmmini WiFi/IR. I haven’t had a chance to test this custom integration. Does it work well outside of the always off state issue?

roberodin commented 5 years ago

Hi, I have uploaded the latest version 2.0. Try changing the protocol to "ws" for 2016+ TVs model! (maybe all tizen family)...

arsaboo commented 5 years ago

@roberodin Does not work even with protocol: ws. I tried with both ports on my NU8000.

djungelola commented 5 years ago

Same for me, using UE55NU7096. Never get any notice on tv to allow connection on tv, but when running"http://192.168.1.218:8001/api/v2/" it pops up.

roberodin commented 5 years ago

Update to version 3.0.0 and try the new protocols: -ws (fixed from @xchwarze) -ctl_beta -ctl_qled

djungelola commented 5 years ago

Worked fine for me after some quick tests (ws, port 8002). Will test more later today. Thanks!

arsaboo commented 5 years ago

The following config mostly worked for me:

  - platform: samsungtv_custom
    host: 192.168.2.252
    protocol: ws
    port: 8002
    mac: !secret samsung_tv_mac

I was able to add the TV (UN75NU8000) to HA. I am able to turn the TV on/off. However, there is one bug. After I turn off the TV, the status turns back to on in HA after about a minute or so.

This is all I have in the logs

2019-10-18 08:50:55 INFO (SyncWorker_23) [custom_components.samsungtv_custom.media_player] Samsung TV 192.168.2.252:8002 added as 'Samsung TV Remote'
2019-10-18 08:52:06 INFO (SyncWorker_9) [custom_components.samsungtv_custom.media_player] TV is powering off, not sending command: KEY
2019-10-18 08:52:20 INFO (SyncWorker_10) [custom_components.samsungtv_custom.media_player] TV is powering off, not sending command: KEY
2019-10-18 08:57:05 INFO (SyncWorker_16) [custom_components.samsungtv_custom.media_player] TV is powering off, not sending command: KEY
2019-10-18 08:57:16 INFO (SyncWorker_36) [custom_components.samsungtv_custom.media_player] TV is powering off, not sending command: KEY
2019-10-18 08:58:00 INFO (SyncWorker_22) [custom_components.samsungtv_custom.media_player] TV is powering off, not sending command: KEY
2019-10-18 08:58:11 INFO (SyncWorker_25) [custom_components.samsungtv_custom.media_player] TV is powering off, not sending command: KEY

When I turn the TV off from HA the second time, it stays `off.

Also, the TV keeps randomly turning on even after I turn it off from the remote.

rome1983 commented 5 years ago

Anybody got this working on 2015 series?

sbienia commented 5 years ago

Doesn't work on ue40h6200. How can I help you with debug it?