Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMF870: preferred index value is incorrect #230

Open
THETCR opened this issue Dec 14, 2024 · 9 comments · Fixed by #232
Open

AMF870: preferred index value is incorrect #230

THETCR opened this issue Dec 14, 2024 · 9 comments · Fixed by #232
Assignees
Labels
bug Something isn't working

Comments

@THETCR
Copy link

THETCR commented Dec 14, 2024

The AMF870 preferred index has no selected value in Home Assistant.
When choosing any of the options it is set to the Indoor Allergen Index on the device and the select input in Home Assistant loses its value again.

@kongo09
Copy link
Owner

kongo09 commented Dec 14, 2024

Thanks for reporting this. Can you please run aioairctrl as described in the README and share one reading for each index

@kongo09 kongo09 added the bug Something isn't working label Dec 14, 2024
@flanaras
Copy link

flanaras commented Dec 20, 2024

I have the same issue with a different device (AC0951/13).

If you prefer I can open an new issue for this.

Following you will find the aioairctrl info:

indoor_allergen_index

{
  "D01102": 0,
  "D01S03": "Device",
  "D01S04": "Unicorn",
  "D01S05": "AC0951/13",
  "D01107": 0,
  "D01108": 3,
  "D01109": 3,
  "D0110A": 0,
  "D0110B": 0,
  "D0110C": 18,
  "D01S0D": "688001001369",
  "D0110F": 3,
  "D01S12": "0.3.3",
  "D01213": 0,
  "ProductId": "xxx",
  "DeviceId": "xxx",
  "otacheck": false,
  "Runtime": 94917672,
  "rssi": -40,
  "wifilog": false,
  "blelog": false,
  "free_memory": 156144,
  "WifiVersion": "[email protected]",
  "StatusType": "status",
  "ConnectType": "Online",
  "D03102": 1,
  "D03103": 0,
  "D03104": 115,
  "D03105": 115,
  "D0310A": 2,
  "D0310C": 0,
  "D0310D": 1,
  "D03110": 0,
  "D03211": 0,
  "D03120": 2,
  "D03221": 7,
  "D0312A": 0,
  "D0312B": 0,
  "D0312C": 7,
  "D03130": 0,
  "D03134": 1,
  "D03136": 0,
  "D03240": 0,
  "aqit_ext": 0,
  "D05207": 720,
  "D05408": 9600,
  "D0520D": 300,
  "D0540E": 8904
}

pm25

{
  "D01102": 0,
  "D01S03": "Device",
  "D01S04": "Unicorn",
  "D01S05": "AC0951/13",
  "D01107": 0,
  "D01108": 3,
  "D01109": 3,
  "D0110A": 0,
  "D0110B": 0,
  "D0110C": 18,
  "D01S0D": "688001001369",
  "D0110F": 3,
  "D01S12": "0.3.3",
  "D01213": 0,
  "ProductId": "xxx",
  "DeviceId": "xxx",
  "otacheck": false,
  "Runtime": 94979460,
  "rssi": -40,
  "wifilog": false,
  "blelog": false,
  "free_memory": 156144,
  "WifiVersion": "[email protected]",
  "StatusType": "status",
  "ConnectType": "Online",
  "D03102": 1,
  "D03103": 0,
  "D03104": 115,
  "D03105": 115,
  "D0310A": 2,
  "D0310C": 0,
  "D0310D": 1,
  "D03110": 0,
  "D03211": 0,
  "D03120": 2,
  "D03221": 8,
  "D0312A": 0,
  "D0312B": 0,
  "D0312C": 7,
  "D03130": 0,
  "D03134": 1,
  "D03136": 0,
  "D03240": 0,
  "aqit_ext": 0,
  "D05207": 720,
  "D05408": 9600,
  "D0520D": 300,
  "D0540E": 8904
}

gas_level

{
  "D01102": 0,
  "D01S03": "Device",
  "D01S04": "Unicorn",
  "D01S05": "AC0951/13",
  "D01107": 0,
  "D01108": 3,
  "D01109": 3,
  "D0110A": 0,
  "D0110B": 0,
  "D0110C": 18,
  "D01S0D": "688001001369",
  "D0110F": 3,
  "D01S12": "0.3.3",
  "D01213": 0,
  "ProductId": "xxx",
  "DeviceId": "xxx",
  "otacheck": false,
  "Runtime": 95048754,
  "rssi": -40,
  "wifilog": false,
  "blelog": false,
  "free_memory": 155856,
  "WifiVersion": "[email protected]",
  "StatusType": "status",
  "ConnectType": "Online",
  "D03102": 1,
  "D03103": 0,
  "D03104": 115,
  "D03105": 115,
  "D0310A": 2,
  "D0310C": 0,
  "D0310D": 1,
  "D03110": 0,
  "D03211": 0,
  "D03120": 1,
  "D03221": 4,
  "D0312A": 0,
  "D0312B": 0,
  "D0312C": 7,
  "D03130": 0,
  "D03134": 1,
  "D03136": 0,
  "D03240": 0,
  "aqit_ext": 0,
  "D05207": 720,
  "D05408": 9600,
  "D0520D": 300,
  "D0540E": 8904
}

@kongo09 kongo09 self-assigned this Dec 20, 2024
@kongo09
Copy link
Owner

kongo09 commented Dec 20, 2024

Thank you for the data. Both devices use the same logic, so that's very helpful! I'll take a look at this.

@kongo09
Copy link
Owner

kongo09 commented Dec 20, 2024

The field should be D0312A but it is the same in all three examples. That's strange.

@kongo09
Copy link
Owner

kongo09 commented Dec 20, 2024

Can you please try v0.34.1-index.beta.1 and check if this fixes the issue?

@flanaras
Copy link

flanaras commented Dec 20, 2024

The updated version seems to have fixed the issue. Thanks for the fast resolution.

@kongo09
Copy link
Owner

kongo09 commented Dec 20, 2024

Wonderful. Glad it works. I'll stick this into the next proper release.

If you like my work, I'd appreciate if you get me a coffee.

Merry Christmas.

@kongo09 kongo09 closed this as completed Dec 20, 2024
@kongo09 kongo09 linked a pull request Dec 20, 2024 that will close this issue
@THETCR
Copy link
Author

THETCR commented Dec 24, 2024

@kongo09
Unfortunately the issue for the AMF870 isn't fixed in the latest beta that includes #232

@kongo09
Copy link
Owner

kongo09 commented Jan 6, 2025

I'll take another look

@kongo09 kongo09 reopened this Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants