phocus_sensors

package module
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2023 License: Zlib Imports: 7 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Worklow Status

phocus_sensors

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(version string) error

Register adds some sensors to Home Assistant MQTT version is the current version of the system, added in 1.1.1

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址