Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Sensor ¶
type Sensor struct {
SensorTopic string // "homeassistant/sensor/phocus/start_time/config" must end in /config
UniqueId string // "unique_id": "phocus_qpgs1_ac_output_apparent_power",
Unit units.Unit // "unit_of_measurement": "VA",
StateClass state_classes.StateClass // "state_class": "measurement",
DeviceClass device_classes.DeviceClass // "device_class": "apparent_power",
Name string // "name": "QPGS1 AC Output Apparent Power",
ValueTemplate string // "value_template": "{{ value_json.ACOutputApparentPower }}",
StateTopic string // "state_topic": "phocus/stats/qpgs1",
Icon string // "icon": "mdi:battery",
}
Sensor is the shape of the sensor for the MQTT Home Assistant integration
Click to show internal directories.
Click to hide internal directories.