Tasmota MQTT strike lock setup

Tags: #<Tag:0x00007f739ea1a900>

Hi

I’m trying to use tasmota to control the mounted strike lock. I can LOCK / UNLOCK the door from HA but the status is not updated. I understand that HA MQTT Lock expects LOCK / UNLOCK and the incoming MQTT message from tasmota contains ON / OFF. My config is

lock:
- platform: mqtt
  name: "Indre dør garasje"
  state_topic: "stat/tasmota_lock_beerbrew/POWER"
  command_topic: "cmnd/tasmota_lock_beerbrew/power"
  payload_lock: "OFF"
  payload_unlock: "ON"
  optimistic: false
  qos: 1
  retain: true

Any suggestions on how to get the status update in HA and when the lock is locked the single push will unlock and reverse? :slight_smile:

Ok, solved it. Removed the “payload_lock” and “payload_unlock” and replaced them with the following below. Then I was able to use switch: instead :slight_smile:

switch:
- platform: mqtt
  name: "Indre dør garasje"
  state_topic: "stat/tasmota_lock_beerbrew/POWER"
  command_topic: "cmnd/tasmota_lock_beerbrew/power"
  payload_off: "OFF"
  payload_on: "ON"
  optimistic: false
  qos: 1
  retain: true