更新了HA后,zigbee2mqtt不能用了
提示要在configuration.yaml 添加
mqtt:
sensor:
- state_topic: "home/bedroom/temperature"
我是这样编辑的 不知道对不对
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
mqtt:
sensor:
- state_topic: "home/bedroom/temperature"
sensor:
- platform: mqtt
name: j4125 cpu temp
icon: 'mdi:thermometer'
state_topic: 'pve/temp'
device_class: temperature
unit_of_measurement: "°C"
expire_after: "60"
|