• 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
  ping not working, am I missing something? steffeneilers 2 355 02-03-2021, 08:09 PM
Last Post: steffeneilers
Lightbulb working MQTT in version v8.1.5-nightly-1af4c284 fleisch 1 725 12-28-2020, 05:04 PM
Last Post: psbest
  pilight-flash not working danny 14 3,607 12-12-2020, 10:00 AM
Last Post: tox
  Received state not updated in webgui, but working in illumina tobid 2 431 11-08-2020, 09:45 PM
Last Post: tobid
  After upgrading 7.0 to 8.1.5 my flamingo SF-501P switches stopped working. gerrit312 23 5,344 04-30-2020, 02:58 PM
Last Post: ayeyebrazov
  pilight 8.1.5 not working on Raspberry pi after reboot beejayf 4 1,955 03-08-2020, 12:14 AM
Last Post: beejayf
  filter stopped working after update to pilight 8.1.5 zlin50 19 4,781 01-03-2020, 02:15 PM
Last Post: curlymo
  8.1.5 quietly stops working hepcat72 4 1,295 12-23-2019, 03:24 PM
Last Post: hepcat72
  [Fixed] RaspberryPi4 pilight 8.1.5 - Send isn't working DominikB1993 4 2,045 10-18-2019, 10:25 PM
Last Post: DominikB1993
  pilight-receive Filteroption not working Alex 2 1,593 07-14-2019, 08:35 AM
Last Post: Alex

Forum Jump:


Browsing: 1 Guest(s)