homeassistant-roborock icon indicating copy to clipboard operation
homeassistant-roborock copied to clipboard

Trim values not saved via config flow

Open zim514 opened this issue 1 year ago • 0 comments

Version of the custom_component

1.0.12 (HACS)

What vacuum are you using?

S8 Ultra Pro

Describe the bug

When changing the any of the trim values in the camera section of the config flow, the values are not saved. Opening it again still shows 0, the config entry JSON remains at 0.

It also doesn't allow values over 100, which I think I will need in my case if this is per pixel

Scale is saved, but doesn't seem to have any effect on my output.

Debug log

Note everything fits and it's too big for pastebin, but this is the only thing that looks relevant. Happy to share if there's a better method


2023-11-12 15:35:11.703 DEBUG (MainThread) [custom_components.roborock] Integration async setup entry: {'entry_id': '93a4b949400aad0427be4df118d46901', 'version': 1, 'domain': 'roborock', 'title': '[email protected]', 'data': {'home_data': {'id': 1756070, 'name': 'Home', 'products': [{'id': '5sYzP4uUXS6dTMZPoTakvU', 'name': 'Roborock S8 Pro Ultra', 'model': 'roborock.vacuum.a70', 'capability': 0, 'category': 'robot.vacuum.cleaner', 'schema': [{'id': '101', 'name': 'rpc_request', 'code': 'rpc_request', 'mode': 'rw', 'type': 'RAW'}, {'id': '102', 'name': 'rpc_response', 'code': 'rpc_response', 'mode': 'rw', 'type': 'RAW'}, {'id': '120', 'name': '错误代码', 'code': 'error_code', 'mode': 'ro', 'type': 'ENUM'}, {'id': '121', 'name': '设备状态', 'code': 'state', 'mode': 'ro', 'type': 'ENUM'}, {'id': '122', 'name': '设备电量', 'code': 'battery', 'mode': 'ro', 'type': 'ENUM'}, {'id': '123', 'name': '清扫模式', 'code': 'fan_power', 'mode': 'rw', 'type': 'ENUM'}, {'id': '124', 'name': '拖地模式', 'code': 'water_box_mode', 'mode': 'rw', 'type': 'ENUM'}, {'id': '125', 'name': '主刷寿命', 'code': 'main_brush_life', 'mode': 'rw', 'type': 'VALUE'}, {'id': '126', 'name': '边刷寿命', 'code': 'side_brush_life', 'mode': 'rw', 'type': 'VALUE'}, {'id': '127', 'name': '滤网寿命', 'code': 'filter_life', 'mode': 'rw', 'type': 'VALUE'}, {'id': '128', 'name': '额外状态', 'code': 'additional_props', 'mode': 'ro', 'type': 'RAW'}, {'id': '130', 'name': '完成事件', 'code': 'task_complete', 'mode': 'ro', 'type': 'RAW'}, {'id': '131', 'name': '电量不足任务取消', 'code': 'task_cancel_low_power', 'mode': 'ro', 'type': 'RAW'}, {'id': '132', 'name': '运动中任务取消', 'code': 'task_cancel_in_motion', 'mode': 'ro', 'type': 'RAW'}, {'id': '133', 'name': '充电状态', 'code': 'charge_status', 'mode': 'ro', 'type': 'RAW'}, {'id': '134', 'name': '烘干状态', 'code': 'drying_status', 'mode': 'ro', 'type': 'RAW'}]}], 'devices': [{'duid': '5xcdDQzkaCHbfR9YecWJ6h', 'name': 'Roborock S8 Pro Ultra', 'localKey': 'xs72e7m4Q04wTEx7', 'fv': '02.17.86', 'activeTime': 1698594466, 'timeZoneId': 'America/Toronto', 'iconUrl': '', 'productId': '5sYzP4uUXS6dTMZPoTakvU', 'share': False, 'online': True, 'pv': '1.0', 'tuyaMigrated': False, 'sn': 'R52NBR33603144', 'featureSet': '2247395306799103', 'newFeatureSet': '00000008009EFFFE', 'deviceStatus': {'120': 0, '121': 8, '122': 22, '123': 106, '124': 204, '125': 100, '126': 100, '127': 100, '128': 1, '133': 1, '134': 0}, 'silentOtaSwitch': True}], 'receivedDevices': [], 'rooms': [{'id': 4126471, 'name': 'Laundry'}, {'id': 4126459, 'name': 'Kitchen'}, {'id': 4126347, 'name': 'Living room'}, {'id': 4126346, 'name': 'Corridor'}, {'id': 4126345, 'name': 'Bathroom'}, {'id': 4126344, 'name': 'Bedroom'}]}, 'device_network': {'REDACTED': {'ip': '192.168.100.85', 'mac': ''}}, 'username': '[email protected]', 'user_data': {'uid': 1746734, 'tokentype': '', 'token': '<REDACTED>', 'rruid': 'rr62db4247e65830', 'region': 'us', 'countrycode': '1', 'country': 'CA', 'nickname': 'kris', 'rriot': {'u': '31qa14t3um8y3aWkkrZ41w', 's': 'ZmUoH2', 'h': 'DAQ88MzaUo', 'k': 'VMcQZBzs', 'r': {'r': 'US', 'a': 'https://api-us.roborock.com', 'm': 'ssl://mqtt-us.roborock.com:8883', 'l': 'https://wood-us.roborock.com'}}, 'tuyaDeviceState': 0, 'avatarurl': 'https://files.roborock.com/iottest/default_avatar.png'}, 'base_url': 'https://usiot.roborock.com'}, 'options': {'camera': {'map_transformation': {'scale': 5.0, 'rotate': 0, 'trim': {'left': 0, 'right': 0, 'top': 0, 'bottom': 0}, 'include_nogo': True, 'include_ignored_obstacles': True}, 'include_ignored_obstacles': True, 'include_nogo': True}}, 'pref_disable_new_entities': False, 'pref_disable_polling': False, 'source': 'user', 'unique_id': '[email protected]', 'disabled_by': None}

zim514 avatar Nov 12 '23 20:11 zim514