• 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
Config issues from development to stable 8.0
#1
I am really a fan of pilight, but:

Is it really necessary to change the software at almost every update so that the config.json no longer works? I spend every time hours in the forum to find out what was changed to bring the configuration back to run.

Can someone explain why I get this error reports again?

error message:
Code:
root@aquari:/home/pi# pilight-daemon -D
[Oct 28 06:31:22:591503] pilight-daemon: ERROR: rule #1 invalid: trying to compare integer variable "start_licht.state" to a string
[Oct 28 06:31:22:593433] pilight-daemon: ERROR: rule #1 invalid: trying to compare string variable "on" to an integer
[Oct 28 06:31:22:595360] pilight-daemon: INFO: rule #1 was parsed until: ... start_licht.state == on AND p1.state == off THEN switch DEVICE p1 TO on
[Oct 28 06:31:22:597442] pilight-daemon: INFO: rule #1 AQ_Beleuchtung_ein was parsed in 0.008229 seconds

my config:
Code:
root@aquari:/home/pi# cat /etc/pilight/config.json
{
    "devices": {
        "zeit": {
            "protocol": [ "datetime" ],
            "id": [{
                "longitude": 14.285830,
                "latitude": 48.306940
            }],
            "year": 2017,
            "month": 8,
            "day": 30,
            "hour": 15,
            "minute": 6,
            "second": 9,
            "weekday": 4,
            "dst": 1
        },
        "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": "off"
        },
        "stehlampe": {
            "protocol": [ "coco_switch" ],
            "id": [{
                "id": 19092782,
                "unit": 2
            }],
            "state": "off"
        },
        "wetter": {
            "protocol": [ "teknihall" ],
            "id": [{
                "id": 211.0
            }],
            "temperature": 25.4,
            "humidity": 48.0,
            "battery": 1.0
        },
        "start_licht": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 100
            }],
            "state": "off",
            "dimlevel": 8,
            "dimlevel-minimum": 6,
            "dimlevel-maximum": 10
        },
        "stop_licht": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 101
            }],
            "state": "off",
            "dimlevel": 20,
            "dimlevel-minimum": 16,
            "dimlevel-maximum": 22
        },
        "start_pumpe": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 102
            }],
            "state": "on",
            "dimlevel": 7,
            "dimlevel-minimum": 6,
            "dimlevel-maximum": 11
        },
        "stop_pumpe": {
            "protocol": [ "generic_dimmer" ],
            "id": [{
                "id": 103
            }],
            "state": "on",
            "dimlevel": 13,
            "dimlevel-minimum": 12,
            "dimlevel-maximum": 22
        }
    },
    "rules": {
        "AQ_Beleuchtung_ein": {
            "rule": "IF zeit.hour == start_licht.dimlevel AND (zeit.second % 10 == 0) AND start_licht.state == on AND p1.state == off THEN switch DEVICE p1 TO on",
            "active": 1
        },
        "AQ_Beleuchtung_aus": {
            "rule": "IF zeit.hour == stop_licht.dimlevel AND (zeit.second % 10 == 0) AND stop_licht.state == on AND p1.state == on THEN switch DEVICE p1 TO off AFTER 6 SECOND",
            "active": 1
        },
        "AQ_Luftheber_ein": {
            "rule": "IF zeit.hour == start_pumpe.dimlevel AND (zeit.second % 10 == 0) AND p2.state == off THEN switch DEVICE p2 TO on AFTER 7 SECOND",
            "active": 1
        },
        "AQ_Luftheber_aus": {
            "rule": "IF zeit.hour == stop_pumpe.dimlevel AND (zeit.second % 10 == 0) AND p2.state == on THEN switch DEVICE p2 TO off AFTER 8 SECOND",
            "active": 1
        }
    },
    "gui": {
        "p1": {
            "name": "Beleuchtung (P1)",
            "group": [ "Aquarium" ],
            "media": [ "all" ]
        },
        "p2": {
            "name": "Luftheber (P2)",
            "group": [ "Aquarium" ],
            "media": [ "all" ]
        },
        "p3": {
            "name": "P3 Test",
            "group": [ "Aquarium" ],
            "media": [ "all" ]
        },
        "start_licht": {
            "name": "Start Beleuchtung",
            "group": [ "Setup AQ" ],
            "media": [ "all" ],
            "confirm": 1
        },
        "stop_licht": {
            "name": "Stop Beleuchtung",
            "group": [ "Setup AQ" ],
            "media": [ "all" ],
            "confirm": 1
        },
        "start_pumpe": {
            "name": "Start Luftheber",
            "group": [ "Setup AQ" ],
            "media": [ "all" ],
            "confirm": 1
        },
        "stop_pumpe": {
            "name": "Stop Luftheber",
            "group": [ "Setup AQ" ],
            "media": [ "all" ],
            "confirm": 1
        },
        "zeit": {
            "name": "Uhrzeit",
            "group": [ "Aquarium" ],
            "media": [ "all" ]
        },
        "stehlampe": {
            "name": "Stehlampe",
            "group": [ "Wohnzimmer" ],
            "media": [ "all" ]
        },
        "wetter": {
            "name": "Wetter draussen",
            "group": [ "Wohnzimmer" ],
            "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": 0,
        "gpio-platform": "raspberrypi1b+",
        "port": 5000
    },
    "hardware": {
        "433gpio": {
            "sender": 0,
            "receiver": 1
        }
    },
    "registry": {
        "webgui": {
            "tabs": 1
        },
        "pilight": {
            "version": {
                "current": "7.0"
            }
        }
    }
}

installed this moment:
Code:
root@aquari:/home/pi# pilight-daemon -V
pilight-daemon version v8.0

Code:
deb http://apt.pilight.org/ stable main
#deb http://apt.pilight.org/ development main
deb https://apt.pilight.org/ nightly main

Code:
root@aquari:/home/pi# apt-cache policy pilight
pilight:
  Installiert:           8.0
  Installationskandidat: 8.0
  Versionstabelle:
*** 8.0 0
        500 https://apt.pilight.org/ stable/main armhf Packages
        100 /var/lib/dpkg/status
     7.0.252-g97d4b57 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.248-gb0556b3 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.246-g60fa904 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.245-g9019021 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.242-g99951fc 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.241-gb3b0941 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.239-g21698c4 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.238-g5599c7b 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.237-g0388f95 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.233-gbbc388b 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.232-g2b9a2b8 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.231-ge4b154d 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.230-g5199090 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.228-g5a40a80 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.222-gadec56f 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.217-ged2e1e3 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.214-g847bac2 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.213-gc1c8da8 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.212-g7614865 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.211-g5344ad8 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.210-g471db72 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.209-g2ebaa32 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.205-g47af6ad 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.204-gac8dab8 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.202-g6e03cdd 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.201-g1bfeb6c 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.200-gaa24171 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.199-g616d7b1 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.198-g1c5c59b 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.196-g3a09295 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.194-gadc4c79 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.192-gac1681a 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.190-g0d55586 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.189-g010fa3e 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.188-g7aa15fd 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.187-g4dab624 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.185-g136fbff 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.184-ga40f146 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.183-g39ece0b 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.182-g28d8093 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.180-gfe40ae4 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.178-g074447a 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.176-g8a9fc4f 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.174-ga830665 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.172-g9249fd0 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.170-gf17be68 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.168-g48c178b 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.166-gee35320 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.159-gcb1fdd1 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.152-g44205c9 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.150-g0f27f58 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.148-gb93e4c4 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.146-g001f2ea 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.144-g3aa1ab5 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.142-gd2b181e 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.140-ga2719cf 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.138-g62e3f56 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.136-ga42a65e 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.126-ga083de8 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.122-g3e9db4b 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.114-g6fa4b8b 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.110-g4cdb046 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.108-g0032183 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.107-g1639c2e 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.105-gb2d758c 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.103-gbe3d77f 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.99-gefd6aaa 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.97-gb0f3a05 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.93-g6104380 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.91-ge8c9992 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.89-g271b18a 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.87-g0827376 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.85-g5cdb407 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.83-gf4feb21 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.81-g22a3a0b 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.77-gcaad46f 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.75-gcfd2b34 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.73-gb6d460f 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.71-ge774832 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.69-g6eac84a 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.67-g960219e 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.65-ge490caa 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.63-g8c1ad7a 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.61-g76f0f5c 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.59-g6f3a679 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.57-g213fbaf 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.55-gd64382d 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.53-g1f56cea 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.51-g0cf1b82 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.49-g6ed7da9 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.47-gbb34d51 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.46-g31be1bf 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.44-g3364890 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.42-gfccc039 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.41-g1f93979 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.40-gd087b0b 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.39-g5ca79ef 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.37-gb35b96a 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.34-ga81e71c 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.32-g64a0608 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.31-gbbf23a3 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.30-g6becc0d 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.29-ga745fb6 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.27-g99be073 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.25-g6a94b36 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.24-gb64a135 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.21-ga8b12ea 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.16-g233c268 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.9-gfbc2643 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0.8-g953bb85 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     7.0 0
        500 https://apt.pilight.org/ stable/main armhf Packages
     7.0 0
        500 https://apt.pilight.org/ nightly/main armhf Packages
     6.0 0
        500 https://apt.pilight.org/ stable/main armhf Packages
     5.0 0
        500 https://apt.pilight.org/ stable/main armhf Packages
     4.0 0
        500 https://apt.pilight.org/ stable/main armhf Packages
     3.0 0
        500 https://apt.pilight.org/ stable/main armhf Packages
     2.1 0
        500 https://apt.pilight.org/ stable/main armhf Packages
     2.0 0
        500 https://apt.pilight.org/ stable/main armhf Packages
     1.0 0
        500 https://apt.pilight.org/ stable/main armhf Packages
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
"webserver-root": "/usr/local/share/pilight/"
or
"webserver-root": "/usr/local/share/pilight/webgui"
 
Reply
#3
Did not work...

It must have something to do with the rules i think
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
The stable version is not as far as development. So, all changes in the eventing library has not yet been ported and is therefor only available in development (despite development being at version 7 and stable at version 8 :p ). The reason behind this version mismatch is hard to explain, but was necessary to release a new version.

So, if you don't like these constant changes in the config, just stick with one version. Either stable or development and don't mix them up. If you keep with development, your config will run fine. Reinstalling development is as easy as:
Code:
apt-get install pilight=7.0.252-g97d4b57

I've also added a line to the changelog in the manual about this.
 
Reply
#5
After which I have activated nightly in the sources.list I have assumed that also the nightly is installed.
That the main was installed me on the fast not at all noticed.

I'll reinstall the other one.

works again.
thank you
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've added a line in the manual about how to install a specific version.
https://manual.pilight.org/installation....bian-based
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Git active branches and development behrisch 9 600 01-21-2019, 09:09 PM
Last Post: behrisch
  Crash in 8.1.3 stable on Pi 3 kylex 25 2,068 11-16-2018, 02:05 PM
Last Post: kylex
  invalid config file when using dimlevel-minimum or dimlevel-maximum ro.m 3 564 06-12-2018, 03:54 PM
Last Post: curlymo
  development, orangepi pc+, "no gpio-platform configured" Twain 1 2,210 06-01-2017, 05:51 PM
Last Post: curlymo
  pilight development installation -- failed / what is the secret? gneandr 5 2,647 02-04-2017, 10:06 AM
Last Post: gneandr
Music GIT related issues wo_rasp 49 16,165 01-29-2017, 06:53 PM
Last Post: andies
  Development Version kniazio 8 3,078 01-23-2017, 12:05 AM
Last Post: wo_rasp
Question [SOLVED]pilight-daemon: ERROR: config is not in a valid json format herrmeier 4 7,234 11-28-2015, 11:28 PM
Last Post: herrmeier
  Problem on config.json aXpi 14 6,812 10-14-2015, 09:13 PM
Last Post: curlymo
  HELP - New Config in V6.x Marcel 3 2,200 05-03-2015, 01:13 PM
Last Post: pilino1234

Forum Jump:


Browsing: 1 Guest(s)