FHEM Forum

FHEM - Hausautomations-Systeme => MQTT => Thema gestartet von: olivierbardot am 07 Februar 2023, 19:35:17

Titel: Best MQTT2 attrTemplate to use with Nous A1T smartplugs (Steckdosen mit Tasmota)
Beitrag von: olivierbardot am 07 Februar 2023, 19:35:17
Hello

I have included Nous A1T smartplugs configured with tasmota_pow attrTemplate

From your experience, is there a best FHEM pre-defined attrTemplate to use with these ?

Thanks for attention
Cheers
Olivier
Titel: Antw:Best MQTT2 attrTemplate to use with Nous A1T smartplugs (Steckdosen mit Tasmota)
Beitrag von: KernSani am 08 Februar 2023, 18:30:14
I'm using that as well (but usually adjust devstaticon and others) I recommend creating a "monotonic" userreading for ENERGY_TOTAL, otherwise you'll loose totals values when disconnecting or power loss (depends on your use case of course)

regards,

Oli
Titel: Antw:Best MQTT2 attrTemplate to use with Nous A1T smartplugs (Steckdosen mit Tasmota)
Beitrag von: olivierbardot am 08 Februar 2023, 20:34:59
Hello KerSani !
Thanks for the answer and the advice !

I noticed this problem with smartplugs and I used to create separate index dummies feeded by perl subs and related to ElectricityCalculator devices to avoid these lost data problems for my strategic smartplugs (for ex the ones of my solar installation monitoring).

I will try your monotonic userReading which may seem a more simple solution than mine !

Have a nice evening!
Olivier