You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Home Assistant Android version:
1.9.0-167 Android version:
10 Phone model:
Pixel 3 Home Assistant version:
0.111.4 Last working Home Assistant release (if known):
Description of problem:
When trying to create a widget to trigger the 'alarm_control_panel.alarm_disarm' service, the widget appears to function correctly but generates an 'invalid code' error in alarm log. Inspecting the logged webhook from the mobile_app shows the code field appears to be sent as a float, and I believe that fails the compare in the alarm panel. Traceback (if applicable):
2020-06-28 12:13:37 DEBUG (MainThread) [homeassistant.components.mobile_app.webhook] Received webhook payload for type call_service: {'domain': 'alarm_control_panel', 'service': 'alarm_disarm', 'service_data': {'code': 1234.0, 'entity_id': 'alarm_control_panel.home_alarm'}}
2020-06-28 12:13:37 WARNING (SyncWorker_11) [homeassistant.components.manual.alarm_control_panel] Invalid code given for disarmed
Screenshot of problem:
Additional information:
Alarm code in this example is: 1234
The text was updated successfully, but these errors were encountered:
* Widget service calls will fail, if a number for any field is used.
Because the GSON parser will parse every integer to a double.
This is especially a problem on the service alarm_control_panel.alarm_disarm
which needs a code to disarm the alarm panel.
So every code will be converted to .0 (eg. 1234 would be 1234.0)
Solution: Use Jackson instead of gson
GSON problem described here (not fixed):
google/gson#1084
Home Assistant Android version:
1.9.0-167
Android version:
10
Phone model:
Pixel 3
Home Assistant version:
0.111.4
Last working Home Assistant release (if known):
Description of problem:
When trying to create a widget to trigger the 'alarm_control_panel.alarm_disarm' service, the widget appears to function correctly but generates an 'invalid code' error in alarm log. Inspecting the logged webhook from the mobile_app shows the code field appears to be sent as a float, and I believe that fails the compare in the alarm panel.
Traceback (if applicable):
Screenshot of problem:
Additional information:
Alarm code in this example is: 1234
The text was updated successfully, but these errors were encountered: