From f584b5dcca2e2843fb0e8942e5c0db503e47a1af Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Sat, 21 Apr 2018 23:01:52 +0200 Subject: [PATCH] Add respond to button clicks example. --- support/docgen.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/support/docgen.js b/support/docgen.js index 4a029ea4..e17dd39a 100644 --- a/support/docgen.js +++ b/support/docgen.js @@ -127,6 +127,24 @@ text += ' discovery: true\n' text += '```\n' text += '\n\n' + +text += 'To respond to button clicks you can use the following home assistant configuration:\n' +text += '```yaml' +text += ` +automation: + - alias: Respond to button clicks + trigger: + platform: mqtt + topic: 'zigbee2mqtt/ {