Shelly 1PM internal temp

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
kin
New user
Posts: 2
Joined: 05 Dec 2020, 21:04

Shelly 1PM internal temp

#1 Post by kin » 05 Dec 2020, 21:27

I recently migrated a Shelly 1PM to ESPEasy and currently trying to convert the voltage value of internal temperature provided on the analog input on ADC.
I found the formula for Shelly 2.5 from tasmota:
Adding Analog Temperature support for Shelly 2.5
https://git.koehlerweb.org/frodovdr/Son ... 18e6bb61a4
Now i am struggling to calculate it directly on ESPEasy, as the formula length is too long and also i am missing logarithm function.
So my question is if there is any option to convert the received voltage value to temperature directly on ESPEasy?
Any suggestions are greatly appreciated.
Thanks
Kin

TD-er
Core team member
Posts: 9900
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Shelly 1PM internal temp

#2 Post by TD-er » 05 Dec 2020, 21:35

You could try to plot the function and see what usable range you need.
Simply drawing a straight line through the points at 25% and 75% of that range in temperature is probably a good estimate with the smallest error over that range.

Right now we don't have the log function in the rules.

kin
New user
Posts: 2
Joined: 05 Dec 2020, 21:04

Re: Shelly 1PM internal temp

#3 Post by kin » 05 Dec 2020, 21:44

Thanks for the prompt reply.
Ok, than hopefully in some future releases this could be added in the source to have separate calculation for shelly devices.
Regards,
Kin

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests