• 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
generic_dimmer error / or not visible in 8.0.5
#1
Updated to 8.0.5 this moment.

pilight-daemon gives me an error with th generic_dimmer protocol

Code:
[Jan 15 21:23:59:463048] pilight-daemon: ERROR: config device setting #5 "dimlevel-minimum" of "vtimeluftheber", invalid


My config:

Code:
               "vtimeluftheber": {
                       "protocol": [ "generic_dimmer" ],
                       "id": [{
                               "id": 100
                       }],
                       "state": "on",
                       "dimlevel": 8,
                       "dimlevel-minimum": 1,
                       "dimlevel-maximum": 12
               },

Code:
               "vtimeluftheber": {
                       "name": "Luftheberlaufzeit (h)",
                       "group": [ "Aquarium" ],
                       "media": [ "all" ]
               },

I think i have the same settings like in the manual.

When i remove "dimlevel-minimum" and "dimlevel-maximum" pilight is able to start, but i don't see the dimmer in gui.

I use many of them in my setup to adjust timers and temperatures so i need them urgently.
Where is my error?
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
Have you read the change log and the Protocol Development forum rules?
 
Reply
#3
Indeed i did not.
Moved the thread now, sorry.

What means "Disable min / max dimlevel in generic_dimmer"?

Disabled forever?
Or do i just not understand the manual?
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
Check the generic dimmer protocol page.
 
Reply
#5
I thought that was what I did.
Do not find out what my mistake is...
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
#6
I now understand that the minimum and maximum settings in the code have been commented out since 8.0.5.
But I could not find a reason for that.

What I have not figured out now is how can I use the protocol without these settings to display and adjust time and temperature and humidity values.
(1-12, 1-59, 30-40, 60-80, ..)

I use about 50 of these dimmers in the setup of my terrarium to set all values in the gui without having to intervene in the config.json.

Without knowing how I handle it, I can not update the terrarium.

Maybe I'm a little blinded too.

A little tip maybe?
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
Just remove the min max settings. The rest is the same.

The reason was discussed in this topic:
https://forum.pilight.org/showthread.php...1#pid22401
 
Reply
#8
I did this yesterday to get pilight startet.

But as in my first post described the dimmer ist no more usable for me to adjust settings because not shown in gui.

How can i handle setting-tabs like this one in future:

   

With the changed protocol this pages stay empty.
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
Can you post a minimal config in that allows me to reproduce the issue?
 
Reply
#10
Code:
{
    "devices": {
        "zeit": {
            "protocol": [ "datetime" ],
            "id": [{
                "longitude": 13.90444,
                "latitude": 48.315277
            }],
            "year": 2018,
            "month": 1,
            "day": 15,
            "hour": 23,
            "minute": 27,
            "second": 16,
            "weekday": 2,
            "dst": 0
        },
        "tagnacht": {
            "protocol": [ "sunriseset" ],
            "id": [{
                "longitude": 13.90444,
                "latitude": 48.315277
            }],
            "sunrise": 7.51,
            "sunset": 16.39,
            "sun": "set"
        },
        "s1": {
            "protocol": [ "generic_switch" ],
            "id": [{
                "id": 100
            }],
            "state": "off"
        },
        "p1": {
            "protocol": [ "coco_switch" ],
            "id": [{
                "id": 11111101,
                "unit": 0
            }],
            "state": "off"
        },
        "p2": {
            "protocol": [ "coco_switch" ],
            "id": [{
                "id": 11111102,
                "unit": 0
            }],
            "state": "off"
        },
        "p3": {
            "protocol": [ "coco_switch" ],
            "id": [{
                "id": 11111103,
                "unit": 0
            }],
            "state": "on"
        },
        "wetter": {
            "uuid": "0000-b8-27-eb-058c69",
            "protocol": [ "teknihall" ],
            "id": [{
                "id": 76.0
            }],
            "temperature": 21.8,
            "humidity": 41.0,
            "battery": 1.0
        },
        "vtimefeed": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 101
            }],
            "state": "on",
            "dimlevel": 10
        }
    },
    "rules": {
        "Beleuchtung_ein_sunrise": {
            "rule": "IF p1.state IS off AND s1.state IS off AND (DATE_FORMAT(zeit, %H.%M) >= tagnacht.sunrise) AND zeit.second == 0 AND (DATE_FORMAT(zeit, %H.%M) < tagnacht.sunset) THEN switch DEVICE p1 TO on",
            "active": 1
        },
        "Beleuchtung_aus_sunset": {
            "rule": "IF p1.state IS on AND s1.state IS off AND (DATE_FORMAT(zeit, %H.%M) >= tagnacht.sunset) AND zeit.second == 0 THEN switch DEVICE p1 TO off",
            "active": 1
        },
        "Luftheber_ein_sunrise": {
            "rule": "IF p2.state IS off AND s1.state IS off AND (DATE_FORMAT(zeit, %H.%M) >= tagnacht.sunrise) AND zeit.second == 0 AND (DATE_FORMAT(zeit, %H.%M) < tagnacht.sunset) THEN switch DEVICE p2 TO on",
            "active": 1
        },
        "Luftheber_aus_sunset": {
            "rule": "IF p2.state IS on AND s1.state IS off AND (DATE_FORMAT(zeit, %H.%M) >= tagnacht.sunset) AND zeit.second == 0 THEN switch DEVICE p2 TO off",
            "active": 1
        },
        "Fuetterung": {
            "rule": "IF s1.state IS on THEN switch DEVICE s1 TO off AFTER vtimefeed.dimlevel MINUTE AND switch DEVICE p2 TO off FOR vtimefeed.dimlevel MINUTE AND switch DEVICE p3 TO off FOR vtimefeed.dimlevel MINUTE",
            "active": 1
        },
        "Hauptpumpe_immer_an": {
            "rule": "IF p3.state IS off AND s1.state IS off THEN switch DEVICE p3 TO on AFTER 5 SECOND",
            "active": 1
        }
    },
    "gui": {
        "tagnacht": {
            "name": "Sonnenaufgang / Sonnenuntergang",
            "group": [ "Aquarium" ],
            "media": [ "all" ]
        },
        "s1": {
            "name": "Fütterung (30 Min)",
            "group": [ "Aquarium" ],
            "media": [ "all" ]
        },
        "p1": {
            "name": "Beleuchtung (P1)",
            "group": [ "Aquarium" ],
            "media": [ "all" ]
        },
        "p2": {
            "name": "Luftheber (P2)",
            "group": [ "Aquarium" ],
            "media": [ "all" ]
        },
        "p3": {
            "name": "Hauptpumpe (P3)",
            "group": [ "Aquarium" ],
            "media": [ "all" ]
        },
        "vtimefeed": {
            "name": "Timer Fütterungsmodus (min)",
            "group": [ "Aquarium" ],
            "media": [ "all" ]
        },
        "zeit": {
            "name": "Uhrzeit",
            "group": [ "Aquarium" ],
            "media": [ "all" ]
        },
        "wetter": {
            "name": "Wetter draussen",
            "group": [ "Wetter" ],
            "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": "raspberrypi1b+",
        "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.5"
            }
        }
    }
}

Here is the config.

I removed some things to make it easier.

Device "vtimefeed" is no more shown in the config since i had to remove minimum and maximum.
So the switch "s1" and rule "Fuetterung" is useless because i can not adjust the minutes in gui anymore.

Edit:

This is the result.
As you see the dimmer device is missing

   
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
  ERROR: failed to read config. stack: 2 Stefan 6 657 02-03-2020, 09:37 PM
Last Post: curlymo
  Raspberry 4B installation error royw 3 717 12-05-2019, 10:58 AM
Last Post: royw
  pilight error after update to 8.1.5 on Odroid C2 WitchDoctor 3 881 11-29-2019, 09:56 PM
Last Post: curlymo
  "FOR '2 MINUTE' FROM off" resulting in error hansrijn2 5 701 11-15-2019, 02:04 PM
Last Post: hansrijn2
  433gpio platform error after raspbian dist upgrade HuberDe 2 862 10-12-2019, 07:35 PM
Last Post: HuberDe
  error pilightsend, recieve and control hansipi 2 823 11-04-2018, 03:46 PM
Last Post: hansipi
  Error with loading LPF firmware Rschnauzer 14 8,749 02-10-2018, 04:21 PM
Last Post: Rschnauzer
  pilight does no longer start because of hardware error stratege-0815 2 1,466 12-27-2017, 11:16 PM
Last Post: stratege-0815
  ERROR: uv_custom_poll_cb: bad file descriptor Gisto 6 2,336 12-19-2017, 03:03 PM
Last Post: Gisto
  [Solved] Error manual compiling Thuurke 2 1,652 09-02-2017, 05:06 PM
Last Post: Thuurke

Forum Jump:


Browsing: 1 Guest(s)