mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-17 02:48:31 -07:00
Home Assistant: support multiendpoint for enum sensor
This commit is contained in:
parent
4d3e6eb11f
commit
a09bb3bc00
@ -603,7 +603,7 @@ class HomeAssistant extends Extension {
|
||||
|
||||
discoveryEntry = {
|
||||
type: 'sensor',
|
||||
object_id: expose.endpoint ? `sensor_${expose.endpoint}` : expose.name,
|
||||
object_id: expose.property,
|
||||
discovery_payload: {
|
||||
value_template: `{{ value_json.${expose.property} }}`,
|
||||
...lookup[expose.name],
|
||||
|
Loading…
Reference in New Issue
Block a user