@SebuZet I have enabled debug but havenât got more info in logfile then one I already sent you. I testet now commit df3d880 and it is working great Will test ae70f41 in about 1-2h âŚ
Guys, I pushed to repo last changes. Probably last before evening
From now on, you donât have to modify any file path. Main configuration section is moved to configuration.yaml from HA and should looks like below:
@Modrica@SebuZet
df3d880 not working here, it get stuck, and hass not starting:
2019-03-18 16:19:51 INFO (MainThread) [custom_components.climate_ip.climate] Wrapping socket
2019-03-18 16:19:51 INFO (MainThread) [custom_components.climate_ip.climate] Connecting with 192.168.18.108:2878
Ok, Iâve fixed some issues and added extra logs - just in case
Please remember that from now on you donât have to edit YAML files to set IP addres or token. It will be filled out by component. Also it is enough to specify yaml file name without full path - component will search for this file in componentâs folder. @Modrica@jackdalma@Nick2
Validation errors also should be fixed.
@SebuZet Thank you, just tried your new commit. this is the log:
2019-03-19 00:10:24 INFO (MainThread) [custom_components.climate_ip.climate] climate_ip: async setup platform
2019-03-19 00:10:24 INFO (MainThread) [custom_components.climate_ip.climate] Loading configuration file: /home/homeassistant/.homeassistant/custom_components/climate_ip/samsung_2878.yaml
2019-03-19 00:10:24 INFO (MainThread) [custom_components.climate_ip.climate] ip_address: 192.168.18.108
2019-03-19 00:10:24 INFO (MainThread) [custom_components.climate_ip.climate] token: token
2019-03-19 00:10:25 INFO (MainThread) [custom_components.climate_ip.climate] Validate properties: False (False)
2019-03-19 00:10:25 INFO (MainThread) [custom_components.climate_ip.climate] Configuration, host: 192.168.18.108:2878
2019-03-19 00:10:25 INFO (MainThread) [custom_components.climate_ip.climate] Configuration, token: token
2019-03-19 00:10:25 INFO (MainThread) [custom_components.climate_ip.climate] Configuration, duid: duid
2019-03-19 00:10:25 INFO (MainThread) [custom_components.climate_ip.climate] Configuration, cert: /home/homeassistant/.homeassistant/custom_components/climate_ip/ac14k_m.pem
2019-03-19 00:10:25 INFO (MainThread) [custom_components.climate_ip.climate] Creating ssl context
2019-03-19 00:10:25 INFO (MainThread) [custom_components.climate_ip.climate] Setting up ciphers
2019-03-19 00:10:25 INFO (MainThread) [custom_components.climate_ip.climate] Setting up verify mode
2019-03-19 00:10:25 INFO (MainThread) [custom_components.climate_ip.climate] Setting up verify location: /home/homeassistant/.homeassistant/custom_components/climate_ip/ac14k_m.pem
2019-03-19 00:10:25 INFO (MainThread) [custom_components.climate_ip.climate] Setting up load cert chain: /home/homeassistant/.homeassistant/custom_components/climate_ip/ac14k_m.pem
2019-03-19 00:10:25 INFO (MainThread) [custom_components.climate_ip.climate] Wrapping socket
2019-03-19 00:10:25 INFO (MainThread) [custom_components.climate_ip.climate] Socket wrapped: True
2019-03-19 00:10:25 INFO (MainThread) [custom_components.climate_ip.climate] Connecting with 192.168.18.108:2878
2019-03-19 00:15:38 INFO (MainThread) [custom_components.climate_ip.climate] Response: DPLUG-1.6
2019-03-19 00:15:40 INFO (MainThread) [custom_components.climate_ip.climate] Response: <?xml version="1.0" encoding="utf-8" ?><Update Type="InvalidateAccount"/>
2019-03-19 00:15:40 INFO (MainThread) [custom_components.climate_ip.climate] Socket created successful
2019-03-19 00:15:40 INFO (MainThread) [custom_components.climate_ip.climate] Sending init message: <Request Type="AuthToken"><User Token="token" /></Request>
2019-03-19 00:15:40 INFO (MainThread) [custom_components.climate_ip.climate] Message sent
2019-03-19 00:15:45 INFO (MainThread) [custom_components.climate_ip.climate] Response: <?xml version="1.0" encoding="utf-8" ?><Response Type="AuthToken" Status="Okay" StartFrom="2019-03-18/23:15:45"/>
2019-03-19 00:15:45 INFO (MainThread) [custom_components.climate_ip.climate] Socket created
2019-03-19 00:15:45 INFO (MainThread) [custom_components.climate_ip.climate] <Request Type="AuthToken"><User Token="token" /></Request>
2019-03-19 00:15:45 INFO (MainThread) [custom_components.climate_ip.climate] <Request Type="DeviceState" DUID="duid"></Request>
2019-03-19 00:16:30 WARNING (MainThread) [homeassistant.components.climate] Setup of platform climate_ip is taking over 10 seconds.
2019-03-19 00:16:31 INFO (MainThread) [custom_components.climate_ip.climate] Sending init message: <Request Type="AuthToken"><User Token="token" /></Request>
2019-03-19 00:16:31 ERROR (MainThread) [custom_components.climate_ip.climate] ERROR while validating connection, send error
and then restart from âCreating ssl contextâ
home assistant wonât start. it keep repeating this log.
edit: nvm hass now start, i had to reboot my samsung AC, it got stuck and was slow on answer.
but the log still keep repeating like above, just faster.
@Jman@jackdalma Did you restart computer with HA? After previous version I had to reboot my laptop. After that everything started to work.
From logs everything looks ok
I updated the test script @SebuZet created way back in this thread to send the status request, sleep 16 seconds and repeat with the same socket still open. That test worked, so my AC at least is not closing the socket in between requests
@SebuZet I just tested your latest code and it is working but I have to specify full path for config file in order to get it work â/config/custom_components/climate_ip/samsung_2878.yamlâ