Git Product home page Git Product logo

Comments (38)

ollo69 avatar ollo69 commented on July 22, 2024 2

I will work on 0.2.x, but need time. I fully rewrite library, so it is normal that there are issue. Look for new version and be patient with issue, I appreciate your effort in debug.

Thx

from ha-samsungtv-smart.

spider7611 avatar spider7611 commented on July 22, 2024 1

Version v0.1.18 seems work fine too for me. ;)

from ha-samsungtv-smart.

spider7611 avatar spider7611 commented on July 22, 2024

Have a same problem from today. :(
Tryed go back last working version, but the problem is remaining.

After HA restart want to switch off on media player card (which is on after restart???) and show this error:

`Logger: homeassistant.components.websocket_api.http.connection.139623124608592
Source: custom_components/samsungtv_smart/api/samsungws.py:204
Integration: websocket_api (documentation, issues)
First occurred: 12:13:11 (1 occurrences)
Last logged: 12:13:11

socket is already closed.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 134, in handle_call_service
connection.context(msg),
File "/usr/src/homeassistant/homeassistant/core.py", line 1232, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File "/usr/src/homeassistant/homeassistant/core.py", line 1255, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
self._platforms.values(), func, call, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 412, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 600, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 443, in _handle_entity_call
await result
File "/config/custom_components/samsungtv_smart/media_player.py", line 782, in async_turn_off
await self.async_send_command("KEY_POWER")
File "/config/custom_components/samsungtv_smart/media_player.py", line 621, in async_send_command
self.send_command, payload, command_type, retry_count, key_press_delay
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/samsungtv_smart/media_player.py", line 592, in send_command
self._ws.send_key(payload, key_press_delay)
File "/config/custom_components/samsungtv_smart/api/samsungws.py", line 484, in send_key
key_press_delay,
File "/config/custom_components/samsungtv_smart/api/samsungws.py", line 204, in _ws_send
connection.send(payload)
File "/usr/local/lib/python3.7/site-packages/websocket/_app.py", line 153, in send
if not self.sock or self.sock.send(data, opcode) == 0:
File "/usr/local/lib/python3.7/site-packages/websocket/_core.py", line 253, in send
return self.send_frame(frame)
File "/usr/local/lib/python3.7/site-packages/websocket/_core.py", line 278, in send_frame
l = self._send(data)
File "/usr/local/lib/python3.7/site-packages/websocket/_core.py", line 448, in _send
return send(self.sock, data)
File "/usr/local/lib/python3.7/site-packages/websocket/_socket.py", line 135, in send
raise WebSocketConnectionClosedException("socket is already closed.")
websocket._exceptions.WebSocketConnectionClosedException: socket is already closed.`

from ha-samsungtv-smart.

spider7611 avatar spider7611 commented on July 22, 2024

Now it is workong again for me. Don't know what was the problem...

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

Can you clarify which version is working for you and which not?

from ha-samsungtv-smart.

spider7611 avatar spider7611 commented on July 22, 2024

Now on the newest 0.2.1

from ha-samsungtv-smart.

rcxrbt avatar rcxrbt commented on July 22, 2024

If i try to turno OFF... "socket is already closed."

Log Details (ERROR)
Logger: homeassistant.components.websocket_api.http.connection.1779210736
Source: custom_components/samsungtv_smart/api/samsungws.py:204
Integration: websocket_api (documentation, issues)
First occurred: 1:46:52 PM (1 occurrences)
Last logged: 1:46:52 PM

socket is already closed.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 134, in handle_call_service
connection.context(msg),
File "/usr/src/homeassistant/homeassistant/core.py", line 1232, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File "/usr/src/homeassistant/homeassistant/core.py", line 1255, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
self._platforms.values(), func, call, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 412, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 600, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 443, in _handle_entity_call
await result
File "/config/custom_components/samsungtv_smart/media_player.py", line 782, in async_turn_off
await self.async_send_command("KEY_POWER")
File "/config/custom_components/samsungtv_smart/media_player.py", line 621, in async_send_command
self.send_command, payload, command_type, retry_count, key_press_delay
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/samsungtv_smart/media_player.py", line 592, in send_command
self._ws.send_key(payload, key_press_delay)
File "/config/custom_components/samsungtv_smart/api/samsungws.py", line 484, in send_key
key_press_delay,
File "/config/custom_components/samsungtv_smart/api/samsungws.py", line 204, in _ws_send
connection.send(payload)
File "/usr/local/lib/python3.7/site-packages/websocket/_app.py", line 153, in send
if not self.sock or self.sock.send(data, opcode) == 0:
File "/usr/local/lib/python3.7/site-packages/websocket/_core.py", line 253, in send
return self.send_frame(frame)
File "/usr/local/lib/python3.7/site-packages/websocket/_core.py", line 278, in send_frame
l = self._send(data)
File "/usr/local/lib/python3.7/site-packages/websocket/_core.py", line 448, in _send
return send(self.sock, data)
File "/usr/local/lib/python3.7/site-packages/websocket/_socket.py", line 135, in send
raise WebSocketConnectionClosedException("socket is already closed.")
websocket._exceptions.WebSocketConnectionClosedException: socket is already closed.

from ha-samsungtv-smart.

spider7611 avatar spider7611 commented on July 22, 2024

Sorry not working again. Want to try it again and switch it on and off some time across HA media player, then the problem is come back. Now it it's always switch back on in HA.

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

If I well understand the TV is off and in HA is displayed as on, then when you try to send a command from HA you receive an error? Correct?

from ha-samsungtv-smart.

spider7611 avatar spider7611 commented on July 22, 2024

Yes. But the error message only once received after the HA reboot and try to switch on the TV.

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

Can you please make a test for me: just turn off the TV, wait 1 minute and from a PC command promt ping the TV ip:

ping <your_ip_tv>

and let me know what you receive back.

from ha-samsungtv-smart.

rcxrbt avatar rcxrbt commented on July 22, 2024

Can you please make a test for me: just turn off the TV, wait 1 minute and from a PC command promt ping the TV ip:

ping <your_ip_tv>

and let me know what you receive back.

After 1 minute tuned OFF, the TV not replay to ping.

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

And in HA the TV appear to be ON?

from ha-samsungtv-smart.

rcxrbt avatar rcxrbt commented on July 22, 2024

And in HA the TV appear to be ON?

Tuned OFF TV by IR Remote, in HA stay ON.

image

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

Do you have SmartThings configured?

from ha-samsungtv-smart.

spider7611 avatar spider7611 commented on July 22, 2024

C:\Users\Spider2>ping 192.168.1.183

Pinging 192.168.1.183 with 32 bytes of data:
Reply from 192.168.1.114: Destination host unreachable.
Reply from 192.168.1.114: Destination host unreachable.
Reply from 192.168.1.114: Destination host unreachable.
Reply from 192.168.1.114: Destination host unreachable.

Ping statistics for 192.168.1.183:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

from ha-samsungtv-smart.

spider7611 avatar spider7611 commented on July 22, 2024

If I turn it on then off after working good again a while. Then stopped working and stay "on" on HA and not working.

from ha-samsungtv-smart.

rcxrbt avatar rcxrbt commented on July 22, 2024

[cut]

  • TV model: RU7170 (UE50RU7170UXZT)
  • SmartThings integration NOT configured

SmartThings integration NOT configured for me @rcxrbt

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

OK, just one more questions: is it working with old version (0.1.x)?

from ha-samsungtv-smart.

spider7611 avatar spider7611 commented on July 22, 2024

Yesterday and before worked perfectly, only send error message the HA about translations file. Today updated the latest version and after do this problem. But If I want to go back the problem is remained.

SmartThings integration is configured for me @spider7611

Maybe try reconfigure again.

from ha-samsungtv-smart.

spider7611 avatar spider7611 commented on July 22, 2024

Try reconfigure it and cant connect to my tv. Show this:

Enter your Samsung TV information. SmartThings token is optional but really suggested. If you never connected Home Assistant before you should see a popup on your TV asking for authorization.

Unable to connect to this Samsung TV device.

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

Try reconfigure it and cant connect to my tv. Show this:

Enter your Samsung TV information. SmartThings token is optional but really suggested. If you never connected Home Assistant before you should see a popup on your TV asking for authorization.

Unable to connect to this Samsung TV device.

Do you enter the SmartThings token during configuration? Is your TV turned on?
Nothing change in config procedure from previous version!

from ha-samsungtv-smart.

spider7611 avatar spider7611 commented on July 22, 2024

Yes enter it during configuration. Tv is turned on.
After tryed without token and it is worked, but the problem is the same... :(

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

If you install v0.1.18, everythink is ok? This is important for me to know.

from ha-samsungtv-smart.

spider7611 avatar spider7611 commented on July 22, 2024

Tryed just now. First time it is worked reverse. When the TV on in HA the card show off and If the TV off the card show on. :) After set the state on the HA service page and now it is working ok.
Don't know for how long... will test it and not update it.

from ha-samsungtv-smart.

rcxrbt avatar rcxrbt commented on July 22, 2024

This morning, I tryied to install SmartThings Intagration (never installed), but not worked.
So SmartThings integration NOT configured for me.

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

And in HA the TV appear to be ON?

Tuned OFF TV by IR Remote, in HA stay ON.

image

I do not understand how you can have channel name without smartthings...

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

Tryed just now. First time it is worked reverse. When the TV on in HA the card show off and If the TV off the card show on. :) After set the state on the HA service page and now it is working ok.
Don't know for how long... will test it and not update it.

Please stay with previous version and report here if it work or not. Meantime I will check possible issue with new version....

from ha-samsungtv-smart.

rcxrbt avatar rcxrbt commented on July 22, 2024

And in HA the TV appear to be ON?

Tuned OFF TV by IR Remote, in HA stay ON.
image

I do not understand how you can have channel name without smartthings...

Sorry for misunderstood.
My TV is registered on SmartThings and i use Token, but never Installed SmartThings integration.

image

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

Ok, now is more clear.
HA SmartThings integration have nothing to do with this component and is not used by it.
Can also you try if previous version (v0.1.18) works fine for you?

from ha-samsungtv-smart.

rcxrbt avatar rcxrbt commented on July 22, 2024

Ok, now is more clear.
HA SmartThings integration have nothing to do with this component and is not used by it.
Can also you try if previous version (v0.1.18) works fine for you?

Best steps to try previous version (v0.1.18) ?

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

just install from hacs and reboot ha. There are no changes in config

from ha-samsungtv-smart.

rcxrbt avatar rcxrbt commented on July 22, 2024

just install from hacs and reboot ha. There are no changes in config

Version v0.1.18 seems work fine.
Turning OFF the TV by toggle, IR Remote or sending KEY_POWER, HA show the TV is OFF.
I preferred version 2.0.1 for the improvements that I have now lost :(

from ha-samsungtv-smart.

marcin77 avatar marcin77 commented on July 22, 2024

I also have this problem, I had back to v0.1.18, and apparently now is ok, but in history it displays that tv is turned on every 25-35 minutes.
screenshot-192 168 0 125-8123-2020-05-02-11-33-15-848

from ha-samsungtv-smart.

spider7611 avatar spider7611 commented on July 22, 2024

Now I see have update, but can't update v0.1.18 to the latest V0.2.5 on hacs.. What is the problem? After update and HA restart stay on v0.1.18.

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

I don't thing this is a problem related to the component.
Maybe you are not really selecting last version in HACS because HACS stay on the last version selected when you roll-back

from ha-samsungtv-smart.

spider7611 avatar spider7611 commented on July 22, 2024

Ok, sorry that was the problem.

from ha-samsungtv-smart.

ollo69 avatar ollo69 commented on July 22, 2024

This issue should be fixed. I close it for now

from ha-samsungtv-smart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.