shaonianzhentan / node-red-contrib-ha-mqtt

在HomeAssistant中生成MQTT实体
https://github.com/shaonianzhentan/node-red-contrib-ha-mqtt
MIT License
37 stars 19 forks source link

Sensor node unit of measurement #25

Closed DirkMu closed 1 year ago

DirkMu commented 1 year ago

Thanks for your work. It really simplifies the creation of entities and devices.

I am using a sensor node which is supposed to represent a string. That is why I left unit of measurement blank. However unit of measurement is created with the sensor in HA. Can you please adapt the logic accordingly. When unit of measurement is not specified it is not supposed to be used at all.

shaonianzhentan commented 1 year ago

29 fixed