• 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


[Fully Supported] Kaku Door sensor (AMST-606)
#21
pilight work!

i added a kaku_contact, but when i disconnect them or connect them together, the status in pilight-webgui doesent change.

i have added it like this:
Code:
        "Esszimmerfenster": {
            "name": "Esszimmerfenster",
            "protocol": [ "kaku_contact" ],
            "id": [{
                "id": 13622050,
                "unit": 9
            }],
            "state": "closed"
        }

pilight receive shows me the same as deshmir!

the id and unit i used are the ones pilight-receive show me.

this is my output from pilight-daemon -V
pilight-daemon version 5.0, commit b1bb205

this is my setting.json
Code:
{
    "log-level": 4,
    "pid-file": "/var/run/pilight.pid",
    "config-file": "/etc/pilight/config.json",
    "hardware-file": "/etc/pilight/hardware.json",
    "log-file": "/var/log/pilight.log",
    "send-repeats": 10,
    "receive-repeats": 1,
    "webserver-enable": 1,
    "webserver-root": "/usr/local/share/pilight/",
    "webserver-port": 5001,
    "webserver-cache": 1,
    "whitelist": "",
    "update-check": 1,
    "firmware-update": 0
}
 
Reply
#22
I have done further investigation and have added the modifications required to support the arctech_contact protocol with pilight. For testing i have used the raw data provided.

You will find the modifications on my github account.

I am keeping the modifications in my_quigg branch synchronized with the original development branch, this all instructions for Manual Compiled Version can be used accordingly (replace the references to https://github.com/pilight/pilight.git with https://github.com/wo-rasp/pilight.git, and use my_quigg instead development for the branch)
 
Reply
#23
hi wo_rasp,

i have do all what you say, but now when i add a kaku_contact with my id and unit, the web gui doesn`t show me the contact.

when i look into pilight-receive i get a kaku_contact when i disconnect the parts, it`s state is shown as opened.

but my added contact isn`t shown in the webgui.

this is like i add the contact in the config:
Code:
        "door": {
            "name": "Door",
            "protocol": [ "kaku_contact" ],
            "id": [{
                "id": 13622050,
                "unit": 9
            }],
            "state": "opened"
        },

i`ve tried it also with closed.

thanks for your effort!
 
Reply
#24
Your config.json file configuration is correct.
WEB Interface did not support this type of contact.
Have added a basic WEB support _contact interface to my github account.
It is using the same GUI presentation as for switches, but instead of On/Off the state is Opened/Closed.
 
Reply
#25
Hi,

I am trying to install pilight following your instruction:

Quote:I am keeping the modifications in my_quigg branch synchronized with the original development branch, this all instructions for Manual Compiled Version can be used accordingly (replace the references to https://github.com/pilight/pilight.git with https://github.com/wo-rasp/pilight.git, and use my_quigg instead development for the branch)

I'm probably doing something stupid, could you show me where?

Code:
root@raspberrypi:~# git clone --depth 5 -b [my_quigg] https://github.com/wo-rasp/pilight.git
Cloning into 'pilight'...
warning: Could not find remote branch [my_quigg] to clone.
fatal: Remote branch [my_quigg] not found in upstream origin
Unexpected end of command stream
 
Reply
#26
Go to the directory where you want your pilight directory to be created.

Code:
root@wpi:/home/w/dummy# git clone -b my_quigg https://github.com/wo-rasp/pilight.git
Cloning into 'pilight'...
remote: Counting objects: 7253, done.
remote: Compressing objects: 100% (1835/1835), done.
remote: Total 7253 (delta 5347), reused 7253 (delta 5347)
Receiving objects: 100% (7253/7253), 4.16 MiB | 548 KiB/s, done.
Resolving deltas: 100% (5347/5347), done.
root@wpi:/home/w/dummy# cd pilight/
root@wpi:/home/w/dummy/pilight# git status
# On branch my_quigg
nothing to commit (working directory clean)
root@wpi:/home/w/dummy/pilight# ls
clients                   debug.c        pilight.h.in           tzdata.json
CMakeConfig.txt           flash.c        raw.c                  uuid.c
CMakeLists.txt            hardware.json  README.md              valgrind.sh
cmake_uninstall.cmake.in  init           receive.c              valgrind.supp
control.c                 learn.c        send.c                 web
COPYING                   libs           settings.json-default
daemon.c                  Makefile.old   setup.sh
root@wpi:/home/w/dummy/pilight#
 
Reply
#27
Thx, contact sensors up and running..
 
Reply
#28
Ir's a pleasure.
 
Reply
#29
nice ! worked also for me. thanks! can someone please implement it to pilight development?

thanks in advance !

found a mistake in my_quigg with the rev1_switch. its state is mixed. it shows the opposite.
 
Reply
#30
Once curlymo is back online i will work the pull-requests out with him.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  gs-iwds07 window sensor Loggisch 48 13,411 12-09-2019, 07:14 PM
Last Post: curlymo
  Digoo / Baldr / Nexus / Rubicson temperature/humidity sensor thielj 4 1,477 09-30-2019, 04:48 PM
Last Post: curlymo
  433MHz PIR sensor from Amazon ha_username 0 135 09-29-2019, 11:44 PM
Last Post: ha_username
  [Partially Supported] TFA / Conrad Weather Yves 184 12,732 03-31-2019, 05:22 PM
Last Post: curlymo
  [Fully Supported] DHT22 IcedEarth 86 32,219 11-18-2018, 09:33 AM
Last Post: curlymo
  Pearl weatherstation sensor for FWS-686 & FWS-665 chklump 13 4,872 08-12-2018, 05:34 PM
Last Post: fourty2
  TFA 30.3160 Pool Sensor wseifert 4 959 05-30-2018, 09:24 AM
Last Post: wseifert
  [Fully Supported] Arctech Old Martin 111 36,129 03-27-2018, 04:43 PM
Last Post: genfersee
Lightbulb BH1750 i2c digital illuminance sensor marcm 14 3,787 02-25-2018, 08:40 PM
Last Post: morph027
  [Fully Supported] Clarus Switches Marcin 69 25,054 01-30-2018, 07:10 PM
Last Post: Niek

Forum Jump:


Browsing: 1 Guest(s)