Перейти к содержанию

Навигация

Home Assistant: различия между версиями

Строка 22: Строка 22:
recorder:
recorder:
   purge_keep_days: 14
   purge_keep_days: 14
mqtt:
  broker: "localhost"
  port: 1883


sensor:
sensor:
   - platform: mqtt
   - platform: mqtt
     name: "CPU Temperature"
     name: "CPU Temperature"
    unique_id: wb_cpu_temperature
     state_topic: "/devices/hwmon/controls/CPU Temperature"
     state_topic: "/devices/hwmon/controls/CPU Temperature"
     unit_of_measurement: "°C"
     unit_of_measurement: "°C"
switch:
  - platform: mqtt
    name: "Buzzer"
    unique_id: wb_buzzer
    command_topic: "/devices/buzzer/controls/enabled/on"
    state_topic: "/devices/buzzer/controls/enabled"
    payload_on: "1"
    payload_off: "0"
    state_on: "1"
    state_off: "0"
    optimistic: false
    qos: 0
    retain: true
</syntaxhighlight>
</syntaxhighlight>