enesbcs / shellyteacher4domo

Shelly device teacher for Domoticz MQTT Autodiscovery hardware
Apache License 2.0
10 stars 4 forks source link

Swap type and number on "uniq_id" in Shelly EM template #52

Open pikassent opened 5 months ago

pikassent commented 5 months ago

Hello,

More a request than an issue but, as suggested here, could be possible to swap the type and number/index on Shelly EM uniq_id template?

from "uniq_id": "%shelly_id%-power-1" to "uniq_id": "%shelly_id%-1-power" and from "uniq_id": "%shelly_id%-total-1" to "uniq_id": "%shelly_id%-1-total"

Thanks

enesbcs commented 5 months ago

Possible, but it can also be modified by yourself with a simple text editor -> this is the reason why i gave templates the .txt extension, to let users ruin their own systems as they wish.