Update lock.mqtt example with state_locked and state_unlocked (#12533)

* Update lock.mqtt for reflect breaking change

Had an issue with my HASS not working with locks. Turns out the docs didn't reflect the new "state_lock" and "state_unlock" payload breaking change mentioned here: https://www.home-assistant.io/blog/2020/01/15/release-104/#breaking-changes

Is it worth getting rid of the old payload_lock payload_unlocked states and changing them in the example?

* Forgot "ed" in the example

* Put payload_lock/unlock back in

Let's have both the payload_lock/unlock back in the example along with state_locked/unlocked.
This commit is contained in:
Ryan Warner 2020-04-12 05:18:25 -04:00 committed by GitHub
parent 8d19950841
commit b84f596358
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,6 +165,8 @@ lock:
command_topic: "home-assistant/frontdoor/set"
payload_lock: "LOCK"
payload_unlock: "UNLOCK"
state_locked: "LOCK"
state_unlocked: "UNLOCK"
optimistic: false
qos: 1
retain: true