I have a Kogan 2S air filter (https://www.kogan.com/au/buy/kogan-smarterhome-4-stage-air-purifier-2s-with-h13-filter-130-cadr/). Its basically a fan with different data.
I have the on/off switch working, and the “filter remaining %” and the “timer minutes remaIning” values reporting with localTuya v3.01 which is great (thank you all), using this code:
- host: 192.168.1.xxx
device_id: xxx
local_key: xxx
friendly_name: Air Filter
protocol_version: "3.3"
entities:
- platform: switch
friendly_name: Air Filter Switch
id: 1
- platform: sensor
friendly_name: Filter Remaining
id: 5
unit_of_measurement: "%"
- platform: sensor
friendly_name: Air Filter Timer Remaining
id: 20
unit_of_measurement: "minutes"
These are all the DPs and their use:
'1': false, power off / on
'4': '3', fan speed, '1' = sleep, '2' = high, '3' = auto
'5': 97, remaining filter %
'11': false, unidentified, could be wifi connection related ??
'19': '1', timer value, '1' = no timer set, '4' = 4 hour timer set, '8' = 8 hour timer set
'20': 0, minutes remaining on timer, 0 = no timer set
'22': '1', air quality indicator ('1' = blue = excellent, '3' = orange/yellow = normal, ?? = red = poor)
'101': '2', status led brightness level, '1' = low, '2' = high, 'cancle' = off (yes the spelling is incorrect)
I would also like to be able to read the air quality indicator value (#22), and also read and control the fan speed (#4), the timer value (#19) and the LED brightness (#101).
Can anyone suggest where to go from here? As a beginner I have no idea how to read or set non-numeric sensor values.