seydx / homebridge-camera-ui

Homebridge plugin for RTSP Cameras with HSV, motion detection support, Image Rekognition, Web UI to manage/watch streams and WebApp support
MIT License
644 stars 91 forks source link

MQTT JSON issues for doorbell messages #847

Open Eiluviann opened 12 months ago

Eiluviann commented 12 months ago

Describe the bug MQTT message is sent as a JSON object. When a JSON object is provided as doorbellMessage in config, message is skipped because it is looking for a full plaintext match rather than specific value in JSON object as expected.

To Reproduce

  1. Enable doorbell for a camera
  2. Set topic for the doorbell MQTT message, set MQTT message to JSON object (via JSON config)
  3. Send MQTT message matching the configured topic with a JSON payload that should trigger the doorbell
  4. Log message appears saying that message does not match (configured message appears as [object Object])

Expected behavior JSON object provided in doorbellMessage should be compared with incoming message. If incoming message is JSON and contains appropriate properties with appropriate values - doorbell should be triggered

Logs (not available at the moment as I have switched to plain text)

Screenshots N/A

Environment

mkz212 commented 2 months ago

🎉 A new version of camera.ui

A new version of camera.ui is currently under active development. An initial alpha/beta release and previews are coming soon. Stay tuned for exciting updates: https://github.com/seydx/camera.ui/issues/448 .

This version will no longer be developed / fixed. The new version contains many novelties and fixes (most important is for HKSV recording).