Allow setting device_id to main device on sensors #3237
-
Describe your core improvementIt would be great if I could set a Current limitationsRight now it can be only set to sub-devices or be omited. But omitting is not always possible in yaml, e.g. in shared packages. Technical benefitsIn a shared package it would open up the possibility to assign Example (assuming leaving
or other option (where "main" is always the id of the main device):
Additional contextI have some shared packages (1) which i would love to use the new sub-device feature. But i would like to make it optional. So i would love my package to have a var This is currently not possbile, because i cannot conditionally add the (1) https://github.com/danez/esphome-zendure-bridge/blob/v1/packages/hub2000.yaml |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
esphome/esphome#10217