SHARE
TWEET

mqtt.things

a guest Jun 19th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Bridge mqtt:broker:mosquitto "MQTT Broker" @ "RasPI"
  2. [
  3.     host="192.168.1.72",
  4.     port=1883,
  5.     secure=false
  6. ] {
  7.     Thing topic thermostat "Thermostat" @ "Living room" {
  8.         Channels:
  9.             Type number : Temperature "Temperature" [stateTopic = "home/thermostat/sensor/temperature"]
  10.             Type number : Target_temperature "Target temperature" [stateTopic = "home/thermostat/sensor/target-temperature", commandTopic="home/thermostat/sensor/target-temperature/set", min=5, max=35, step=0.5]
  11.             Type switch : Status "Status" [stateTopic = "home/thermostat/sensor/status", commandTopic="home/thermostat/sensor/status/set", on="true", off="false"]
  12.             Type switch : Manual "Manual/Scheduled" [stateTopic = "home/thermostat/sensor/manual", commandTopic="home/thermostat/sensor/manual/set"]
  13.             Type switch : Eco "Eco mode" [stateTopic = "home/thermostat/sensor/eco", commandTopic="home/thermostat/sensor/eco/set", on="true", off="false"]
  14.             Type switch : Lock "Lock" [stateTopic = "home/thermostat/sensor/lock", commandTopic="home/thermostat/sensor/lock/set", on="true", off="false"]
  15.     }
  16.     Thing topic door_sensor "Door sensor" @ "Entrance" {
  17.         Channels:
  18.             Type contact : Door "Door" [stateTopic = "zigbee2mqtt/home/entrance/door", transformationPattern="JSONPATH:$.contact", on="false", off="true"]
  19.             Type number : Battery "Battery" [stateTopic = "zigbee2mqtt/home/entrance/door", transformationPattern="JSONPATH:$.battery"]
  20.     }
  21.     Thing topic motion_sensor_livingroom "Motion sensor" @ "Living room"{
  22.         Channels:
  23.             Type contact : MotionSensor "Motion sensor" [stateTopic="zigbee2mqtt/home/livingroom/motion", transformationPattern="JSONPATH:$.occupancy", on="true", off="false"]
  24.     }
  25.     Thing topic temperature_bedroom "Temperature" @ "Bedroom"{
  26.         Channels:
  27.             Type number : Temperature "Temperature" [
  28.                 stateTopic="zigbee2mqtt/home/bedroom/temperature",
  29.                 transformationPattern="JSONPATH:$.temperature"
  30.             ]
  31.             Type number : Humidity "Humidity" [
  32.                 stateTopic="zigbee2mqtt/home/bedroom/temperature",
  33.                 transformationPattern="JSONPATH:$.humidity"
  34.             ]
  35.             Type number : Pressure "Pressure" [
  36.                 stateTopic="zigbee2mqtt/home/bedroom/temperature",
  37.                 transformationPattern="JSONPATH:$.pressure"
  38.             ]
  39.             Type number : Battery "Battery" [stateTopic = "zigbee2mqtt/home/bedroom/temperature", transformationPattern="JSONPATH:$.battery"]
  40.     }
  41.     Thing topic switch_kicthen_led "LED bar switch" @ "Kitchen"{
  42.         Channels:
  43.             Type switch : LEDBar "LED bar switch" [stateTopic="home/plug/kitchen-01/status", commandTopic="home/plug/kitchen-01/status/set", on="true", off="false"]
  44.     }
  45.     Thing topic sonoff_h801 "Sonoff H801" @ "Side terrace" {
  46.         Channels:
  47.             Type string   : reachable  "Reachable"            [ stateTopic="home/sonoff/tele/side-terrace/LWT" ]
  48.             Type switch   : power      "Power"                [ stateTopic="home/sonoff/stat/side-terrace/POWER", commandTopic="home/sonoff/cmnd/side-terrace/POWER" ]
  49.             Type switch   : fade       "Fade"                 [ stateTopic="home/sonoff/tele/side-terrace/STATE", commandTopic="home/sonoff/cmnd/side-terrace/FADE", transformationPattern="JSONPATH:$.Fade" ]
  50.             Type dimmer   : dimmer     "Dimmer"               [ stateTopic="home/sonoff/tele/side-terrace/STATE", commandTopic="home/sonoff/cmnd/side-terrace/DIMMER", transformationPattern="JSONPATH:$.Dimmer" ]
  51.             Type string   : mode       "Mode"                 [ stateTopic="home/sonoff/tele/side-terrace/STATE", commandTopic="home/sonoff/cmnd/side-terrace/SCHEME", transformationPattern="JSONPATH:$.Scheme" ]
  52.             Type colorHSB : colour     "Colour"               [ stateTopic="home/sonoff/tele/side-terrace/STATE", commandTopic="home/sonoff/cmnd/side-terrace/HSBColor", transformationPattern="JSONPATH:$.HSBColor" ]
  53.             Type number   : rssi       "WiFi Signal Strength" [ stateTopic="home/sonoff/tele/side-terrace/STATE", transformationPattern="JSONPATH:$.Wifi.RSSI"]
  54.     }
  55. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top