I need to add a new MQTT Sensor.
But it´s always giving me an error!!
I followed the fixtse_com tutorial.
But now I have this error!
Detalhes do log (ERRO)
Logger: homeassistant.setup
Source: setup.py:221
First occurred: 13:45:46 (1 occurrences)
Last logged: 13:45:46
Setup failed for ‘command_line’: Invalid config.
Detalhes do log (ERRO)
Logger: homeassistant.config
Source: config.py:1195
First occurred: 13:45:46 (1 occurrences)
Last logged: 13:45:46
Invalid config for ‘command_line’ at configuration.yaml, line 25: ‘platform’ is an invalid option for ‘command_line’, check: command_line->1->platform, please check the docs at
My Config file is below
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
# Text to speech
tts:
- platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
command_line:
- sensor:
name: CPU Temp
command: 'cat /sys/class/thermal/thermal_zone0/temp'
unit_of_measurement: '°C'
value_template: '{{ value | multiply(0.001) }}'
#new sensor
- platform: mqtt_room
device_id: "iBeacon:123"
name: 'S21U'
state_topic: 'espresense/devices/iBeacon:123'
timeout: 10
away_timeout: 20
light:
- platform: rpi_gpio_pwm
leds:
- name: RPI Cooling Fan
pin: 14