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
Setting the attribute URI_MAC to true results in extra MQTT endpoints for each camera: one with the MAC in uppercase, and one in lowercase, with each getting assigned only some of the available topics.
I'm not sure if this is directly related, or whether it should be 2 separate issues, but in my case, this appears to result in problems sending SET commands to cameras. I was able to see the various properties in my HA controls, and they would respond appropriately to changes made elsewhere (e.g., in the Wyze app, I could turn the status light off/on, and the toggle switch in HA would reflect that change), but I wasn't able to change anything via MQTT. Flipping a toggle would immediately revert to what it was before, even though I could see on MQTT Explorer that the publish command was sent to the broker. Additionally, I wasn't able to manually publish SET commands. I tried on both MQTT Explorer, and using mosquitto_pub locally on the broker CLI.
Strangely, this "secondary" issue only presented with local cameras. I also have a couple of cameras that are shared with me, and with those, I was able to issue SET commands just fine (even though I was still seeing the duplicate endpoints for those as well). The whole reason I had this setting enabled in the first place is because the name of one of those shared cameras conflicts with one of mine.
Another observation was that when attempting to change a property of a local (not working) camera, nothing appeared in the log, as if nothing was even attempted. When changing a property of a shared (working) camera, relevant entries did appear in the log, as such:
[front-porch-cam] [CONTROL] Attempting to SET: status_light=1
[front-porch-cam] [CONTROL] response=1
[front-porch-cam] [CONTROL] Attempting to SET: status_light=2
[front-porch-cam] [CONTROL] response=1
Steps to replicate:
Set URI_MAC to true
Connect to broker with MQTT Explorer (or admin tool of choice) and observe the "duplicate" endpoints
Attempt to toggle the camera status light:
Using the toggle switch in HA (assuming the device was picked up in discovery)
Sending a manual SET command in MQTT Explorer
Sending a manual SET command from the CLI (e.g., mosquitto_pub)
Observe in MQTT Explorer that the broker does receive the command from all test methods, but the property does not change.
Repeat the previous tests with a shared camera. The property should change.
Set URI_MAC to false
Repeat the tests. Note the lack of duplicate names in MQTT Explorer. All tests should now function properly.
Other things I tried before getting to this point:
Downgraded firmware on local camera to match that of a shared camera. No change.
Set up a different broker. My current one runs in a separate docker container. I disabled this and ran the HA addon. No change.
Set allow_anonymous in mosquitto.conf to true. No change.
Set WB_AUTH to false. No change.
Sent manual SET command to both the upper and lowercase endpoints. No difference.
Loving this project, thank you for everything you do! Let me know if you have any questions.
When URI_MAC=true, value returned from function name_uri appends the
MAC suffix as uppercase to an otherwise lowercase camera name (e.g.,
backyard-camera-ABCD). This results in "duplicate" MQTT endpoints;
one with a lowercase and one with an uppercase MAC suffix, causing
MQTT commands to fail. This fixes changes the function so that the
return result will be entirely lowercase.
Resolves: mrlt8#1382
BREAKING CHANGE:
URI change to all lowercase for consistency with current conventions
Users whose config includes URI_MAC=true will need to update URIs
Describe the bug
Setting the attribute URI_MAC to true results in extra MQTT endpoints for each camera: one with the MAC in uppercase, and one in lowercase, with each getting assigned only some of the available topics.
I'm not sure if this is directly related, or whether it should be 2 separate issues, but in my case, this appears to result in problems sending SET commands to cameras. I was able to see the various properties in my HA controls, and they would respond appropriately to changes made elsewhere (e.g., in the Wyze app, I could turn the status light off/on, and the toggle switch in HA would reflect that change), but I wasn't able to change anything via MQTT. Flipping a toggle would immediately revert to what it was before, even though I could see on MQTT Explorer that the publish command was sent to the broker. Additionally, I wasn't able to manually publish SET commands. I tried on both MQTT Explorer, and using mosquitto_pub locally on the broker CLI.
Strangely, this "secondary" issue only presented with local cameras. I also have a couple of cameras that are shared with me, and with those, I was able to issue SET commands just fine (even though I was still seeing the duplicate endpoints for those as well). The whole reason I had this setting enabled in the first place is because the name of one of those shared cameras conflicts with one of mine.
Another observation was that when attempting to change a property of a local (not working) camera, nothing appeared in the log, as if nothing was even attempted. When changing a property of a shared (working) camera, relevant entries did appear in the log, as such:
Steps to replicate:
Other things I tried before getting to this point:
Loving this project, thank you for everything you do! Let me know if you have any questions.
Affected Bridge Version
2.10.3
Bridge type
Home Assistant
Affected Camera(s)
No response
Affected Camera Firmware
No response
docker-compose or config (if applicable)
The text was updated successfully, but these errors were encountered: