Advertisement
Guest User

Untitled

a guest
Nov 28th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.37 KB | None | 0 0
  1. #I config:
  2. mqtt:
  3.  broker: 192.168.1.147
  4.  port: 1883
  5.  client_id: home_assistant-1
  6.  username: !secret mqtt_username
  7.  password: !secret mqtt_password
  8.  
  9.  
  10. # Min switch
  11. switch:
  12.   - platform: mqtt
  13.     name: Kitchen window
  14.     state_topic: "kitchen/cmd"
  15.     command_topic: "kitchen/gpio/12"  
  16.     payload_on: "GPIO,12,1"
  17.     payload_off: "GPIO,12,0"
  18.     retain: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement