I want to extend information for the Shelly Plus Add-On Temperature Sensor (SHELLYPLUSADDON) (https://templates.blakadder.com/shelly_plus_add-on.html), and I have some question on how this should be handled.
This device is a bit special as it is not useful on its own, but needs a base device to function. It can be put on several base devices like the Shelly Plus 1PM, or the Shelly 1 Gen4, among others. Each of the base devices have their own templates, and are the device you actually put tasmota onto. The add-on uses four GPIO on the base device, and of course they're different for each base device.
There are two ways the add-on can be supported in Tasmota.
-
The base device template designates the four GPIO as "User", and the correct settings need to be made in the "Configuration -> Module" (web interface), or gpioX commands (CLI). I believe this is the way Tasmota envisions this to be done, but this is a bit awkward for users, especially if they're not very familiar with the module feature.
-
The database treats "base device" and "base device + Add-on" as two separate devices, and provides template strings for both. The "base device + Add-on" would set the four additional GPIO to the appropriate values. This is easier for users, as they just need to copy a template string, as before. The current database entry for the addon follows this pattern, except that it does not specify for which base device it acually is.
I'd appreciate some guidance on the correct way, I have the correct settings for the Shelly 1 Gen4 and the add-on on top of it, both of which are missing from the DB.
I want to extend information for the Shelly Plus Add-On Temperature Sensor (SHELLYPLUSADDON) (https://templates.blakadder.com/shelly_plus_add-on.html), and I have some question on how this should be handled.
This device is a bit special as it is not useful on its own, but needs a base device to function. It can be put on several base devices like the Shelly Plus 1PM, or the Shelly 1 Gen4, among others. Each of the base devices have their own templates, and are the device you actually put tasmota onto. The add-on uses four GPIO on the base device, and of course they're different for each base device.
There are two ways the add-on can be supported in Tasmota.
The base device template designates the four GPIO as "User", and the correct settings need to be made in the "Configuration -> Module" (web interface), or
gpioXcommands (CLI). I believe this is the way Tasmota envisions this to be done, but this is a bit awkward for users, especially if they're not very familiar with the module feature.The database treats "base device" and "base device + Add-on" as two separate devices, and provides template strings for both. The "base device + Add-on" would set the four additional GPIO to the appropriate values. This is easier for users, as they just need to copy a template string, as before. The current database entry for the addon follows this pattern, except that it does not specify for which base device it acually is.
I'd appreciate some guidance on the correct way, I have the correct settings for the Shelly 1 Gen4 and the add-on on top of it, both of which are missing from the DB.