• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tfa30 temperature-offset not working
#1
I have a tfa30 temp sensor and want to use temperature-offset in device settings:

{
    "devices": {
        "pooltemp": {
            "protocol": [ "tfa30" ],
            "id": [{
                "id": 120
            }],
            "temperature": 10.0,
            "humidity": 0.0,
            "temperature-offset": -5.0
        },
.
.
.

How to make it work? I tested temperature-offset also with protocol cpu_temp on my raspi, also not working ...

Werner
 
Reply
#2
Sure, it is late. Maybe too late for you, but to save others (like me) the hassle:

offset-temperature is working but the scale is different than that of e.g. humidity-offset.

For CPU temperature it is millidegree. So you have to multiply your offset (in °C) by 1000.

For weather temperature it is decidegree. So you have to multiply your offset (in °C) by 100.
(Not sure if that applies to all weather data senders or whether it depends on the sender's resolution.)

Took me a while crawling the source code to understand this. Maybe a good point to mention in the docs. Or maybe I'm just dumb (or blind).

So your config should have been:


Code:
{
    "devices": {
        "pooltemp": {
            "protocol": [ "tfa30" ],
            "id": [{
                "id": 120
            }],
            "temperature": 10.0,
            "humidity": 0.0,
            "temperature-offset": -500
        },

HTH.

Forgot to add: Great Project! Thanks for keeping it up!
 
Reply
#3
Do you have the possiblity to do a PR with these mentions in the manual?
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  After upgrading 7.0 to 8.1.5 my flamingo SF-501P switches stopped working. gerrit312 23 2,061 04-30-2020, 02:58 PM
Last Post: ayeyebrazov
  pilight 8.1.5 not working on Raspberry pi after reboot beejayf 4 839 03-08-2020, 12:14 AM
Last Post: beejayf
  filter stopped working after update to pilight 8.1.5 zlin50 19 2,005 01-03-2020, 02:15 PM
Last Post: curlymo
  8.1.5 quietly stops working hepcat72 4 558 12-23-2019, 03:24 PM
Last Post: hepcat72
  [Fixed] RaspberryPi4 pilight 8.1.5 - Send isn't working DominikB1993 4 1,031 10-18-2019, 10:25 PM
Last Post: DominikB1993
  pilight-receive Filteroption not working Alex 2 1,043 07-14-2019, 08:35 AM
Last Post: Alex
  pilight-flash not working danny 9 1,374 04-27-2019, 09:02 PM
Last Post: curlymo
  pilight not working with fresh Openhab 2 image habitoti 2 845 01-24-2019, 08:44 PM
Last Post: habitoti
  tfa30 parseRaw failure with Auriol happy 3 757 01-02-2019, 05:39 PM
Last Post: curlymo
  The switches working only in one special order Pikeman 4 883 10-13-2018, 04:35 PM
Last Post: Pikeman

Forum Jump:


Browsing: 1 Guest(s)