Card.motion.mode response

My card.motion.mode request is: (I printed it out and the JSON came out in this order)
{‘seconds’: 15, ‘start’: True, ‘sensitivity’: 3, ‘motion’: 1, ‘req’: ‘card.motion.mode’}

And the response is:
{‘crc’: ‘0006:31D2856B’, ‘start’: True, ‘seconds’: 15, ‘motion’: 1}

The documentation says that an empty object {} means success. Is the sensitivity not being set?

I did see a post back in 2020 about sensitivity not being returned. But I’m just confused about that and the documentation on the return JSON.

Thanks,
Joe

@scavoj

I believe the documentation is out of date; in response to the card.motion.mode API, you should expect to see:

{"start":true,"seconds":15,"motion":1}

The additional crc is added by note-python, which incidentally is also out of date as this behaviour should be disable by default.

I’ve created tickets to fix both of these, thanks for highlighting the discrepencies!

Thanks,
Alex

1 Like