WARNING:
plugin functionality
is beta code.

The [[[[[[[component-id]]]]]]] section

The following options are set by MQTTHomeAssistantConfig. These can easily be overriden in weewx.conf. Additional options can be set in weewx.conf.

device_class

The device_class of the component. This is set by looking up the value for the given WeeWX fieldname. The lookup ‘table’ can be found at the beginnng of the mqtthaconfig.py file.

state_class

The state_class of the component. This is set by looking up the value for the given WeeWX fieldname. The lookup ‘table’ can be found at the beginnng of the mqtthaconfig.py file.

unit_of_measureent

Defines the units of measurement of the component, if any. This is set by mapping the WeeWX unit to the HA unit. The lookup ‘table’ can be found near the beginnng of the mqtthaconfig.py file.

unique_id

An ID that uniquely identifies this component. Set to the device_id_component-id.

state_topic

The MQTT topic subscribed to receive component values. Set to the MQTTPublish topic the data is being published to.

value_template

Defines the template to extract the value.

For json payloads it is set to, {{ value_json."compoent-id" | default(this.state) }} For individual payloads it is set to {{ value }}

name

The name of the MQTT component. It defaults to the WeeWX label. If there is no WeeWX label, it is set to the component-id.

platform

It is set to sensor.