Skip to content

Keypad Vision all sensors unknown / Cannot read properties of undefined (reading 'convertToStatus') #81

Description

@ahaghshenas

I have an issue with keypad vision, all sensors are showing unknown.

Info from the log:

trce: SwitchBotMqttApp.Logics.SwitchBotApiClient[0] Response GET,https://api.switch-bot.com/v1.1/devices/B0xxxxxxxx20/status,{"statusCode":190,"body":{},"message":"Cannot read properties of undefined (reading 'convertToStatus')"}

fail: SwitchBotMqttApp.Services.MqttCoreService[0] polling KeypadVision,B0xxxxxxxx20 System.ApplicationException: {"statusCode":190,"body":{},"message":"Cannot read properties of undefined (reading 'convertToStatus')"} at SwitchBotMqttApp.Logics.SwitchBotApiClient.SendAndEnsureSuccessAsync[TBody](HttpRequestMessage requestMessage, CancellationToken cancellationToken, Int32[] additionalStatus, String bodyForLogging) in /home/runner/work/switchbot-mqtt/switchbot-mqtt/src/SwitchBotMqttApp/Logics/SwitchBotApiClient.cs:line 146 at SwitchBotMqttApp.Logics.SwitchBotApiClient.GetDeviceStatus(String deviceId, CancellationToken cancellationToken) in /home/runner/work/switchbot-mqtt/switchbot-mqtt/src/SwitchBotMqttApp/Logics/SwitchBotApiClient.cs:line 47 at SwitchBotMqttApp.Services.MqttCoreService.PollingAndPublishStatusAsync(PhysicalDevice physicalDevice, CancellationToken cancellationToken) in /home/runner/work/switchbot-mqtt/switchbot-mqtt/src/SwitchBotMqttApp/Services/MqttCoreService.cs:line 605

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions