Comments (38)
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.
Version v0.1.18 seems work fine too for me. ;)
from ha-samsungtv-smart.
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.
Now it is workong again for me. Don't know what was the problem...
from ha-samsungtv-smart.
Can you clarify which version is working for you and which not?
from ha-samsungtv-smart.
Now on the newest 0.2.1
from ha-samsungtv-smart.
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.
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.
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.
Yes. But the error message only once received after the HA reboot and try to switch on the TV.
from ha-samsungtv-smart.
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.
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.
And in HA the TV appear to be ON?
from ha-samsungtv-smart.
And in HA the TV appear to be ON?
Tuned OFF TV by IR Remote, in HA stay ON.
from ha-samsungtv-smart.
Do you have SmartThings configured?
from ha-samsungtv-smart.
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.
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.
[cut]
- TV model: RU7170 (UE50RU7170UXZT)
- SmartThings integration NOT configured
SmartThings integration NOT configured for me @rcxrbt
from ha-samsungtv-smart.
OK, just one more questions: is it working with old version (0.1.x)?
from ha-samsungtv-smart.
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.
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.
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.
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.
If you install v0.1.18, everythink is ok? This is important for me to know.
from ha-samsungtv-smart.
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.
This morning, I tryied to install SmartThings Intagration (never installed), but not worked.
So SmartThings integration NOT configured for me.
from ha-samsungtv-smart.
And in HA the TV appear to be ON?
Tuned OFF TV by IR Remote, in HA stay ON.
I do not understand how you can have channel name without smartthings...
from ha-samsungtv-smart.
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.
And in HA the TV appear to be ON?
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.
from ha-samsungtv-smart.
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.
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.
just install from hacs and reboot ha. There are no changes in config
from ha-samsungtv-smart.
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.
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.
from ha-samsungtv-smart.
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.
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.
Ok, sorry that was the problem.
from ha-samsungtv-smart.
This issue should be fixed. I close it for now
from ha-samsungtv-smart.
Related Issues (20)
- Error retrieving proxied image HOT 2
- Can´t find SamsungTV Smart Addon HOT 2
- SmartThingsTV pypi module HOT 3
- Source State - media_input_source
- Update to the Application ID list links
- When app is running, title shows HDMI1 name HOT 2
- OSErrors when using send media key HOT 7
- State does not update properly? HOT 41
- Unsupported media type: key_ambient HOT 2
- Problems with audio mode HOT 1
- Cannot send notifications/text to TV HOT 3
- AU8072 not able to connect HOT 1
- URL will not play on Samsung frame tv HOT 3
- TV turning on by itself HOT 3
- Open youtube on a specific video HOT 4
- Request help HOT 2
- Unable to complete configuration with an API key HOT 3
- Next/Previous channel buttons HOT 2
- hass.http.register_static_path is deprecated HOT 1
- Frame TV 2021 application list - netflix and prime video not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha-samsungtv-smart.