From 1aef22eb424a2224711d4e291e06c22171c3da51 Mon Sep 17 00:00:00 2001 From: Ben Campbell Date: Mon, 18 Mar 2024 19:14:29 +0000 Subject: [PATCH] HomeAssistant MQTT example --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index dc7fa5e..48ef818 100644 --- a/README.md +++ b/README.md @@ -367,3 +367,17 @@ The coffee machine needs a better mapping to MQTT messages. ## FRIDA tools Moved to [`README-frida.md`](README-frida.md) + +# HomeAssistant + +The following is an example mqtt.yaml configuration to setup a Cooker Hood as a fan entity: + +```fan: + - name: "Hood" + state_topic: "homeconnect/hood/state" + state_value_template: "{{ value_json.PowerState }}" + command_topic: "homeconnect/hood/set" + command_template: "{{ iif(value == 'On', '{\"uid\":539,\"value\":2}', '{\"uid\":539,\"value\":1}') }}" + payload_on: "On" + payload_off: "Off" +```