Hi,
I am trying to set the HA as MQTT data collector, logger, and controller. This should be typical use for HA.
I configured 3 sensors which receive data from power meter:
sensor:
- platform: mqtt
state_topic: "shm/hub/power/main/phase/0"
name: "Power phase 0"
unit_of_measurement: 'mA'
- platform: mqtt
state_topic: "shm/hub/power/main/phase/1"
name: "Power phase 1"
unit_of_measurement: 'mA'
- platform: mqtt
state_topic: "shm/hub/power/main/phase/2"
name: "Power phase 2"
unit_of_measurement: 'mA'
group:
power_sensor:
name: Power monitor
entities:
- sensor.power_phase_0
- sensor.power_phase_1
- sensor.power_phase_2
Tested with mosquitto_sub on the Raspberry which is running HA and the MQTT data arrives OK:
shm/hub/power/main/phase/2 1142
shm/hub/power/main/phase/1 140
shm/hub/power/main/phase/0 643
The error I get when starting HA is:
2018-02-03 15:15:57 ERROR (Thread-2) [homeassistant.util.yaml] mapping values are not allowed here
in "/home/pi/.homeassistant/configuration.yaml", line 107, column 15
2018-02-03 15:15:57 ERROR (MainThread) [homeassistant.bootstrap] Error loading
/home/pi/.homeassistant/configuration.yaml: mapping values are not allowed here
in "/home/pi/.homeassistant/configuration.yaml", line 107, column 15
Tried to follow:
- https://home-assistant.io/components/sensor.template/
-
https://home-assistant.io/docs/configuration/devices/#grouping-devices
No luck.
Advice appreciated.