• 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
invalid config file when using dimlevel-minimum or dimlevel-maximum
#1
Hi everybody,

I'm working with pilight 8.1.0 on a Raspberry Pi Zero. I tried to realize a time-dependent switch as it is used by terrar in his terrarium controller. But when I add the parameters "dimlevel-minimum" or "dimlevel-maximum" to the generic dimmer , I got the error of an invalid config-file:

Quote:[Jun 11 22:08:49:384143] pilight-daemon: ERROR: config device setting #5 "dimlevel-minimum" of "timeDurationPump", invalid

Here my config file:
Code:
{
    "devices": {
        "currentDate": {
            "protocol": [ "datetime" ],
            "id": [{
                "longitude": 0.000000,
                "latitude": 0.000000
            }],
            "year": 2018,
            "month": 6,
            "day": 12,
            "hour": 0,
            "minute": 5,
            "second": 17,
            "weekday": 3,
            "dst": 1
        },
        "pump": {
            "protocol": [ "relay" ],
            "id": [{
                "gpio": 7
            }],
            "state": "on",
            "default-state": "off"
        },
        "timeIntervalPump": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 10
            }],
            "state": "on",
            "dimlevel": 0
        },
        "timeDurationPump": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 11
            }],
            "state": "on",
            "dimlevel": 10,
            "dimlevel-minimum": 0,
            "dimlevel-maximum": 60
        }
    },
    "rules": {},
    "gui": {
        "currentDate": {
            "name": "Datum",
            "group": [ "Pumpen-Steuerung" ],
            "media": [ "all" ]
        },
        "pump": {
            "name": "Wasserpumpe",
            "group": [ "Pumpen-Stuerung" ],
            "media": [ "all" ]
        },
        "timeIntervalPump": {
            "name": "Schaltintervall (in Stunden)",
            "group": [ "Pumpen-Steuerung" ],
            "media": [ "all" ]
        },
        "timeDurationPump": {
            "name": "Schaltdauer (in Minuten)",
            "group": [ "Pumpen-Steuerung" ],
            "media": [ "all" ]
        }
    },
    "settings": {
        "log-level": 6,
        "pid-file": "/var/run/pilight.pid",
        "log-file": "/var/log/pilight.log",
        "webserver-enable": 1,
        "webserver-root": "/usr/local/share/pilight/webgui",
        "webserver-http-port": 5001,
        "webserver-https-port": 5002,
        "webserver-cache": 1,
        "gpio-platform": "raspberrypizero"
    },
    "hardware": {},
    "registry": {
        "webserver": {
            "ssl": {
                "certificate": {
                    "secure": 0,
                    "location": "/etc/pilight/pilight.pem"
                }
            }
        },
        "pilight": {
            "version": {
                "current": "8.1.0"
            }
        }
    }
}

Any idea, what's wrong or missing in this config?
Please let me know, if any information is missing.

Thanks in advance,
Robert
 
Reply
#2
https://manual.pilight.org/protocols/gen...immer.html
 
Reply
#3
Hi curlymo,

thanks for quick reply.
So the dimlevel-minimum and maximum have been moved to the gui settings. Correct?

Kind regards,
Robert
 
Reply
#4
Yes
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Config issues from development to stable 8.0 terrar 5 1,579 10-28-2017, 09:56 AM
Last Post: curlymo
Question [SOLVED]pilight-daemon: ERROR: config is not in a valid json format herrmeier 4 7,367 11-28-2015, 11:28 PM
Last Post: herrmeier
  invalid gpio range koos147 2 1,969 11-02-2015, 08:40 AM
Last Post: woutput
  Problem on config.json aXpi 14 6,929 10-14-2015, 09:13 PM
Last Post: curlymo
  invalid wiringx fleisch 2 2,041 10-12-2015, 05:18 PM
Last Post: curlymo
  HELP - New Config in V6.x Marcel 3 2,224 05-03-2015, 01:13 PM
Last Post: pilino1234
  How to merge old settings and config? Aweponken 5 2,837 03-27-2015, 08:02 PM
Last Post: Aweponken
  config protocol 'program' - stop-command for Flamingo Workaround flowolf 1 3,075 02-13-2015, 01:39 PM
Last Post: Flexzuu
  problems in config.json ejverf 3 2,883 12-14-2014, 07:46 PM
Last Post: ejverf
  ASUN-650 config vorkiej 0 1,693 10-26-2014, 04:57 PM
Last Post: vorkiej

Forum Jump:


Browsing: 1 Guest(s)