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

Discovery and device topics are hardcoded #24

Open mikeS7 opened 1 year ago

mikeS7 commented 1 year ago

Could you please make discovery and device topics configurable.

Default values 'homeassistant' and 'ha-mqtt' are hardcoded.

DirkMu commented 1 year ago

Same for 'identifiers' and 'sw_version'.

mikeS7 commented 1 year ago

Same for 'identifiers' and 'sw_version'.

you can overwrite in device configuration: { "configuration_url": "http://xxx.yyy:1880/", "identifiers": "specialId", "manufacturer": "SuperPuper", "model": "Greatest-Sensor", "sw_version": "0.0.1" }

see code

DirkMu commented 1 year ago

Yes, you are right. It was not updated initially, yesterday. I re-tested it and finally I got it working. Thanks for the hint.

rlust commented 1 year ago

Has anyone been able to create a light device?