alienatedsec / yi-hack-v5

Even newer Custom Firmware for Xiaomi Cameras based on Hi3518ev200 Chipset. It includes free RTSP, ONVIF and other improvements based on the work by roleoroleo
GNU General Public License v3.0
780 stars 87 forks source link

fix: Update MQTT camera_config command to be able to retain the stat… #370

Open Minims opened 6 months ago

Minims commented 6 months ago

Update MQTT camera_config command to be able to retain the state topic.

Currently if state topic is retain, the /set command is retain too and the command topic always applying the last command.

Without retain flag, state topic is lost on camera ou HA reboot.

This might fix the issue. Tested on my 27US.

github-actions[bot] commented 5 months ago

This pull request has been stale for 30 days - it will be closed within the next 7 days if not updated

github-actions[bot] commented 4 months ago

This pull request has been stale for 30 days - it will be closed within the next 7 days if not updated