shenxn / ha-dyson

HomeAssitant custom integration for dyson
MIT License
307 stars 59 forks source link

attribute angle_low & angle_high is not updating for TP04 #50

Closed whywai95 closed 2 years ago

whywai95 commented 3 years ago

TP04 pure cool has oscillating feature of multiple angles. The attribute of the angle is angle_low & angle_high, it's not updating in the HA when the angle is changed by Dyson remote control, nor is the attribute value able to overwriten by user through HA. Please help to enable it, thanks.

speed_list: off, low, medium, high preset_modes:
oscillating: true speed: high percentage: 100 percentage_step: 10 preset_mode: null angle_low: 135 angle_high: 225 friendly_name: Living room supported_features: 3

shenxn commented 3 years ago

Can you enable debug mode and change angles in the mobile app. Then find STATE CHANGE logs. To enable debug mode, add the following lines to your configuration.yaml

logger:
  default: info
  logs:
    libdyson: debug
superman110 commented 3 years ago

this is logs

2021-06-01 00:35:40 DEBUG (Thread-8) [libdyson.dyson_device] New state: {'msg': 'STATE-CHANGE', 'time': '2021-05-31T16:35:40.000Z', 'mode-reason': 'PRC', 'state-reason': 'MODE', 'product-state': {'fpwr': ['OFF', 'ON'], 'auto': ['OFF', 'OFF'], 'oscs': ['OFF', 'ON'], 'oson': ['ON', 'ON'], 'nmod': ['OFF', 'OFF'], 'rhtm': ['OFF', 'OFF'], 'fnst': ['OFF', 'FAN'], 'ercd': ['NONE', 'NONE'], 'wacd': ['NONE', 'NONE'], 'nmdv': ['0004', '0004'], 'fnsp': ['0005', '0005'], 'bril': ['0002', '0002'], 'corf': ['ON', 'ON'], 'cflr': ['0098', '0098'], 'hflr': ['0099', '0099'], 'cflt': ['CARF', 'CARF'], 'hflt': ['PHEP', 'PHEP'], 'sltm': ['OFF', 'OFF'], 'osal': ['0135', '0135'], 'osau': ['0225', '0225'], 'ancp': ['0090', '0090'], 'fdir': ['OFF', 'OFF']}, 'scheduler': {'srsc': '0000000000000000', 'dstv': '0000', 'tzid': '0001'}} 2021-06-01 00:35:54 DEBUG (Thread-8) [libdyson.dyson_device] New environmental state: {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2021-05-31T16:35:54.000Z', 'data': {'tact': '2967', 'hact': '0089', 'pm25': '0149', 'pm10': '0149', 'va10': 'INIT', 'noxl': 'INIT', 'p25r': '0999', 'p10r': '0999', 'sltm': 'OFF'}} 2021-06-01 00:36:24 DEBUG (Thread-8) [libdyson.dyson_device] New environmental state: {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2021-05-31T16:36:24.000Z', 'data': {'tact': '2967', 'hact': '0089', 'pm25': '0149', 'pm10': '0149', 'va10': 'INIT', 'noxl': 'INIT', 'p25r': '0989', 'p10r': '0999', 'sltm': 'OFF'}} 2021-06-01 00:36:54 DEBUG (Thread-8) [libdyson.dyson_device] New environmental state: {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2021-05-31T16:36:54.000Z', 'data': {'tact': '2968', 'hact': '0089', 'pm25': '0149', 'pm10': '0149', 'va10': 'INIT', 'noxl': 'INIT', 'p25r': '0923', 'p10r': '0999', 'sltm': 'OFF'}} 2021-06-01 00:37:37 DEBUG (Thread-8) [libdyson.dyson_device] New environmental state: {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2021-05-31T16:37:37.000Z', 'data': {'tact': '2968', 'hact': '0089', 'pm25': '0149', 'pm10': '0149', 'va10': 'INIT', 'noxl': 'INIT', 'p25r': '0884', 'p10r': '0978', 'sltm': 'OFF'}} 2021-06-01 00:37:54 DEBUG (Thread-8) [libdyson.dyson_device] New environmental state: {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2021-05-31T16:37:54.000Z', 'data': {'tact': '2969', 'hact': '0089', 'pm25': '0149', 'pm10': '0149', 'va10': 'INIT', 'noxl': 'INIT', 'p25r': '0896', 'p10r': '0963', 'sltm': 'OFF'}} 2021-06-01 00:38:24 DEBUG (Thread-8) [libdyson.dyson_device] New environmental state: {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2021-05-31T16:38:24.000Z', 'data': {'tact': '2969', 'hact': '0089', 'pm25': '0149', 'pm10': '0149', 'va10': 'INIT', 'noxl': 'INIT', 'p25r': '0835', 'p10r': '0931', 'sltm': 'OFF'}} 2021-06-01 00:38:54 DEBUG (Thread-8) [libdyson.dyson_device] New environmental state: {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2021-05-31T16:38:54.000Z', 'data': {'tact': '2970', 'hact': '0089', 'pm25': '0149', 'pm10': '0149', 'va10': 'INIT', 'noxl': 'INIT', 'p25r': '0853', 'p10r': '0930', 'sltm': 'OFF'}} 2021-06-01 00:39:24 DEBUG (Thread-8) [libdyson.dyson_device] New environmental state: {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2021-05-31T16:39:24.000Z', 'data': {'tact': '2970', 'hact': '0089', 'pm25': '0149', 'pm10': '0149', 'va10': 'INIT', 'noxl': 'INIT', 'p25r': '0847', 'p10r': '0921', 'sltm': 'OFF'}} 2021-06-01 00:39:54 DEBUG (Thread-8) [libdyson.dyson_device] New environmental state: {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2021-05-31T16:39:54.000Z', 'data': {'tact': '2971', 'hact': '0088', 'pm25': '0149', 'pm10': '0149', 'va10': 'INIT', 'noxl': 'INIT', 'p25r': '0790', 'p10r': '0873', 'sltm': 'OFF'}}

'osal': ['0135', '0135'], 'osau': ['0225', '0225'] not payload to change

shenxn commented 3 years ago

It seems that the field ancp is related. Can you try different combination of angles in app / remote control and see if you can get different values.

superman110 commented 3 years ago

turn off fan swings

2021-06-05 23:55:18 DEBUG (Thread-8) [libdyson.dyson_device] New state: {'msg': 'CURRENT-STATE', 'time': '2021-06-05T15:55:18.000Z', 'mode-reason': 'LAPP', 'state-reason': 'MODE', 'rssi': '-63', 'channel': '6', 'fqhp': '80976', 'fghp': '50984', 'product-state': {'fpwr': 'ON', 'auto': 'OFF', 'oscs': 'ON', 'oson': 'ON', 'nmod': 'OFF', 'rhtm': 'OFF', 'fnst': 'FAN', 'ercd': 'NONE', 'wacd': 'NONE', 'nmdv': '0004', 'fnsp': '0005', 'bril': '0002', 'corf': 'ON', 'cflr': '0098', 'hflr': '0099', 'cflt': 'CARF', 'hflt': 'PHEP', 'sltm': 'OFF', 'osal': '0190', 'osau': '0235', 'ancp': 'CUST', 'fdir': 'ON'}, 'scheduler': {'srsc': '0000000000000000', 'dstv': '0000', 'tzid': '0001'}} 2021-06-05 23:55:29 DEBUG (Thread-8) [libdyson.dyson_device] New state: {'msg': 'STATE-CHANGE', 'time': '2021-06-05T15:55:29.000Z', 'mode-reason': 'RAPP', 'state-reason': 'MODE', 'product-state': {'fpwr': ['ON', 'ON'], 'auto': ['OFF', 'OFF'], 'oscs': ['ON', 'ON'], 'oson': ['ON', 'OFF'], 'nmod': ['OFF', 'OFF'], 'rhtm': ['OFF', 'OFF'], 'fnst': ['FAN', 'FAN'], 'ercd': ['NONE', 'NONE'], 'wacd': ['NONE', 'NONE'], 'nmdv': ['0004', '0004'], 'fnsp': ['0005', '0005'], 'bril': ['0002', '0002'], 'corf': ['ON', 'ON'], 'cflr': ['0098', '0098'], 'hflr': ['0099', '0099'], 'cflt': ['CARF', 'CARF'], 'hflt': ['PHEP', 'PHEP'], 'sltm': ['OFF', 'OFF'], 'osal': ['0190', '0190'], 'osau': ['0235', '0235'], 'ancp': ['CUST', 'CUST'], 'fdir': ['ON', 'ON']}, 'scheduler': {'srsc': '0000000000000000', 'dstv': '0000', 'tzid': '0001'}} 2021-06-05 23:55:33 DEBUG (Thread-8) [libdyson.dyson_device] New state: {'msg': 'STATE-CHANGE', 'time': '2021-06-05T15:55:33.000Z', 'mode-reason': 'RAPP', 'state-reason': 'MODE', 'product-state': {'fpwr': ['ON', 'ON'], 'auto': ['OFF', 'OFF'], 'oscs': ['ON', 'OFF'], 'oson': ['OFF', 'OFF'], 'nmod': ['OFF', 'OFF'], 'rhtm': ['OFF', 'OFF'], 'fnst': ['FAN', 'FAN'], 'ercd': ['NONE', 'NONE'], 'wacd': ['NONE', 'NONE'], 'nmdv': ['0004', '0004'], 'fnsp': ['0005', '0005'], 'bril': ['0002', '0002'], 'corf': ['ON', 'ON'], 'cflr': ['0098', '0098'], 'hflr': ['0099', '0099'], 'cflt': ['CARF', 'CARF'], 'hflt': ['PHEP', 'PHEP'], 'sltm': ['OFF', 'OFF'], 'osal': ['0190', '0190'], 'osau': ['0235', '0235'], 'ancp': ['CUST', 'CUST'], 'fdir': ['ON', 'ON']}, 'scheduler': {'srsc': '0000000000000000', 'dstv': '0000', 'tzid': '0001'}} 2021-06-05 23:55:48 DEBUG (Thread-8) [libdyson.dyson_device] New state: {'msg': 'CURRENT-STATE', 'time': '2021-06-05T15:55:48.000Z', 'mode-reason': 'RAPP', 'state-reason': 'MODE', 'rssi': '-64', 'channel': '6', 'fqhp': '80976', 'fghp': '50984', 'product-state': {'fpwr': 'ON', 'auto': 'OFF', 'oscs': 'OFF', 'oson': 'OFF', 'nmod': 'OFF', 'rhtm': 'OFF', 'fnst': 'FAN', 'ercd': 'NONE', 'wacd': 'NONE', 'nmdv': '0004', 'fnsp': '0005', 'bril': '0002', 'corf': 'ON', 'cflr': '0098', 'hflr': '0099', 'cflt': 'CARF', 'hflt': 'PHEP', 'sltm': 'OFF', 'osal': '0190', 'osau': '0235', 'ancp': 'CUST', 'fdir': 'ON'}, 'scheduler': {'srsc': '0000000000000000', 'dstv': '0000', 'tzid': '0001'}}

Change to 45 degrees

2021-06-05 23:57:24 DEBUG (Thread-8) [libdyson.dyson_device] New state: {'msg': 'CURRENT-STATE', 'time': '2021-06-05T15:57:24.000Z', 'mode-reason': 'RAPP', 'state-reason': 'MODE', 'rssi': '-61', 'channel': '6', 'fqhp': '80544', 'fghp': '50984', 'product-state': {'fpwr': 'ON', 'auto': 'OFF', 'oscs': 'OFF', 'oson': 'OFF', 'nmod': 'OFF', 'rhtm': 'OFF', 'fnst': 'FAN', 'ercd': 'NONE', 'wacd': 'NONE', 'nmdv': '0004', 'fnsp': '0005', 'bril': '0002', 'corf': 'ON', 'cflr': '0098', 'hflr': '0099', 'cflt': 'CARF', 'hflt': 'PHEP', 'sltm': 'OFF', 'osal': '0190', 'osau': '0235', 'ancp': 'CUST', 'fdir': 'ON'}, 'scheduler': {'srsc': '0000000000000000', 'dstv': '0000', 'tzid': '0001'}} 2021-06-05 23:57:26 DEBUG (Thread-8) [libdyson.dyson_device] New state: {'msg': 'STATE-CHANGE', 'time': '2021-06-05T15:57:27.000Z', 'mode-reason': 'LAPP', 'state-reason': 'MODE', 'product-state': {'fpwr': ['ON', 'ON'], 'auto': ['OFF', 'OFF'], 'oscs': ['OFF', 'ON'], 'oson': ['OFF', 'ON'], 'nmod': ['OFF', 'OFF'], 'rhtm': ['OFF', 'OFF'], 'fnst': ['FAN', 'FAN'], 'ercd': ['NONE', 'NONE'], 'wacd': ['NONE', 'NONE'], 'nmdv': ['0004', '0004'], 'fnsp': ['0005', '0005'], 'bril': ['0002', '0002'], 'corf': ['ON', 'ON'], 'cflr': ['0098', '0098'], 'hflr': ['0099', '0099'], 'cflt': ['CARF', 'CARF'], 'hflt': ['PHEP', 'PHEP'], 'sltm': ['OFF', 'OFF'], 'osal': ['0190', '0198'], 'osau': ['0235', '0243'], 'ancp': ['CUST', 'CUST'], 'fdir': ['ON', 'ON']}, 'scheduler': {'srsc': '0000000000000000', 'dstv': '0000', 'tzid': '0001'}} 2021-06-05 23:57:54 DEBUG (Thread-8) [libdyson.dyson_device] New state: {'msg': 'CURRENT-STATE', 'time': '2021-06-05T15:57:54.000Z', 'mode-reason': 'LAPP', 'state-reason': 'MODE', 'rssi': '-71', 'channel': '6', 'fqhp': '80544', 'fghp': '50984', 'product-state': {'fpwr': 'ON', 'auto': 'OFF', 'oscs': 'ON', 'oson': 'ON', 'nmod': 'OFF', 'rhtm': 'OFF', 'fnst': 'FAN', 'ercd': 'NONE', 'wacd': 'NONE', 'nmdv': '0004', 'fnsp': '0005', 'bril': '0002', 'corf': 'ON', 'cflr': '0098', 'hflr': '0099', 'cflt': 'CARF', 'hflt': 'PHEP', 'sltm': 'OFF', 'osal': '0198', 'osau': '0243', 'ancp': 'CUST', 'fdir': 'ON'}, 'scheduler': {'srsc': '0000000000000000', 'dstv': '0000', 'tzid': '0001'}}

Change to 90 degrees

2021-06-05 23:59:53 DEBUG (Thread-8) [libdyson.dyson_device] New state: {'msg': 'CURRENT-STATE', 'time': '2021-06-05T15:59:53.000Z', 'mode-reason': 'LAPP', 'state-reason': 'MODE', 'rssi': '-61', 'channel': '6', 'fqhp': '80544', 'fghp': '50984', 'product-state': {'fpwr': 'ON', 'auto': 'OFF', 'oscs': 'ON', 'oson': 'ON', 'nmod': 'OFF', 'rhtm': 'OFF', 'fnst': 'FAN', 'ercd': 'NONE', 'wacd': 'NONE', 'nmdv': '0004', 'fnsp': '0005', 'bril': '0002', 'corf': 'ON', 'cflr': '0098', 'hflr': '0099', 'cflt': 'CARF', 'hflt': 'PHEP', 'sltm': 'OFF', 'osal': '0198', 'osau': '0243', 'ancp': 'CUST', 'fdir': 'ON'}, 'scheduler': {'srsc': '0000000000000000', 'dstv': '0000', 'tzid': '0001'}} 2021-06-05 23:59:56 DEBUG (Thread-8) [libdyson.dyson_device] New state: {'msg': 'STATE-CHANGE', 'time': '2021-06-05T15:59:56.000Z', 'mode-reason': 'LAPP', 'state-reason': 'MODE', 'product-state': {'fpwr': ['ON', 'ON'], 'auto': ['OFF', 'OFF'], 'oscs': ['ON', 'ON'], 'oson': ['ON', 'ON'], 'nmod': ['OFF', 'OFF'], 'rhtm': ['OFF', 'OFF'], 'fnst': ['FAN', 'FAN'], 'ercd': ['NONE', 'NONE'], 'wacd': ['NONE', 'NONE'], 'nmdv': ['0004', '0004'], 'fnsp': ['0005', '0005'], 'bril': ['0002', '0002'], 'corf': ['ON', 'ON'], 'cflr': ['0098', '0098'], 'hflr': ['0099', '0099'], 'cflt': ['CARF', 'CARF'], 'hflt': ['PHEP', 'PHEP'], 'sltm': ['OFF', 'OFF'], 'osal': ['0198', '0175'], 'osau': ['0243', '0265'], 'ancp': ['CUST', 'CUST'], 'fdir': ['ON', 'ON']}, 'scheduler': {'srsc': '0000000000000000', 'dstv': '0000', 'tzid': '0001'}} 2021-06-06 00:00:14 DEBUG (Thread-8) [libdyson.dyson_device] New state: {'msg': 'CURRENT-STATE', 'time': '2021-06-05T16:00:14.000Z', 'mode-reason': 'LAPP', 'state-reason': 'MODE', 'rssi': '-63', 'channel': '6', 'fqhp': '80104', 'fghp': '50984', 'product-state': {'fpwr': 'ON', 'auto': 'OFF', 'oscs': 'ON', 'oson': 'ON', 'nmod': 'OFF', 'rhtm': 'OFF', 'fnst': 'FAN', 'ercd': 'NONE', 'wacd': 'NONE', 'nmdv': '0004', 'fnsp': '0005', 'bril': '0002', 'corf': 'ON', 'cflr': '0098', 'hflr': '0099', 'cflt': 'CARF', 'hflt': 'PHEP', 'sltm': 'OFF', 'osal': '0175', 'osau': '0265', 'ancp': 'CUST', 'fdir': 'ON'}, 'scheduler': {'srsc': '0000000000000000', 'dstv': '0000', 'tzid': '0001'}}

Change to 180 degrees

2021-06-06 00:04:40 DEBUG (Thread-8) [libdyson.dyson_device] New state: {'msg': 'CURRENT-STATE', 'time': '2021-06-05T16:04:40.000Z', 'mode-reason': 'LAPP', 'state-reason': 'MODE', 'rssi': '-62', 'channel': '6', 'fqhp': '80544', 'fghp': '50984', 'product-state': {'fpwr': 'ON', 'auto': 'OFF', 'oscs': 'ON', 'oson': 'ON', 'nmod': 'OFF', 'rhtm': 'OFF', 'fnst': 'FAN', 'ercd': 'NONE', 'wacd': 'NONE', 'nmdv': '0004', 'fnsp': '0005', 'bril': '0002', 'corf': 'ON', 'cflr': '0098', 'hflr': '0099', 'cflt': 'CARF', 'hflt': 'PHEP', 'sltm': 'OFF', 'osal': '0175', 'osau': '0265', 'ancp': 'CUST', 'fdir': 'ON'}, 'scheduler': {'srsc': '0000000000000000', 'dstv': '0000', 'tzid': '0001'}} 2021-06-06 00:04:43 DEBUG (Thread-8) [libdyson.dyson_device] New state: {'msg': 'STATE-CHANGE', 'time': '2021-06-05T16:04:44.000Z', 'mode-reason': 'LAPP', 'state-reason': 'MODE', 'product-state': {'fpwr': ['ON', 'ON'], 'auto': ['OFF', 'OFF'], 'oscs': ['ON', 'ON'], 'oson': ['ON', 'ON'], 'nmod': ['OFF', 'OFF'], 'rhtm': ['OFF', 'OFF'], 'fnst': ['FAN', 'FAN'], 'ercd': ['NONE', 'NONE'], 'wacd': ['NONE', 'NONE'], 'nmdv': ['0004', '0004'], 'fnsp': ['0005', '0005'], 'bril': ['0002', '0002'], 'corf': ['ON', 'ON'], 'cflr': ['0098', '0098'], 'hflr': ['0099', '0099'], 'cflt': ['CARF', 'CARF'], 'hflt': ['PHEP', 'PHEP'], 'sltm': ['OFF', 'OFF'], 'osal': ['0175', '0130'], 'osau': ['0265', '0310'], 'ancp': ['CUST', 'CUST'], 'fdir': ['ON', 'ON']}, 'scheduler': {'srsc': '0000000000000000', 'dstv': '0000', 'tzid': '0001'}} 2021-06-06 00:05:10 DEBUG (Thread-8) [libdyson.dyson_device] New state: {'msg': 'CURRENT-STATE', 'time': '2021-06-05T16:05:10.000Z', 'mode-reason': 'LAPP', 'state-reason': 'MODE', 'rssi': '-64', 'channel': '6', 'fqhp': '80544', 'fghp': '50984', 'product-state': {'fpwr': 'ON', 'auto': 'OFF', 'oscs': 'ON', 'oson': 'ON', 'nmod': 'OFF', 'rhtm': 'OFF', 'fnst': 'FAN', 'ercd': 'NONE', 'wacd': 'NONE', 'nmdv': '0004', 'fnsp': '0005', 'bril': '0002', 'corf': 'ON', 'cflr': '0098', 'hflr': '0099', 'cflt': 'CARF', 'hflt': 'PHEP', 'sltm': 'OFF', 'osal': '0130', 'osau': '0310', 'ancp': 'CUST', 'fdir': 'ON'}, 'scheduler': {'srsc': '0000000000000000', 'dstv': '0000', 'tzid': '0001'}}

Change to 350 degrees

2021-06-06 00:08:31 DEBUG (Thread-8) [libdyson.dyson_device] New state: {'msg': 'CURRENT-STATE', 'time': '2021-06-05T16:08:31.000Z', 'mode-reason': 'LAPP', 'state-reason': 'MODE', 'rssi': '-60', 'channel': '6', 'fqhp': '80536', 'fghp': '50984', 'product-state': {'fpwr': 'ON', 'auto': 'OFF', 'oscs': 'ON', 'oson': 'ON', 'nmod': 'OFF', 'rhtm': 'OFF', 'fnst': 'FAN', 'ercd': 'NONE', 'wacd': 'NONE', 'nmdv': '0004', 'fnsp': '0005', 'bril': '0002', 'corf': 'ON', 'cflr': '0098', 'hflr': '0099', 'cflt': 'CARF', 'hflt': 'PHEP', 'sltm': 'OFF', 'osal': '0130', 'osau': '0310', 'ancp': 'CUST', 'fdir': 'ON'}, 'scheduler': {'srsc': '0000000000000000', 'dstv': '0000', 'tzid': '0001'}} 2021-06-06 00:08:34 DEBUG (Thread-8) [libdyson.dyson_device] New state: {'msg': 'STATE-CHANGE', 'time': '2021-06-05T16:08:34.000Z', 'mode-reason': 'LAPP', 'state-reason': 'MODE', 'product-state': {'fpwr': ['ON', 'ON'], 'auto': ['OFF', 'OFF'], 'oscs': ['ON', 'ON'], 'oson': ['ON', 'ON'], 'nmod': ['OFF', 'OFF'], 'rhtm': ['OFF', 'OFF'], 'fnst': ['FAN', 'FAN'], 'ercd': ['NONE', 'NONE'], 'wacd': ['NONE', 'NONE'], 'nmdv': ['0004', '0004'], 'fnsp': ['0005', '0005'], 'bril': ['0002', '0002'], 'corf': ['ON', 'ON'], 'cflr': ['0098', '0098'], 'hflr': ['0099', '0099'], 'cflt': ['CARF', 'CARF'], 'hflt': ['PHEP', 'PHEP'], 'sltm': ['OFF', 'OFF'], 'osal': ['0130', '0005'], 'osau': ['0310', '0355'], 'ancp': ['CUST', 'CUST'], 'fdir': ['ON', 'ON']}, 'scheduler': {'srsc': '0000000000000000', 'dstv': '0000', 'tzid': '0001'}} 2021-06-06 00:08:35 DEBUG (Thread-8) [libdyson.dyson_device] New state: {'msg': 'CURRENT-STATE', 'time': '2021-06-05T16:08:35.000Z', 'mode-reason': 'LAPP', 'state-reason': 'MODE', 'rssi': '-61', 'channel': '6', 'fqhp': '80976', 'fghp': '50984', 'product-state': {'fpwr': 'ON', 'auto': 'OFF', 'oscs': 'ON', 'oson': 'ON', 'nmod': 'OFF', 'rhtm': 'OFF', 'fnst': 'FAN', 'ercd': 'NONE', 'wacd': 'NONE', 'nmdv': '0004', 'fnsp': '0005', 'bril': '0002', 'corf': 'ON', 'cflr': '0098', 'hflr': '0099', 'cflt': 'CARF', 'hflt': 'PHEP', 'sltm': 'OFF', 'osal': '0005', 'osau': '0355', 'ancp': 'CUST', 'fdir': 'ON'}, 'scheduler': {'srsc': '0000000000000000', 'dstv': '0000', 'tzid': '0001'}}

shenxn commented 3 years ago

@superman110 Thanks for your info. According to the log, it seems that osal and osau are the fields for angles, which means currently it should work correctly. Can you double check?

superman110 commented 3 years ago

The log above is dyson link app, and the log below is my remote control, ‘osal’ and ‘osau’ not change, ‘ancp’ is the current angle and the target angle

2021-06-06 13:16:20 DEBUG (Thread-8) [libdyson.dyson_device] New state: {'msg': 'STATE-CHANGE', 'time': '2021-06-06T05:16:21.000Z', 'mode-reason': 'PRC', 'state-reason': 'MODE', 'product-state': {'fpwr': ['ON', 'ON'], 'auto': ['OFF', 'OFF'], 'oscs': ['OFF', 'ON'], 'oson': ['OFF', 'ON'], 'nmod': ['OFF', 'OFF'], 'rhtm': ['OFF', 'OFF'], 'fnst': ['FAN', 'FAN'], 'ercd': ['NONE', 'NONE'], 'wacd': ['NONE', 'NONE'], 'nmdv': ['0004', '0004'], 'fnsp': ['0004', '0004'], 'bril': ['0002', '0002'], 'corf': ['ON', 'ON'], 'cflr': ['0098', '0098'], 'hflr': ['0099', '0099'], 'cflt': ['CARF', 'CARF'], 'hflt': ['PHEP', 'PHEP'], 'sltm': ['OFF', 'OFF'], 'osal': ['0190', '0190'], 'osau': ['0235', '0235'], 'ancp': ['CUST', '0180'], 'fdir': ['ON', 'ON']}, 'scheduler': {'srsc': '0000000000000000', 'dstv': '0000', 'tzid': '0001'}} 2021-06-06 13:16:24 DEBUG (Thread-8) [libdyson.dyson_device] New environmental state: {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2021-06-06T05:16:24.000Z', 'data': {'tact': '2975', 'hact': '0072', 'pm25': '0092', 'pm10': '0082', 'va10': 'INIT', 'noxl': 'INIT', 'p25r': '0079', 'p10r': '0090', 'sltm': 'OFF'}} 2021-06-06 13:16:54 DEBUG (Thread-8) [libdyson.dyson_device] New environmental state: {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2021-06-06T05:16:54.000Z', 'data': {'tact': '2976', 'hact': '0071', 'pm25': '0086', 'pm10': '0073', 'va10': 'INIT', 'noxl': 'INIT', 'p25r': '0067', 'p10r': '0080', 'sltm': 'OFF'}} 2021-06-06 13:17:24 DEBUG (Thread-8) [libdyson.dyson_device] New environmental state: {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2021-06-06T05:17:24.000Z', 'data': {'tact': '2976', 'hact': '0071', 'pm25': '0080', 'pm10': '0071', 'va10': 'INIT', 'noxl': 'INIT', 'p25r': '0063', 'p10r': '0077', 'sltm': 'OFF'}} 2021-06-06 13:17:31 DEBUG (Thread-8) [libdyson.dyson_device] New state: {'msg': 'STATE-CHANGE', 'time': '2021-06-06T05:17:31.000Z', 'mode-reason': 'PRC', 'state-reason': 'MODE', 'product-state': {'fpwr': ['ON', 'ON'], 'auto': ['OFF', 'OFF'], 'oscs': ['ON', 'ON'], 'oson': ['ON', 'ON'], 'nmod': ['OFF', 'OFF'], 'rhtm': ['OFF', 'OFF'], 'fnst': ['FAN', 'FAN'], 'ercd': ['NONE', 'NONE'], 'wacd': ['NONE', 'NONE'], 'nmdv': ['0004', '0004'], 'fnsp': ['0004', '0004'], 'bril': ['0002', '0002'], 'corf': ['ON', 'ON'], 'cflr': ['0098', '0098'], 'hflr': ['0099', '0099'], 'cflt': ['CARF', 'CARF'], 'hflt': ['PHEP', 'PHEP'], 'sltm': ['OFF', 'OFF'], 'osal': ['0190', '0190'], 'osau': ['0235', '0235'], 'ancp': ['0180', '0045'], 'fdir': ['ON', 'ON']}, 'scheduler': {'srsc': '0000000000000000', 'dstv': '0000', 'tzid': '0001'}} 2021-06-06 13:17:35 DEBUG (Thread-8) [libdyson.dyson_device] New state: {'msg': 'STATE-CHANGE', 'time': '2021-06-06T05:17:36.000Z', 'mode-reason': 'PRC', 'state-reason': 'MODE', 'product-state': {'fpwr': ['ON', 'ON'], 'auto': ['OFF', 'OFF'], 'oscs': ['ON', 'ON'], 'oson': ['ON', 'ON'], 'nmod': ['OFF', 'OFF'], 'rhtm': ['OFF', 'OFF'], 'fnst': ['FAN', 'FAN'], 'ercd': ['NONE', 'NONE'], 'wacd': ['NONE', 'NONE'], 'nmdv': ['0004', '0004'], 'fnsp': ['0004', '0004'], 'bril': ['0002', '0002'], 'corf': ['ON', 'ON'], 'cflr': ['0098', '0098'], 'hflr': ['0099', '0099'], 'cflt': ['CARF', 'CARF'], 'hflt': ['PHEP', 'PHEP'], 'sltm': ['OFF', 'OFF'], 'osal': ['0190', '0190'], 'osau': ['0235', '0235'], 'ancp': ['0045', '0090'], 'fdir': ['ON', 'ON']}, 'scheduler': {'srsc': '0000000000000000', 'dstv': '0000', 'tzid': '0001'}} 2021-06-06 13:17:54 DEBUG (Thread-8) [libdyson.dyson_device] New environmental state: {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2021-06-06T05:17:54.000Z', 'data': {'tact': '2977', 'hact': '0072', 'pm25': '0078', 'pm10': '0071', 'va10': 'INIT', 'noxl': 'INIT', 'p25r': '0060', 'p10r': '0077', 'sltm': 'OFF'}} 2021-06-06 13:18:24 DEBUG (Thread-8) [libdyson.dyson_device] New environmental state: {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2021-06-06T05:18:24.000Z', 'data': {'tact': '2977', 'hact': '0071', 'pm25': '0078', 'pm10': '0069', 'va10': 'INIT', 'noxl': 'INIT', 'p25r': '0060', 'p10r': '0074', 'sltm': 'OFF'}} 2021-06-06 13:18:54 DEBUG (Thread-8) [libdyson.dyson_device] New environmental state: {'msg': 'ENVIRONMENTAL-CURRENT-SENSOR-DATA', 'time': '2021-06-06T05:18:54.000Z', 'data': {'tact': '2978', 'hact': '0070', 'pm25': '0078', 'pm10': '0070', 'va10': 'INIT', 'noxl': 'INIT', 'p25r': '0060', 'p10r': '0075', 'sltm': 'OFF'}} 2021-06-06 13:19:02 DEBUG (Thread-8) [libdyson.dyson_device] New state: {'msg': 'STATE-CHANGE', 'time': '2021-06-06T05:19:03.000Z', 'mode-reason': 'PRC', 'state-reason': 'MODE', 'product-state': {'fpwr': ['ON', 'ON'], 'auto': ['OFF', 'OFF'], 'oscs': ['ON', 'ON'], 'oson': ['ON', 'ON'], 'nmod': ['OFF', 'OFF'], 'rhtm': ['OFF', 'OFF'], 'fnst': ['FAN', 'FAN'], 'ercd': ['NONE', 'NONE'], 'wacd': ['NONE', 'NONE'], 'nmdv': ['0004', '0004'], 'fnsp': ['0004', '0004'], 'bril': ['0002', '0002'], 'corf': ['ON', 'ON'], 'cflr': ['0098', '0098'], 'hflr': ['0099', '0099'], 'cflt': ['CARF', 'CARF'], 'hflt': ['PHEP', 'PHEP'], 'sltm': ['OFF', 'OFF'], 'osal': ['0190', '0190'], 'osau': ['0235', '0235'], 'ancp': ['0090', '0350'], 'fdir': ['ON', 'ON']}, 'scheduler': {'srsc': '0000000000000000', 'dstv': '0000', 'tzid': '0001'}}

shenxn commented 3 years ago

So, when using this integration with mobile app, everything works. But if you change angles on the remote, the integration stops updating angles. Is that correct?

shenxn commented 3 years ago

Can you provide screenshots on the mobile app when you change angles in app and remote? How the app show its status?

mont3crysto commented 3 years ago

Sorry for intervening - and also if it isn't the right place to discuss my issue, but I can't change anymore the angles of my fan; is the feature being removed/deprecated or I'm encountering a bug of some sort?

Below some information, but feel free to ask me anything to help you (logs or whatever): Home Assistant version: 2021.3.4 Dyson model: Pure Cool TP04 HACS version: 1.13.2 Dyson Local version: 0.14.0

Thank you for developing this plugin; never had a problem since adopting it while with the official YAML integration I always had some issues.

shenxn commented 3 years ago

@mont3crysto There is no change to the angle functionality recently. Can you first try unplug and re-plug your fan? If it does not work, it is better to create a new issue for your problem.

nimitiz86 commented 1 year ago

Hello @shenxn, at first thanks for your great work :)

About this request/issue there is update? I will give you a screenshot about the oscillation/angle, if it can help. If there is a possible to integrate that, its perfect :).

Thanks again and have a nice day :) IMG_0861 IMG_0860 IMG_0864 IMG_0863 IMG_0862