April 3Apr 3 I have an mqtt topic in frigate set as a switch: - id: "drivedet" name: "driveway detect" type: "switch" sensor_id: "detect" status_topic: "frigate/driveway/detect/state" cmd_topic: "frigate/driveway/detect/set" I can set this to True or False in the admin panel or a program, but when I query the node, the message gets deleted in MQTT Explorer and the setting in Frigate goes to False. For now this is the reason why I am not going to use or rely on the MQTT Node Server and use python network resources instead. Can't risk the eISY running a query and wiping out all the topics. Is there a way to not allow this to happen? Edited April 3Apr 3 by heardc
April 3Apr 3 Hello @heardc, Thanks for reaching out. The MQTT plug-in was originally designed to control Tasmota-flashed devices like SonOff. Some creative users have figured out that it can also work with ESPHome. You are the first to try it with Frigate! A few pointers to try and get it to work: If you have the device type configured as "switch", sensor_id will be ignored. sensor_id is for "analog" types only (see bottom of Configuration notes) 45 minutes ago, heardc said: I have an mqtt topic in frigate set as a switch: - id: "drivedet" name: "driveway detect" type: "switch" sensor_id: "detect" status_topic: "frigate/driveway/detect/state" cmd_topic: "frigate/driveway/detect/set" Not familiar with Frigate's naming conventions. In Tasmota the ID is used in the message, not the NAME. I'd try something like this: - id: "drivedet" name: "driveway detect" type: "switch" status_topic: "frigate/drivedet/detect/state" cmd_topic: "frigate/drivedet/detect/set" The MQTT plug-in will be listening to its messages and look for a topic "frigate/drivedet/detect/state" being sent by frigate (or your camera). If it matches that topic EXACTLY, it'll look at the value of ON/OFF. Likewise, if you click to SET, it will SEND a message with the topic cmd_topic: "frigate/drivedet/detect/set"... QUERY really wouldn't work here, because it is customized for TASMOTA. It sends a topic requesting information, which is completely different from status_topic or cmd_topic. It seems rather unusual that an MQTT plug-in generated message would delete anything, especially that the topic sent by the plug-in is highly unlikely to match a topic monitored by Frigate. Is there a way for you to monitor the MQTT messages being picked up by the Frigate? Cheers.
Create an account or sign in to comment