sermayoral / ha-samsungtv-encrypted

Samsung TV Encrypted Models (H & J Series) custom component for Home Assistant
Apache License 2.0
39 stars 24 forks source link

Move POST calls to debug #1

Closed GuyKh closed 4 years ago

GuyKh commented 4 years ago

I'm seeing in the log ALOT of lines such as:

2020-03-18 14:02:25 INFO (SyncWorker_3) [custom_components.samsungtv_encrypted.media_player] Samsung TV sending: POST /smp_17_ HTTP/1.0
HOST: 1.1.1.1:7676
CONTENT-TYPE: text/xml;charset="utf-8"
SOAPACTION: "urn:schemas-upnp-org:service:RenderingControl:1#GetVolume"

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:GetVolume xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"><InstanceID>0</InstanceID><Channel>Master</Channel></u:GetVolume></s:Body></s:Envelope>

2020-03-18 14:02:26 INFO (SyncWorker_3) [custom_components.samsungtv_encrypted.media_player] Samsung TV received: b'HTTP/1.1 200 OK\r\nContent-Length: 334\r\nContent-Type: text/xml; charset="utf-8"\r\nDATE: Thu, 01 Jan 1970 00:04:37 GMT\r\nEXT:\r\nSERVER: UPnP/1.0\r\nConnection: close\r\n\r\n<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">\r\n<s:Body>\r\n<u:GetVolumeResponse xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"><CurrentVolume>13</CurrentVolume></u:GetVolumeResponse>\r\n</s:Body>\r\n</s:Envelope>'

Can this be moved to debug - and maybe only show if there's a problem?

sermayoral commented 4 years ago

@GuyKh sure!!

GuyKh commented 4 years ago

WooHoo thanks :)