WeConnect
Toggle table of contents
0.2.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
WeConnect
WeConnect
/
rsdev.ovh.weconnect.ha
/
HaSensorDiscovery
Ha
Sensor
Discovery
@
Serializable
data
class
HaSensorDiscovery
(
val
name
:
String
,
val
stateTopic
:
String
,
val
uniqueId
:
String
,
val
device
:
HaMqttDevice
,
val
unitOfMeasurement
:
String
?
=
null
,
val
deviceClass
:
String
?
=
null
,
val
stateClass
:
String
?
=
null
,
val
icon
:
String
?
=
null
)
HA MQTT discovery payload for a
sensor
entity.
Members
Constructors
Ha
Sensor
Discovery
Link copied to clipboard
constructor
(
name
:
String
,
stateTopic
:
String
,
uniqueId
:
String
,
device
:
HaMqttDevice
,
unitOfMeasurement
:
String
?
=
null
,
deviceClass
:
String
?
=
null
,
stateClass
:
String
?
=
null
,
icon
:
String
?
=
null
)
Properties
device
Link copied to clipboard
val
device
:
HaMqttDevice
device
Class
Link copied to clipboard
@
SerialName
(
value
=
"device_class"
)
val
deviceClass
:
String
?
icon
Link copied to clipboard
val
icon
:
String
?
name
Link copied to clipboard
val
name
:
String
state
Class
Link copied to clipboard
@
SerialName
(
value
=
"state_class"
)
val
stateClass
:
String
?
state
Topic
Link copied to clipboard
@
SerialName
(
value
=
"state_topic"
)
val
stateTopic
:
String
unique
Id
Link copied to clipboard
@
SerialName
(
value
=
"unique_id"
)
val
uniqueId
:
String
unit
Of
Measurement
Link copied to clipboard
@
SerialName
(
value
=
"unit_of_measurement"
)
val
unitOfMeasurement
:
String
?