• 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
teknihall - no update in gui (7/8)
#1
I tried to integrate an old teknihall sensor into my pilight7 setup (terrarium) because one of my DS18b20 is damaged.

Please dont ask why not using pilight8, i actually dont have the time to
correct the big and complex config.json with more than 70 rules and rewrite the parts which have changed.
As soon as possible i will upgrade but not now.

Teknihall worked as i know in pilight7 (only the bug with the minus temperatures was not corrected).

With pilight-receive the sensor is found on both of my systems with the same ID (76.0) and correct values.

Code:
{
    "message": {
        "id": 76.0,
        "temperature": 22.1,
        "humidity": 48.0,
        "battery": 1.0
    },
    "origin": "receiver",
    "protocol": "teknihall",
    "uuid": "0000-b8-27-eb-058c69",
    "repeats": 3
}

It works fine with 8.0.4 but in 7 the values will not be updated in gui.

Code:
       "devices": {
               "wetter": {
                       "protocol": [ "teknihall" ],
                       "id": [{
                               "id": 76.0
                       }],
                       "temperature": 25.4,
                       "humidity": 48.0,
                       "battery": 1.0
               },


Code:
    "gui": {
        "wetter": {
            "name": "Funksensor",
            "group": [ "aktueller Status" ],
            "media": [ "all" ]
        },

I also get no error messages.

Code:
root@terrari:/home/pi# pilight-daemon -V
pilight-daemon version v7.0

Any hint what could be wrong here?
Terrarium:  RPi Model B Rev 2 / pilight 8.1.2 / stretch
Aquarium: RPi Model B Plus Rev 1.2 / pilight 8.0.6 / jessie
 
Reply
#2
So, pilight 7 is faulty, and pilight 8 works. Then just update Smile

Also, pilight 8 didn't change as much as the rewrite version (yet) so upgrading is safe.
 
Reply
#3
ok, i will.
I hope you are right.
Terrarium:  RPi Model B Rev 2 / pilight 8.1.2 / stretch
Aquarium: RPi Model B Plus Rev 1.2 / pilight 8.0.6 / jessie
 
Reply
#4
I upgraded to 8.0.4 now.
Ok, was really not so difficult as i thought first.

Same Problem:
The sensor gets still no values in 8.0.4 with stretch.
In pilight-receive it is listed with correct values, in gui i get no updates.

Any further hint?
Terrarium:  RPi Model B Rev 2 / pilight 8.1.2 / stretch
Aquarium: RPi Model B Plus Rev 1.2 / pilight 8.0.6 / jessie
 
Reply
#5
Can you check if the http://x.x.x.x/config page does reflect the updates?
 
Reply
#6
Here the result: (does not update)

Terrarium (values manually inserted from me), tried with and without UUID entry:
Code:
   "wetter": {
     "protocol": [
       "teknihall"
     ],
     "id": [
       {
         "id": 76
       }
     ],
     "temperature": 99,
     "humidity": 99,
     "battery": 1
   },

Aquarium:
Code:
   "wetter": {
     "uuid": "0000-b8-27-eb-058c69",
     "protocol": [
       "teknihall"
     ],
     "id": [
       {
         "id": 76
       }
     ],
     "temperature": 28.9,
     "humidity": 48,
     "battery": 1
   },
Terrarium:  RPi Model B Rev 2 / pilight 8.1.2 / stretch
Aquarium: RPi Model B Plus Rev 1.2 / pilight 8.0.6 / jessie
 
Reply
#7
I will investigate
 
Reply
#8
Thank you.

Here the complete config if needed:
Code:
{
    "devices": {
        "tagnacht": {
            "protocol": [ "sunriseset" ],
            "id": [{
                "longitude": 13.90444,
                "latitude": 48.315277
            }],
            "sunrise": 7.56,
            "sunset": 16.19,
            "sun": "set"
        },
        "hum": {
            "protocol": [ "teknihall" ],
            "id": [{
                "id": 76.0
            }],
            "temperature": 99.0,
            "humidity": 99.0,
            "battery": 1.0
        },
        "stat_sunrise": {
            "protocol": [ "generic_switch" ],
            "id": [{
                "id": 11
            }],
            "state": "off"
        },
        "stat_day": {
            "protocol": [ "generic_switch" ],
            "id": [{
                "id": 12
            }],
            "state": "off"
        },
        "stat_sunset": {
            "protocol": [ "generic_switch" ],
            "id": [{
                "id": 13
            }],
            "state": "off"
        },
        "stat_night": {
            "protocol": [ "generic_switch" ],
            "id": [{
                "id": 14
            }],
            "state": "on"
        },
        "stat_man": {
            "protocol": [ "generic_switch" ],
            "id": [{
                "id": 15
            }],
            "state": "off"
        },
        "statusanzeige": {
            "protocol": [ "generic_label" ],
            "id": [{
                "id": 100
            }],
            "label": "Nacht",
            "color": "green"
        },
        "zeit": {
            "protocol": [ "datetime" ],
            "id": [{
                "longitude": 13.90444,
                "latitude": 48.315277
            }],
            "year": 2017,
            "month": 12,
            "day": 29,
            "hour": 4,
            "minute": 16,
            "second": 9,
            "weekday": 6,
            "dst": 0
        },
        "spotli": {
            "protocol": [ "kaku_dimmer" ],
            "id": [{
                "id": 1175,
                "unit": 0
            }],
            "state": "off",
            "dimlevel-minimum": 0,
            "dimlevel-maximum": 15,
            "dimlevel": 0
        },
        "spotre": {
            "protocol": [ "kaku_dimmer" ],
            "id": [{
                "id": 2275,
                "unit": 0
            }],
            "state": "off",
            "dimlevel-minimum": 0,
            "dimlevel-maximum": 15,
            "dimlevel": 0
        },
        "neon": {
            "protocol": [ "relay" ],
            "id": [{
                "gpio": 2
            }],
            "state": "on"
        },
        "fog": {
            "protocol": [ "relay" ],
            "id": [{
                "gpio": 3
            }],
            "state": "on"
        },
        "fan": {
            "protocol": [ "relay" ],
            "id": [{
                "gpio": 5
            }],
            "state": "on"
        },
        "vdimspotliup": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 24
            }],
            "state": "on",
            "dimlevel-minimum": 0,
            "dimlevel-maximum": 15,
            "dimlevel": 1
        },
        "vdimspotlidown": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 25
            }],
            "state": "on",
            "dimlevel-minimum": 0,
            "dimlevel-maximum": 15,
            "dimlevel": 0
        },
        "vdimspotreup": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 26
            }],
            "state": "on",
            "dimlevel-minimum": 0,
            "dimlevel-maximum": 15,
            "dimlevel": 1
        },
        "vdimspotredown": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 27
            }],
            "state": "on",
            "dimlevel-minimum": 0,
            "dimlevel-maximum": 15,
            "dimlevel": 0
        },
        "vtimed": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 28
            }],
            "state": "on",
            "dimlevel-minimum": 6,
            "dimlevel-maximum": 12,
            "dimlevel": 8
        },
        "vtimesunrise": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 29
            }],
            "state": "on",
            "dimlevel-minimum": 1,
            "dimlevel-maximum": 59,
            "dimlevel": 20
        },
        "vtimen": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 30
            }],
            "state": "on",
            "dimlevel-minimum": 15,
            "dimlevel-maximum": 22,
            "dimlevel": 19
        },
        "vtimesunset": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 31
            }],
            "state": "on",
            "dimlevel-minimum": 1,
            "dimlevel-maximum": 59,
            "dimlevel": 30
        },
        "vtimefogsunset": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 32
            }],
            "state": "on",
            "dimlevel-minimum": 1,
            "dimlevel-maximum": 59,
            "dimlevel": 12
        },
        "vtimefogsunrise": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 33
            }],
            "state": "on",
            "dimlevel-minimum": 1,
            "dimlevel-maximum": 59,
            "dimlevel": 12
        },
        "vtimefognight": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 34
            }],
            "state": "on",
            "dimlevel-minimum": 1,
            "dimlevel-maximum": 59,
            "dimlevel": 17
        },
        "vtimefan": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 36
            }],
            "state": "on",
            "dimlevel-minimum": 1,
            "dimlevel-maximum": 59,
            "dimlevel": 12
        },
        "vtemplio": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 37
            }],
            "state": "on",
            "dimlevel-minimum": 20,
            "dimlevel-maximum": 50,
            "dimlevel": 35
        },
        "vtempreo": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 38
            }],
            "state": "on",
            "dimlevel-minimum": 20,
            "dimlevel-maximum": 50,
            "dimlevel": 45
        },
        "vhumiday": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 39
            }],
            "state": "on",
            "dimlevel-minimum": 20,
            "dimlevel-maximum": 50,
            "dimlevel": 30
        },
        "vhuminight": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 40
            }],
            "state": "on",
            "dimlevel-minimum": 30,
            "dimlevel-maximum": 80,
            "dimlevel": 55
        },
        "vrepeatfan": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 41
            }],
            "state": "on",
            "dimlevel-minimum": 1,
            "dimlevel-maximum": 4,
            "dimlevel": 3
        },
        "vcheckhumi": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 42
            }],
            "state": "on",
            "dimlevel-minimum": 1,
            "dimlevel-maximum": 4,
            "dimlevel": 2
        },
        "vchecktemp": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 43
            }],
            "state": "on",
            "dimlevel-minimum": 1,
            "dimlevel-maximum": 59,
            "dimlevel": 7
        },
        "vtoltemp": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 44
            }],
            "state": "on",
            "dimlevel-minimum": 1,
            "dimlevel-maximum": 5,
            "dimlevel": 2
        },
        "vtolhumi": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 45
            }],
            "state": "on",
            "dimlevel-minimum": 1,
            "dimlevel-maximum": 5,
            "dimlevel": 3
        },
        "templio": {
            "protocol": [ "ds18b20" ],
            "id": [{
                "id": "0000066f35d2"
            }],
            "temperature": 21.562,
            "poll-interval": 10
        },
        "templiu": {
            "protocol": [ "ds18b20" ],
            "id": [{
                "id": "0000066f48f2"
            }],
            "temperature": 21.312,
            "poll-interval": 10
        },
        "tempreo": {
            "protocol": [ "ds18b20" ],
            "id": [{
                "id": "0000066ef410"
            }],
            "temperature": 21.625,
            "poll-interval": 10
        },
        "tempreu": {
            "protocol": [ "ds18b20" ],
            "id": [{
                "id": "0000068b0597"
            }],
            "temperature": 22.000,
            "poll-interval": 10
        },
        "humi": {
            "protocol": [ "dht11" ],
            "id": [{
                "gpio": 6
            }],
            "temperature": 0,
            "humidity": 0,
            "poll-interval": 30
        }
    },
    "rules": {
        "01-set_state_sunrise": {
            "rule": "IF (zeit.hour == vtimed.dimlevel AND zeit.minute <= vtimesunrise.dimlevel) AND stat_sunrise.state IS off AND stat_man.state IS off THEN label DEVICE statusanzeige TO Sonnenaufgang COLOR green AND switch DEVICE stat_sunrise TO on AND switch DEVICE stat_day AND stat_sunset AND stat_night AND stat_man TO off",
            "active": 1
        },
        "02-set_state_day_first_hour": {
            "rule": "IF zeit.hour == vtimed.dimlevel AND zeit.minute > vtimesunrise.dimlevel AND stat_day.state IS off AND stat_man.state IS off THEN label DEVICE statusanzeige TO Tag COLOR green AND switch DEVICE stat_day TO on AND switch DEVICE stat_sunrise AND stat_sunset AND stat_night AND stat_man TO off",
            "active": 1
        },
        "03-set_state_day": {
            "rule": "IF zeit.hour > vtimed.dimlevel AND zeit.hour < vtimen.dimlevel AND stat_day.state IS off AND stat_man.state IS off THEN label DEVICE statusanzeige TO Tag COLOR green AND switch DEVICE stat_day TO on AND switch DEVICE stat_sunrise AND stat_sunset AND stat_night AND stat_man TO off",
            "active": 1
        },
        "04-set_state_sunset": {
            "rule": "IF (zeit.hour == vtimen.dimlevel AND zeit.minute <= vtimesunset.dimlevel) AND stat_sunset.state IS off AND stat_man.state IS off THEN label DEVICE statusanzeige TO Sonnenuntergang COLOR green AND switch DEVICE stat_sunset TO on AND switch DEVICE stat_sunrise AND stat_day AND stat_night AND stat_man TO off",
            "active": 1
        },
        "05-set_state_night_before_midnight_first_hour": {
            "rule": "IF zeit.hour == vtimen.dimlevel AND zeit.minute > vtimesunset.dimlevel AND stat_night.state IS off AND stat_man.state IS off THEN label DEVICE statusanzeige TO Nacht COLOR green AND switch DEVICE stat_night TO on AND switch DEVICE stat_sunrise AND stat_day AND stat_sunset AND stat_man TO off",
            "active": 1
        },
        "06-set_state_night_before_midnight": {
            "rule": "IF zeit.hour > vtimen.dimlevel AND zeit.hour < 24 AND stat_night.state IS off AND stat_man.state IS off THEN label DEVICE statusanzeige TO Nacht COLOR green AND switch DEVICE stat_night TO on AND switch DEVICE stat_sunrise AND stat_day AND stat_sunset AND stat_man TO off",
            "active": 1
        },
        "07-set_state_night_after_midnight": {
            "rule": "IF zeit.hour >= 00 AND zeit.hour < vtimed.dimlevel AND stat_night.state IS off AND stat_man.state IS off THEN label DEVICE statusanzeige TO Nacht COLOR green AND switch DEVICE stat_night TO on AND switch DEVICE stat_sunrise AND stat_day AND stat_sunset AND stat_man TO off",
            "active": 1
        },
        "08-set_state_manually": {
            "rule": "IF stat_man.state IS on THEN label DEVICE statusanzeige TO Handbetrieb COLOR red AND switch DEVICE stat_sunrise AND stat_day AND stat_sunset AND stat_night TO off",
            "active": 1
        },
        "09_spotli_dim_up_at_sunrise": {
            "rule": "IF stat_sunrise.state IS on AND stat_man.state IS off THEN dim DEVICE spotli TO spotli.dimlevel-maximum FROM spotli.dimlevel-minimum IN vtimesunrise.dimlevel MINUTE",
            "active": 1
        },
        "10_spotre_dim_up_at_sunrise": {
            "rule": "IF stat_sunrise.state IS on AND stat_man.state IS off THEN dim DEVICE spotre TO spotre.dimlevel-maximum FROM spotre.dimlevel-minimum IN vtimesunrise.dimlevel MINUTE",
            "active": 1
        },
        "11_spotli_dim_down_at_sunset": {
            "rule": "IF stat_sunset.state IS on AND stat_man.state IS off THEN dim DEVICE spotli TO spotli.dimlevel-minimum FROM spotli.dimlevel IN vtimesunset.dimlevel MINUTE",
            "active": 1
        },
        "12_spotre_dim_down_at_sunset": {
            "rule": "IF stat_sunset.state IS on AND stat_man.state IS off THEN dim DEVICE spotre TO spotre.dimlevel-minimum FROM spotre.dimlevel IN vtimesunset.dimlevel MINUTE",
            "active": 1
        },
        "13_spotli_dimlevel_to_0_at_night": {
            "rule": "IF stat_night.state IS on AND stat_man.state IS off AND spotli.dimlevel != 0 THEN dim DEVICE spotli TO 0 AFTER 5 SECOND",
            "active": 1
        },
        "14_spotre_dimlevel_to_0_at_night": {
            "rule": "IF stat_night.state IS on AND stat_man.state IS off AND spotre.dimlevel != 0 THEN dim DEVICE spotre TO 0 AFTER 10 SECOND",
            "active": 1
        },
        "15_spotli_state_to_off_at_night": {
            "rule": "IF stat_night.state IS on AND stat_man.state IS off AND spotli.dimlevel == 0 AND spotli.state IS on THEN switch DEVICE spotli TO off AFTER 5 SECOND",
            "active": 1
        },
        "16_spotre_state_to_off_at_night": {
            "rule": "IF stat_night.state IS on AND stat_man.state IS off AND spotre.dimlevel == 0 AND spotre.state IS on THEN switch DEVICE spotre TO off AFTER 10 SECOND",
            "active": 1
        },
        "17_spotli_state_to_off_when_dimlevel_0": {
            "rule": "IF spotli.dimlevel == 0 AND spotli.state IS on AND stat_man.state IS off AND stat_sunrise.state IS off THEN switch DEVICE spotli TO off AFTER 1 MINUTE",
            "active": 1
        },
        "18_spotre_state_to_off_when_dimlevel_0": {
            "rule": "IF spotre.dimlevel == 0 AND spotre.state IS on AND stat_man.state IS off AND stat_sunrise.state IS off THEN switch DEVICE spotre TO off AFTER 2 MINUTE",
            "active": 1
        },
        "19_spotli_regulate_temp_up_day": {
            "rule": "IF vtemplio.state IS on AND stat_day.state IS on AND templio.temperature < (vtemplio.dimlevel - vtoltemp.dimlevel) AND zeit.second == 0 AND (zeit.minute % vchecktemp.dimlevel) == 0 THEN dim DEVICE spotli TO vdimspotliup.dimlevel AFTER 10 SECOND",
            "active": 1
        },
        "20_spotli_regulate_temp_down_day": {
            "rule": "IF vtemplio.state IS on AND stat_day.state IS on AND templio.temperature > (vtemplio.dimlevel + vtoltemp.dimlevel) AND zeit.second == 0 AND (zeit.minute % vchecktemp.dimlevel) == 0 THEN dim DEVICE spotli TO vdimspotlidown.dimlevel AFTER 10 SECOND",
            "active": 1
        },
        "21_spotre_regulate_temp_up_day": {
            "rule": "IF vtempreo.state IS on AND stat_day.state IS on AND tempreo.temperature < (vtempreo.dimlevel - vtoltemp.dimlevel) AND zeit.second == 0 AND (zeit.minute % vchecktemp.dimlevel) == 0 THEN dim DEVICE spotre TO vdimspotreup.dimlevel AFTER 15 SECOND",
            "active": 1
        },
        "22_spotre_regulate_temp_down_day": {
            "rule": "IF vtempreo.state IS on AND stat_day.state IS on AND tempreo.temperature > (vtempreo.dimlevel + vtoltemp.dimlevel) AND zeit.second == 0 AND (zeit.minute % vchecktemp.dimlevel) == 0 THEN dim DEVICE spotre TO vdimspotredown.dimlevel AFTER 15 SECOND",
            "active": 1
        },
        "23_neon_to_on_at_day": {
            "rule": "IF stat_day.state IS on AND stat_man.state IS off AND neon.state IS off THEN switch DEVICE neon TO on",
            "active": 1
        },
        "24_neon_to_off_at_sunrise": {
            "rule": "IF stat_sunrise.state IS on AND stat_man.state IS off AND neon.state IS on THEN switch DEVICE neon TO off",
            "active": 1
        },
        "25_neon_to_off_at_sunset": {
            "rule": "IF stat_sunset.state IS on AND stat_man.state IS off AND neon.state IS on THEN switch DEVICE neon TO off",
            "active": 1
        },
        "26_neon_to_off_at_night": {
            "rule": "IF stat_night.state IS on AND stat_man.state IS off AND neon.state IS on THEN switch DEVICE neon TO off",
            "active": 1
        },
        "27_fog_to_on_at_sunrise": {
            "rule": "IF stat_sunrise.state IS on AND stat_man.state IS off AND vtimefogsunrise.state IS on AND zeit.minute == 5 AND zeit.second == 0 THEN switch DEVICE fog TO on FOR vtimefogsunrise.dimlevel MINUTE",
            "active": 1
        },
        "28_fog_to_on_at_sunset": {
            "rule": "IF stat_sunset.state IS on AND stat_man.state IS off AND vtimefogsunset.state IS on AND zeit.minute == 5 AND zeit.second == 0 THEN switch DEVICE fog TO on FOR vtimefogsunset.dimlevel MINUTE",
            "active": 1
        },
        "29a_fog_to_on_when_humidity_to_low_at_night": {
            "rule": "IF stat_night.state IS on AND stat_man.state IS off AND vtimefognight.state IS on AND (zeit.hour % vcheckhumi.dimlevel) == 0 AND zeit.minute == 10 AND zeit.second == 0 AND hum.humidity < (vhuminight.dimlevel - vtolhumi.dimlevel) THEN switch DEVICE fog TO on",
            "active": 1
        },
        "29b_fog_to_off_when_humidity_to_low_at_night_after_adjusted_timer": {
            "rule": "IF stat_night.state IS on AND stat_man.state IS off AND fog.state IS on THEN switch DEVICE fog TO off AFTER vtimefognight.dimlevel MINUTE",
            "active": 1
        },
        "30_fog_to_off_when_humidity_to_high_at_night": {
            "rule": "IF stat_night.state IS on AND stat_man.state IS off AND fog.state IS on AND hum.humidity > (vhuminight.dimlevel + vtolhumi.dimlevel) THEN switch DEVICE fog TO off",
            "active": 1
        },
        "31_fan_to_on_for_fresh_air": {
            "rule": "IF stat_man.state IS off AND vtimefan.state IS on AND (zeit.hour % vrepeatfan.dimlevel) == 0 AND zeit.minute == 15 AND zeit.second == 0 THEN switch DEVICE fan TO on FOR vtimefan.dimlevel MINUTE",
            "active": 1
        },
        "32_set_dimlevels_for_up_and_down_spotli_0": {
            "rule": "IF spotli.dimlevel == 0 THEN dim DEVICE vdimspotliup TO 1 AND dim DEVICE vdimspotlidown TO 0",
            "active": 1
        },
        "33_set_dimlevels_for_up_and_down_spotli_1": {
            "rule": "IF spotli.dimlevel == 1 THEN dim DEVICE vdimspotliup TO 2 AND dim DEVICE vdimspotlidown TO 0",
            "active": 1
        },
        "34_set_dimlevels_for_up_and_down_spotli_2": {
            "rule": "IF spotli.dimlevel == 2 THEN dim DEVICE vdimspotliup TO 3 AND dim DEVICE vdimspotlidown TO 1",
            "active": 1
        },
        "35_set_dimlevels_for_up_and_down_spotli_3": {
            "rule": "IF spotli.dimlevel == 3 THEN dim DEVICE vdimspotliup TO 4 AND dim DEVICE vdimspotlidown TO 2",
            "active": 1
        },
        "36_set_dimlevels_for_up_and_down_spotli_4": {
            "rule": "IF spotli.dimlevel == 4 THEN dim DEVICE vdimspotliup TO 5 AND dim DEVICE vdimspotlidown TO 3",
            "active": 1
        },
        "37_set_dimlevels_for_up_and_down_spotli_5": {
            "rule": "IF spotli.dimlevel == 5 THEN dim DEVICE vdimspotliup TO 6 AND dim DEVICE vdimspotlidown TO 4",
            "active": 1
        },
        "38_set_dimlevels_for_up_and_down_spotli_6": {
            "rule": "IF spotli.dimlevel == 6 THEN dim DEVICE vdimspotliup TO 7 AND dim DEVICE vdimspotlidown TO 5",
            "active": 1
        },
        "39_set_dimlevels_for_up_and_down_spotli_7": {
            "rule": "IF spotli.dimlevel == 7 THEN dim DEVICE vdimspotliup TO 8 AND dim DEVICE vdimspotlidown TO 6",
            "active": 1
        },
        "40_set_dimlevels_for_up_and_down_spotli_8": {
            "rule": "IF spotli.dimlevel == 8 THEN dim DEVICE vdimspotliup TO 9 AND dim DEVICE vdimspotlidown TO 7",
            "active": 1
        },
        "41_set_dimlevels_for_up_and_down_spotli_9": {
            "rule": "IF spotli.dimlevel == 9 THEN dim DEVICE vdimspotliup TO 10 AND dim DEVICE vdimspotlidown TO 8",
            "active": 1
        },
        "42_set_dimlevels_for_up_and_down_spotli_10": {
            "rule": "IF spotli.dimlevel == 10 THEN dim DEVICE vdimspotliup TO 11 AND dim DEVICE vdimspotlidown TO 9",
            "active": 1
        },
        "43_set_dimlevels_for_up_and_down_spotli_11": {
            "rule": "IF spotli.dimlevel == 11 THEN dim DEVICE vdimspotliup TO 12 AND dim DEVICE vdimspotlidown TO 10",
            "active": 1
        },
        "44_set_dimlevels_for_up_and_down_spotli_12": {
            "rule": "IF spotli.dimlevel == 12 THEN dim DEVICE vdimspotliup TO 13 AND dim DEVICE vdimspotlidown TO 11",
            "active": 1
        },
        "45_set_dimlevels_for_up_and_down_spotli_13": {
            "rule": "IF spotli.dimlevel == 13 THEN dim DEVICE vdimspotliup TO 14 AND dim DEVICE vdimspotlidown TO 12",
            "active": 1
        },
        "46_set_dimlevels_for_up_and_down_spotli_14": {
            "rule": "IF spotli.dimlevel == 14 THEN dim DEVICE vdimspotliup TO 15 AND dim DEVICE vdimspotlidown TO 13",
            "active": 1
        },
        "47_set_dimlevels_for_up_and_down_spotli_15": {
            "rule": "IF spotli.dimlevel == 15 THEN dim DEVICE vdimspotliup TO 15 AND dim DEVICE vdimspotlidown TO 14",
            "active": 1
        },
        "48_set_dimlevels_for_up_and_down_spotre_0": {
            "rule": "IF spotre.dimlevel == 0 THEN dim DEVICE vdimspotreup TO 1 AND dim DEVICE vdimspotredown TO 0",
            "active": 1
        },
        "49_set_dimlevels_for_up_and_down_spotre_1": {
            "rule": "IF spotre.dimlevel == 1 THEN dim DEVICE vdimspotreup TO 2 AND dim DEVICE vdimspotredown TO 0",
            "active": 1
        },
        "50_set_dimlevels_for_up_and_down_spotre_2": {
            "rule": "IF spotre.dimlevel == 2 THEN dim DEVICE vdimspotreup TO 3 AND dim DEVICE vdimspotredown TO 1",
            "active": 1
        },
        "51_set_dimlevels_for_up_and_down_spotre_3": {
            "rule": "IF spotre.dimlevel == 3 THEN dim DEVICE vdimspotreup TO 4 AND dim DEVICE vdimspotredown TO 2",
            "active": 1
        },
        "52_set_dimlevels_for_up_and_down_spotre_4": {
            "rule": "IF spotre.dimlevel == 4 THEN dim DEVICE vdimspotreup TO 5 AND dim DEVICE vdimspotredown TO 3",
            "active": 1
        },
        "53_set_dimlevels_for_up_and_down_spotre_5": {
            "rule": "IF spotre.dimlevel == 5 THEN dim DEVICE vdimspotreup TO 6 AND dim DEVICE vdimspotredown TO 4",
            "active": 1
        },
        "54_set_dimlevels_for_up_and_down_spotre_6": {
            "rule": "IF spotre.dimlevel == 6 THEN dim DEVICE vdimspotreup TO 7 AND dim DEVICE vdimspotredown TO 5",
            "active": 1
        },
        "55_set_dimlevels_for_up_and_down_spotre_7": {
            "rule": "IF spotre.dimlevel == 7 THEN dim DEVICE vdimspotreup TO 8 AND dim DEVICE vdimspotredown TO 6",
            "active": 1
        },
        "56_set_dimlevels_for_up_and_down_spotre_8": {
            "rule": "IF spotre.dimlevel == 8 THEN dim DEVICE vdimspotreup TO 9 AND dim DEVICE vdimspotredown TO 7",
            "active": 1
        },
        "57_set_dimlevels_for_up_and_down_spotre_9": {
            "rule": "IF spotre.dimlevel == 9 THEN dim DEVICE vdimspotreup TO 10 AND dim DEVICE vdimspotredown TO 8",
            "active": 1
        },
        "58_set_dimlevels_for_up_and_down_spotre_10": {
            "rule": "IF spotre.dimlevel == 10 THEN dim DEVICE vdimspotreup TO 11 AND dim DEVICE vdimspotredown TO 9",
            "active": 1
        },
        "59_set_dimlevels_for_up_and_down_spotre_11": {
            "rule": "IF spotre.dimlevel == 11 THEN dim DEVICE vdimspotreup TO 12 AND dim DEVICE vdimspotredown TO 10",
            "active": 1
        },
        "60_set_dimlevels_for_up_and_down_spotre_12": {
            "rule": "IF spotre.dimlevel == 12 THEN dim DEVICE vdimspotreup TO 13 AND dim DEVICE vdimspotredown TO 11",
            "active": 1
        },
        "61_set_dimlevels_for_up_and_down_spotre_13": {
            "rule": "IF spotre.dimlevel == 13 THEN dim DEVICE vdimspotreup TO 14 AND dim DEVICE vdimspotredown TO 12",
            "active": 1
        },
        "62_set_dimlevels_for_up_and_down_spotre_14": {
            "rule": "IF spotre.dimlevel == 14 THEN dim DEVICE vdimspotreup TO 15 AND dim DEVICE vdimspotredown TO 13",
            "active": 1
        },
        "63_set_dimlevels_for_up_and_down_spotre_15": {
            "rule": "IF spotre.dimlevel == 15 THEN dim DEVICE vdimspotreup TO 15 AND dim DEVICE vdimspotredown TO 14",
            "active": 1
        }
    },
    "gui": {
        "tagnacht": {
            "name": "Echtzeitstatus",
            "group": [ "aktueller Status" ],
            "media": [ "all" ]
        },
        "hum": {
            "name": "mobiler Sensor",
            "group": [ "aktueller Status" ],
            "media": [ "all" ]
        },
        "stat_man": {
            "name": "manuelle Steuerung (alle Regeln aus)",
            "group": [ "aktueller Status" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "statusanzeige": {
            "name": "aktueller Programmstatus",
            "group": [ "aktueller Status" ],
            "media": [ "all" ]
        },
        "templio": {
            "name": "Temperatur links oben (in °C)",
            "group": [ "aktueller Status" ],
            "media": [ "all" ]
        },
        "templiu": {
            "name": "Temperatur links unten (in °C)",
            "group": [ "aktueller Status" ],
            "media": [ "all" ]
        },
        "tempreo": {
            "name": "Temperatur rechts oben (in °C)",
            "group": [ "aktueller Status" ],
            "media": [ "all" ]
        },
        "tempreu": {
            "name": "Temperatur rechts unten (in °C)",
            "group": [ "aktueller Status" ],
            "media": [ "all" ]
        },
        "humi": {
            "name": "Luftfeuchtigkeit (in %)",
            "group": [ "aktueller Status" ],
            "media": [ "all" ]
        },
        "zeit": {
            "name": "Uhrzeit",
            "group": [ "aktueller Status" ],
            "media": [ "all" ]
        },
        "spotli": {
            "name": "SPOT links",
            "group": [ "aktueller Status" ],
            "media": [ "all" ]
        },
        "spotre": {
            "name": "SPOT rechts",
            "group": [ "aktueller Status" ],
            "media": [ "all" ]
        },
        "neon": {
            "name": "Neonbeleuchtung",
            "group": [ "aktueller Status" ],
            "media": [ "all" ]
        },
        "fog": {
            "name": "Nebler",
            "group": [ "aktueller Status" ],
            "media": [ "all" ]
        },
        "fan": {
            "name": "Frischluft",
            "group": [ "aktueller Status" ],
            "media": [ "all" ]
        },
        "vtimed": {
            "name": "Beginn TAG (Stunde)",
            "group": [ "Tageszeiten" ],
            "media": [ "all" ]
        },
        "vtimesunrise": {
            "name": "Dauer Sonnenaufgang (in Minuten)",
            "group": [ "Tageszeiten" ],
            "media": [ "all" ]
        },
        "vtimen": {
            "name": "Beginn NACHT (Stunde)",
            "group": [ "Tageszeiten" ],
            "media": [ "all" ]
        },
        "vtimesunset": {
            "name": "Dauer Sonnenuntergang (in Minuten)",
            "group": [ "Tageszeiten" ],
            "media": [ "all" ]
        },
        "vtemplio": {
            "name": "Temperatur Podest links (in °C)",
            "group": [ "Temperatur" ],
            "media": [ "all" ]
        },
        "vtempreo": {
            "name": "Temperatur Podest rechts (in °C)",
            "group": [ "Temperatur" ],
            "media": [ "all" ]
        },
        "vtoltemp": {
            "name": "Toleranz Temperatur Podeste (+/-)",
            "group": [ "Temperatur" ],
            "media": [ "all" ]
        },
        "vchecktemp": {
            "name": "Prüfintervall Temperatur (alle [ ] Minuten)",
            "group": [ "Temperatur" ],
            "media": [ "all" ]
        },
        "vhumiday": {
            "name": "Luftfeuchtigkeit TAG (in %)",
            "group": [ "Luftfeuchtigkeit" ],
            "media": [ "all" ]
        },
        "vhuminight": {
            "name": "Luftfeuchtigkeit NACHT (in %)",
            "group": [ "Luftfeuchtigkeit" ],
            "media": [ "all" ]
        },
        "vtolhumi": {
            "name": "Toleranz Luftfeuchtigkeit (+/-)",
            "group": [ "Luftfeuchtigkeit" ],
            "media": [ "all" ]
        },
        "vcheckhumi": {
            "name": "Prüfinterval Luftfeuchtigkeit (alle [ ] Stunden)",
            "group": [ "Luftfeuchtigkeit" ],
            "media": [ "all" ]
        },
        "vtimefogsunrise": {
            "name": "Benebelungsdauer Sonnenaufgang (in Minuten)",
            "group": [ "Luftfeuchtigkeit" ],
            "media": [ "all" ]
        },
        "vtimefogsunset": {
            "name": "Benebelungsdauer Sonnenuntergang (in Minuten)",
            "group": [ "Luftfeuchtigkeit" ],
            "media": [ "all" ]
        },
        "vtimefognight": {
            "name": "Benebelungsdauer Nacht (in Minuten)",
            "group": [ "Luftfeuchtigkeit" ],
            "media": [ "all" ]
        },
        "vrepeatfan": {
            "name": "Frischluftzufuhr alle [ ] Stunden",
            "group": [ "Frischluft" ],
            "media": [ "all" ]
        },
        "vtimefan": {
            "name": "Lüfterlaufzeit Frischluftzufuhr (in Minuten)",
            "group": [ "Frischluft" ],
            "media": [ "all" ]
        }
    },
    "settings": {
        "log-level": 6,
        "pid-file": "/var/run/pilight.pid",
        "log-file": "/var/log/pilight.log",
        "webserver-enable": 1,
        "webserver-http-port": 5001,
        "webserver-cache": 0,
        "standalone": 1,
        "gpio-platform": "raspberrypi1b2",
        "port": 5000
    },
    "hardware": {
        "433gpio": {
            "sender": 0,
            "receiver": 1
        }
    },
    "registry": {
        "webgui": {
            "tabs": 1
        },
        "webserver": {
            "ssl": {
                "certificate": {
                    "secure": 0,
                    "location": "/etc/pilight/pilight.pem"
                }
            }
        },
        "pilight": {
            "version": {
                "current": "8.0.4"
            }
        }
    }
Terrarium:  RPi Model B Rev 2 / pilight 8.1.2 / stretch
Aquarium: RPi Model B Plus Rev 1.2 / pilight 8.0.6 / jessie
 
Reply
#9
@curlymo
In the terrarium project i use no antenna on the receiver (also not on the sender) and also no filter because the devices to be switched all within 1 meter radius to the transmitter and had never problems with this.

Is it possible that the receiver can not read the value of the Teknihall sensor because of this circumstance?
Is there a difference when reading with pilight-receive and in normal operation?
(pilight-receive is able to see the teknihall)
Terrarium:  RPi Model B Rev 2 / pilight 8.1.2 / stretch
Aquarium: RPi Model B Plus Rev 1.2 / pilight 8.0.6 / jessie
 
Reply
#10
I think i found the issue now.

It is definiteley the receiver on the terrarium or its missing antenna.

I ran pilight-receive on both devives with filtering out the known protocols:
Code:
pilight-receive -F=datetime,ds18b20,dht11,relay

Every time the Aquarium receives data from the teknihall correct the Terrarium receives some other protocols which dont give sense:

Aquarium:

Code:
{
    "message": {
        "id": 76.0,
        "temperature": 32.2,
        "humidity": 30.0,
        "battery": 1.0
    },
    "origin": "receiver",
    "protocol": "teknihall",
    "uuid": "0000-b8-27-eb-058c69",
    "repeats": 1
}
{
    "message": {
        "id": 76.0,
        "temperature": 32.2,
        "humidity": 30.0,
        "battery": 1.0
    },
    "origin": "receiver",
    "protocol": "teknihall",
    "uuid": "0000-b8-27-eb-058c69",
    "repeats": 2
}

Terrarium:
Code:
{
    "message": {
        "id": 1,
        "temperature": 1.6,
        "humidity": 0,
        "battery": 1,
        "button": 0
    },
    "origin": "receiver",
    "protocol": "tcm",
    "uuid": "0000-74-da-38-54820d",
    "repeats": 2
}
{
    "message": {
        "id": 0,
        "temperature": -67.77,
        "humidity": 0.00,
        "battery": 1,
        "channel": 1
    },
    "origin": "receiver",
    "protocol": "tfa",
    "uuid": "0000-74-da-38-54820d",
    "repeats": 1
}
{
    "message": {
        "id": 0,
        "temperature": 0.0
    },
    "origin": "receiver",
    "protocol": "alecto_wsd17",
    "uuid": "0000-74-da-38-54820d",
    "repeats": 1
}

I will put a antenna on it and try again to test and post the results as soon as possible.

Sorry for making so much noise about this.
Terrarium:  RPi Model B Rev 2 / pilight 8.1.2 / stretch
Aquarium: RPi Model B Plus Rev 1.2 / pilight 8.0.6 / jessie
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  [SOLVED] pilight wont start since update from 8.0.8 to 8.1.2 pukington 5 1,549 08-08-2018, 05:34 PM
Last Post: curlymo
  Update to v8.0.10-nightly-a1279212 Ulrich.Arnold 3 1,191 06-04-2018, 08:31 PM
Last Post: curlymo
  Cannot start service after update to 8.0.8 mezen 5 850 05-24-2018, 07:46 PM
Last Post: curlymo
  System update from pilight v7 to pilight v8 chrisch30 6 1,980 01-09-2018, 07:20 PM
Last Post: curlymo
  Teknihall shows Temperature more than 100 if temp is under 0 Micha_123 1 736 12-02-2017, 09:53 PM
Last Post: pilino1234
  Problem with sending after plight (or raspberry?) update _Jens_ 5 2,003 09-08-2017, 03:14 PM
Last Post: pilino1234
  teknihall - odd values from temp/humidity sensor Fabrizio 1 1,718 11-17-2015, 01:18 PM
Last Post: pilino1234
  Last update denx 1 1,086 11-16-2015, 05:02 PM
Last Post: pilino1234
  Messages with update Rschnauzer 3 1,617 10-29-2015, 05:47 PM
Last Post: terrar

Forum Jump:


Browsing: 1 Guest(s)