ollo69 / ha-smartthinq-sensors

HomeAssistant custom integration for SmartThinQ LG devices configurable with Lovelace User Interface.
Apache License 2.0
1.15k stars 159 forks source link

[Feature Request] Support for LG Styler #115

Closed southwestflavorz closed 3 years ago

southwestflavorz commented 3 years ago

Is your feature request related to a problem? Please describe. The integration currently does not detect my LG Style which is connected to ThinQ

Describe the solution you'd like Incorporate support for LG Styler

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

KTibow commented 3 years ago

Do you get anything in your logs?

southwestflavorz commented 3 years ago

How do I check the logs?

KTibow commented 3 years ago

Always google any questions you don't know how to answer, possibly with the platform (Home Assistant) appended.

AVKosterin commented 3 years ago

Is your feature request related to a problem? Please describe. The integration currently does not detect my LG Style which is connected to ThinQ

Describe the solution you'd like Incorporate support for LG Styler

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

+1

AVKosterin commented 3 years ago

'https://objectcontent.lgthinq.com/38578752-a048-4e7b-b2e3-dbd97fd81dc1?hdnts=exp=1675466719~hmac=07d4a92bf99d5c950bff2ee407566469dee139f729023147e12665e', 'deviceState': 'E', 'snapshot': {'mid': 23212174.0, 'online': True, 'static': {'deviceType': '101', 'countryCode': 'RU'}, 'meta': {'allDeviceInfoUpdate': False, 'messageId': 'zHU5MqJXS7acjrLpsJBXXg'}, 'refState': {'atLeastOneDoorOpen': 'CLOSE', 'displayLock': 'UNLOCK', 'freezerTemp': 3.0, 'fridgeTemp': 2.0, 'tempUnit': 'CELSIUS', 'expressMode': 'OFF', 'activeSaving': 'OFF', 'freshAirFilter': 'AUTO', 'monStatus': 'NORMAL', 'smartSavingMode': 'SMARTGRID_DD_ON', 'smartSavingRun': 'STOP', 'waterFilter': '3_MONTH'}, 'timestamp': 1614369618616.0}, 'online': True, 'platformType': 'thinq2', 'area': 294021, 'regDt': 20201123155458.0, 'blackboxYn': 'Y', 'modelProtocol': 'STANDARD', 'order': 0, 'drServiceYn': 'N', 'fwInfoList': [{'checksum': '013A05A5', 'partNumber': 'SAA39840901', 'order': 2.0}, {'checksum': '01369AFC', 'partNumber': 'SAA40094701', 'order': 1.0}], 'modemInfo': {'modelName': '2REF11EIIFW', 'appVersion': 'clip_hna_v1.9.080', 'modemType': 'QCOM_QCA4010', 'ruleEngine': 'y'}, 'guideTypeYn': 'Y', 'guideType': 'TYPE1', 'regDtUtc': '20201123125458', 'regIndex': 0, 'groupableYn': 'N', 'controllableYn': 'N', 'combinedProductYn': 'N', 'masterYn': 'Y', 'pccModelYn': 'N', 'autoOrderYn': 'N', 'initDevice': False, 'existsEntryPopup': 'N', 'tclcount': 0}, {'appType': 'NUTS', 'modelCountryCode': 'RU', 'countryCode': 'RU', 'modelName': 'S5BB_RU_WIFI', 'deviceType': 203, 'deviceCode': 'LA04', 'alias': 'Styler', 'deviceId': 'eabae7cd-861a-1440-9c68-402f86e6cd72', 'fwVer': '', 'imageFileName': 'home_appliances_img_styler.png', 'imageUrl': 'https://objectstore.lgthinq.com/109a71e8-5427-4c02-8d0d-41ea97a2d62a?Expires=1644212973&Signature=gzuabhDKBXvs855Ni4-K7IxgGWo7cgWVZgG9rRSQgrQ9tW-7aP4pnq0ixsjkOYQitALdpqAkvYGSgdES9mITbbJlqqyo663X5RWe3IZig2hv4k~1DOLga4BvRsKEoREOTmTRkQ3WfWTQdTZZP5g6X1f9tFfDVcqdYvvwXYDRVJY5dLhBYPLbVVPomzJHe-vabC5LB1n~yCWBUAydIDlsvDpv4fpZRgAcghch2haVFQmU7mzoTLKIFsDLTx4nClqKRM6NkA3BuR2W6SewojcR5Kunlbzya1ZZzT8A6hI3kAlMO1~7~2w4opVBnjeTbxAYOSvj5uhSJLcSg&Key-Pair-Id=APKAI74R6YENXPGRIWLQ', 'smallImageUrl': 'https://objectstore.lgthinq.com/6d9a4368-fde1-4d8b-aaab-ead3dc5b8b0e?Expires=1643958974&Signature=GJYAUyvr4gtPibAyt12rEQcJoXkAOVLy0XFjjKJbfh6lE-MkrpPTlaarXBVC1e5pkmR4pRg66xbgu9KlxH2OhpWm5acwdfu1XM2hm8Mlwue3Zid-5oaC21~G2blGTRV09nphpNpxXDLbG1daITqmiaQAs88WyZBFnNXHqZSvLGIBmzyjkchBP6eEuGKhzupcF~7U2LAGHLqrVN34Hg-hPw05FeGafXtX3tLemEsLMLd6rXejF~0m6~Jdl2yitcvEDkCJK1VPEo-sF3WEoj2plBoCqCOGGoseM9lwajP6~3MQh9zSaN0OGH71fa8tfVKqF4e6ffAVGM6ty1id3eYfLg__&Key-Pair-Id=APKAI74R6YENXPGRIWLQ', 'ssid': 'SERVER', 'softapId': '', 'softapPass': '', 'macAddress': '', 'networkType': '02', 'timezoneCode': 'Europe/Moscow', 'timezoneCodeAlias': 'Russia/Moscow', 'utcOffset': 3, 'utcOffsetDisplay': '+03:00', 'dstOffset': 3, 'dstOffsetDisplay': '+03:00', 'curOffset': 3, 'curOffsetDisplay': '+03:00', 'sdsGuide': '{"deviceCode":"LA04"}', 'newRegYn': 'N', 'remoteControlType': '', 'userNo': 'RU2011232593101', 'tftYn': 'N', 'modelJsonVer': 1.6, 'modelJsonUri': 'https://objectstore.lgthinq.com/0c9b0579-6c6d-4c05-99ce-4cd83a444485?Expires=1638945183&Signature=sQXvjM953usU01GRhvbx3MC2q9sd6-wklHtQNzlXi4GbXac146RAN1uaCqYQbLR2-7sLaN~5XjS4WlAxNrP7YJbC-AkaFjllfRO6Qot8S6~fNGtxRhrYLACAUtcV1HMggITLd9dS5Da3N6PkO3H-jmGEo~kfR8rJQVKv-bMixbqD1fb0boTHfWgnTaA2iH4rwP1aa1C5444MO9StyJSmReklqt8oBxO8FP78qFqzBFJD8AYe06O7J5-ek57Gwwf41OYbiz8bSEHTM0q8zG5r~DmoE~ePsVeiPQMMD~SgTur18SYNBO0Qodx5DRo9kkEfpGqQ__&Key-Pair-Id=APKAI74R6YENXPGRIWLQ', 'appModuleVer': 210.74, 'appModuleUri': 'https://objectstore.lgthinq.com/2f7c1909-7dd1-45f5-a845-9fcc7642d13d?Expires=1641812644&Signature=VWXOIefptTNjo9Npa5ZmPaHvegwCbVRCtRExWq~iyarNt6wnwu5KCUAfM2Zi5a-lP2JvgPsaaYZ0rzKz--abZfr3V9KUud2wCsZxnpfUDC9Ve~PlzOmMUtLaUBitndw6JN0VeXJo8sWVE-MeKe6bDtsgCH0uFA~VnvCTfOU~ay82tI0dAze6Jla2dy3JJFtKXpzcLNHP7G5yWaUhwvGd33zoSVas8YCgWz1GaU4~23BXFX97L8Kd-0aOWWn-r9b6uFkMr4zHF0kPiZQdCewrMntePkjdBpUpF4EoXXDJJZaqF6xGqPgeRFqTZMX9K0eFoAw__&Key-Pair-Id=APKAI74R6YENXPGRIWLQ', 'appRestartYn': 'Y', 'appModuleSize': 683341, 'langPackProductTypeVer': 46.82, 'langPackProductTypeUri': 'https://objectcontent.lgthinq.com/46f427d4-3cb6-48b4-b9b0-497f106707e2?hdnts=exp=1675583709~hmac=62026bb4d2fb9917b73a755b31f4c8f6df105b29173c99b76f', 'deviceState': 'E', 'snapshot': {'mid': 12891.0, 'online': True, 'styler': {'initialBit': 'INITIAL_BIT_OFF', 'reserveTimeMinute': 0.0, 'initialTimeMinute': 0.0, 'preState': 'COMPLETE', 'energyMonitoring': 572.0, 'error': 'ERROR_NO', 'nightDry': 'NIGHTDRY_OFF', 'remainTimeMinute': 1.0, 'reserveTimeHour': 0.0, 'smartCourse': 'NONE', 'childLock': 'CHILDLOCK_OFF', 'remainTimeHour': 0.0, 'remoteStart': 'REMOTE_START_OFF', 'currentDownloadCourse1': 'BABY_CLOTHING_SANITARY', 'course': 'NONE', 'currentDownloadCourse3': 0.0, 'currentDownloadCourse2': 66.0, 'state': 'POWEROFF', 'currentDownloadCourseCount': 1.0, 'initialTimeHour': 0.0}, 'static': {'deviceType': '203', 'countryCode': 'RU'}, 'meta': {'allDeviceInfoUpdate': True, 'messageId': 'qzVU1WiBQxmB_xqfuOB5WA'}, 'timestamp': 1614369624835.0}, 'online': True, 'platformType': 'thinq2', 'area': 294021, 'regDt': 20210226093944.0, 'blackboxYn': 'Y', 'order': 0, 'drServiceYn': 'N', 'fwInfoList': [{'checksum': '0000E50D', 'partNumber': 'SAA37569135', 'order': 2.0}, {'checksum': '000016A6', 'partNumber': 'SAA37569018', 'order': 1.0}], 'modemInfo': {'modelName': 'S5BB_RU_WIFI', 'appVersion': 'clip_hna_v1.9.078', 'modemType': 'QCOM_QCA4010', 'ruleEngine': 'y'}, 'guideTypeYn': 'Y', 'guideType': 'TYPE1', 'regDtUtc': '20210226063944', 'regIndex': 0, 'groupableYn': 'N', 'controllableYn': 'N', 'combinedProductYn': 'N', 'masterYn': 'Y', 'pccModelYn': 'N', 'autoOrderYn': 'N', 'initDevice': False, 'existsEntryPopup': 'N', 'tclcount': 0}], 'group': []}}`

KTibow commented 3 years ago

I have a feeling something in there is private, that would allow random people to do weird stuff with your appliance.

AVKosterin commented 3 years ago

I have a feeling something in there is private, that would allow random people to do weird stuff with your appliance.

the code is partially removed, will not work signatures have been changed

KTibow commented 3 years ago

Good, but you should probably also delete the old versions.

AVKosterin commented 3 years ago

Good, but you should probably also delete the old versions.

Yes thank you!

are these logs enough to add Styler support?

KTibow commented 3 years ago

What kind of support do you want?

AVKosterin commented 3 years ago

What kind of support do you want?

state is on or off. If more then which program is selected

KTibow commented 3 years ago

Great. @ollo69 what's the next step on this? Are you willing to implement this, or would you rather someone else?

ollo69 commented 3 years ago

It looks not so complex implement this, and I have all information required. I will come back here when ready.

ollo69 commented 3 years ago

Styler should be supported with last release. Please perform tests and report here your result.

ollo69 commented 3 years ago

Close due to inactivity. Styler now should be supported