-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtelegram2mqtt.yml
39 lines (37 loc) · 1.01 KB
/
telegram2mqtt.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
mqtt:
url: "tcp://<MQTT SERVER>:1883"
username: <MQTT USERNAME>
password: <MQTT PASSWORD>
qos: 0
retain: false
telegram:
api_key: <Botfather Token>
chat_id: <CHATID, get with telegram command /info>
commands:
- command: /light1
mqtt-topic: rfxcom2mqtt/command/Switch1
- command: /light2on
mqtt-topic: rfxcom2mqtt/command/Switch2
mqtt-message: on
- command: /light2off
mqtt-topic: rfxcom2mqtt/command/Switch2
mqtt-message: off
- command: /lights
keyboard-title: Select Light
keyboard:
- id: light_1_on
title: Light1 on
mqtt-topic: zigbee2mqtt/switch_1/set/state
mqtt-message: ON
- id: light_1_off
title: Light1 off
mqtt-topic: zigbee2mqtt/switch_1/set/state
mqtt-message: OFF
- id: light_2_on
title: Light2 on
mqtt-topic: zigbee2mqtt/switch_2/set/state
mqtt-message: ON
- id: light_2_off
title: Light2 off
mqtt-topic: zigbee2mqtt/switch_2/set/state
mqtt-message: OFF