[DOCS] - integration switch (#817)
Use json insteal of simplePublishing / receiving
This commit is contained in:
1 parent
b2c05156b2
commit
8b34fbb904
1 file changed
+11
-14
@@ -86,20 +86,17 @@ binary_sensor:
|
|||||||
```yaml
|
```yaml
|
||||||
#switches
|
#switches
|
||||||
switch:
|
switch:
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: kaku_a2
|
name: Plug1
|
||||||
state_topic: "home/OpenMQTTGateway/commands/MQTTto433"
|
state_topic: "home/OpenMQTTGateway/SRFBtoMQTT"
|
||||||
command_topic: "home/OpenMQTTGateway/commands/MQTTto433"
|
command_topic: "home/OpenMQTTGateway/commands/MQTTtoSRFB"
|
||||||
payload_on: "16405"
|
value_template: "{{ value_json.value }}"
|
||||||
payload_off: "16404"
|
payload_on: '{"value":4546575}'
|
||||||
qos: "0"
|
payload_off: '{"value":4546572}'
|
||||||
retain: true
|
state_on: 4546575
|
||||||
|
state_off: 4546572
|
||||||
#pushbullet
|
qos: "0"
|
||||||
notify:
|
retain: true
|
||||||
- platform: pushbullet
|
|
||||||
name: hassio
|
|
||||||
api_key: <api_key>
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Mijia Thermometer BLE
|
### Mijia Thermometer BLE
|
||||||
|
|||||||
Reference in new issue
Block a user