Skip to content
This repository has been archived by the owner on Jun 18, 2022. It is now read-only.

Error processing webhook in Home Assistant #211

Open
vazquezjm opened this issue Jun 9, 2020 · 0 comments
Open

Error processing webhook in Home Assistant #211

vazquezjm opened this issue Jun 9, 2020 · 0 comments

Comments

@vazquezjm
Copy link

Hi!

As per the docs (https://doc.kerberos.io/opensource/machinery#output-1), the payload of the JSON has this format:

[
'regionCoordinates' : [618, 317, 703, 493],
'numberOfChanges' : 5446,
'timestamp' : '1465894497',
'microseconds' : '5-97451',
'token' : 695,
'pathToImage' : '1465894497_5-97451_frontdoor_618-317-703-493_5446_695.jpg',
'instanceName' : 'frontdoor',
]

(single quotes)

BTW: the last key/value pair in the example has an ending comma and JSON object is not surrounded by curly braces {}

When I try to trigger an automation in Home Assistant, I get an error about the quotes (requires double quotes), so if I change the example payload to what is shown below, automation works fine (tried on an API test tool):

{
"regionCoordinates" : [618, 317, 703, 493],
"numberOfChanges" : 5446,
"timestamp" : "1465894497",
"microseconds" : "5-97451",
"token" : 695,
"pathToImage" : "1465894497_5-97451_frontdoor_618-317-703-493_5446_695.jpg",
"instanceName" : "frontdoor"
}

How can I have Kerberos to send single quotes?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant