• 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
Standalone but SSDP
#1
 
Reply
#2
( @curlymo if I edit a thread title from the forum view (anything like this), MyBB blanks the first post!?!)

@brenner23 sorry for accidentally deleting the contents of your post, seems there's a bug in the forum software where if I rename a thread (SSTP -> SSDP in this case) it deletes the contents of the first post Crying
I hope you can edit your post and write your question again so that future users can see what was being asked.
However, I do remember the gist of your question, and here's what you need to do:

In the pilight manual (http://manual.pilight.org) there is a section which describes all settings that can be set in config.json
One of these settings is the "standalone" setting which you seem to have found. Now, if you only want lots of standalone pilight instances, it's best to set this in the configuration of every node.
Now, there is a setting called "port" which isn't set by default, so pilight will run on a random port, which is what you're seeing. Set this setting to any valid port number, and pilight will always run on that port instead of a random port number.
Code:
"settings": {
    "standalone": 1,
    "port": 5000,
    etc.
}

When you want to use pilight send with several standalone instances, use the server and port command line options. See
Code:
pilight-send --help
to see all of these. To use these settings, just add them to your pilight-send command along with any other options that you use to control your devices. An example:
Code:
pilight-send -S 127.0.0.1 -P 5000 ...protocols options here...
This will tell pilight-send to only send this code to the specified pilight instance.
 
Reply
#3
Iam using this

pilight-send -S 127.0.0.1 -P 5001 -p heitech -s 25 -u 2 -t

it seems no error but no light turn on ...

ive try

pilight-send -S 192.168.0.5 -P 5001 -p heitech -s 25 -u 2 -t

same...

i was try it in mode Standalone 1 and O

http://i.grab.la/07410-34b9a88b-7c0e-491...1d83c7.png
 
Reply
#4
Without a crystal ball (e.q. config.json) we can not even guess what's wrong.


Gesendet von iPhone mit Tapatalk
 
Reply
#5
Dont need a Crytal Ball ... here ist the Config Smile


Quote:{
"devices": {
"Shell01ON": {
"protocol": [ "program" ],
"id": [{
"name": "Shell01ON"
}],
"program": "/etc/pilight/Pump_test_on.sh",
"arguments": "",
"stop-command": "/etc/pilight/Pump_test_on.sh",
"start-command": "/etc/pilight/Pump_test_on.sh",
"state": "stopped",
"pid": 0
},
"Shell01OFF": {
"protocol": [ "program" ],
"id": [{
"name": "Shell01OFF"
}],
"program": "/etc/pilight/Pumptest_off.sh",
"arguments": "",
"stop-command": "/etc/pilight/Pump_test_off.sh",
"start-command": "/etc/pilight/Pump_test_off.sh",
"state": "stopped",
"pid": 0
},
"ers_schlaf_Licht_A": {
"protocol": [ "elro_800_switch" ],
"id": [{
"systemcode": 31,
"unitcode": 15
}],
"state": "off"
},
"ers_schlaf_Licht_B": {
"protocol": [ "elro_800_switch" ],
"id": [{
"systemcode": 15,
"unitcode": 15
}],
"state": "off"
},
"ers_schlaf_Licht_C": {
"protocol": [ "elro_800_switch" ],
"id": [{
"systemcode": 15,
"unitcode": 6
}],
"state": "on"
},
"New_S1_Licht_A": {
"protocol": [ "kaku_screen_old" ],
"id": [{
"id": 0,
"unit": 0
}],
"state": "down"
},
"New_S1_Licht_B": {
"protocol": [ "kaku_screen_old" ],
"id": [{
"id": 1,
"unit": 0
}],
"state": "down"
},
"New_S1_Licht_C": {
"protocol": [ "kaku_screen_old" ],
"id": [{
"id": 2,
"unit": 0
}],
"state": "up"
},
"New_S1_Licht_D": {
"protocol": [ "elro_800_switch" ],
"id": [{
"systemcode": 15,
"unitcode": 14
}],
"state": "off"
},
"New_S1_Licht_A_2": {
"protocol": [ "elro_800_switch" ],
"id": [{
"systemcode": 31,
"unitcode": 13
}],
"state": "off"
},
"New_S1_Licht_B_2": {
"protocol": [ "elro_800_switch" ],
"id": [{
"systemcode": 15,
"unitcode": 13
}],
"state": "on"
},
"New_S1_Licht_C_2": {
"protocol": [ "elro_800_switch" ],
"id": [{
"systemcode": 31,
"unitcode": 12
}],
"state": "off"
},
"New_S1_Licht_D_2": {
"protocol": [ "elro_800_switch" ],
"id": [{
"systemcode": 15,
"unitcode": 12
}],
"state": "on"
},
"New_S1_Licht_A_3": {
"protocol": [ "elro_800_switch" ],
"id": [{
"systemcode": 31,
"unitcode": 11
}],
"state": "off"
},
"New_S1_Licht_B_3": {
"protocol": [ "elro_800_switch" ],
"id": [{
"systemcode": 15,
"unitcode": 11
}],
"state": "off"
},
"New_S1_Licht_C_3": {
"protocol": [ "elro_800_switch" ],
"id": [{
"systemcode": 31,
"unitcode": 10
}],
"state": "off"
},
"New_S1_Licht_D_3": {
"protocol": [ "elro_800_switch" ],
"id": [{
"systemcode": 15,
"unitcode": 10
}],
"state": "off"
},
"weather": {
"protocol": [ "alecto_ws1700" ],
"id": [{
"id": 1399
}],
"temperature": 10.1,
"humidity": 69.0,
"battery": 1
},
"weather2": {
"protocol": [ "alecto_wx500" ],
"id": [{
"id": 188
}],
"temperature": 10.8,
"humidity": 65.0,
"windgust": 0,
"winddir": 0,
"windavg": 0,
"battery": 1
},
"Kerze_ON": {
"protocol": [ "daycom" ],
"id": [{
"id": 6,
"systemcode": 319,
"unit": 1
}],
"state": "off"
},
"Kerze_OFF": {
"protocol": [ "daycom" ],
"id": [{
"id": 6,
"systemcode": 304,
"unit": 1
}],
"state": "off"
},
"S1_Licht_A": {
"protocol": [ "quigg_gt7000" ],
"id": [{
"id": 3942,
"unit": 0
}],
"state": "off"
},
"S1_Licht_B": {
"protocol": [ "quigg_gt7000" ],
"id": [{
"id": 3942,
"unit": 1
}],
"state": "off"
},
"S1_Licht_C": {
"protocol": [ "quigg_gt7000" ],
"id": [{
"id": 3942,
"unit": 3
}],
"state": "off"
},
"S1_Licht_D": {
"protocol": [ "quigg_gt7000" ],
"id": [{
"id": 3942,
"unit": 2
}],
"state": "off"
},
"S1_Licht_D_DIMM": {
"protocol": [ "quigg_screen" ],
"id": [{
"id": 3942,
"unit": 2
}],
"state": "down"
},
"S_Licht_A": {
"protocol": [ "heitech" ],
"id": [{
"systemcode": 25,
"unitcode": 1
}],
"state": "off"
},
"S_Licht_B": {
"protocol": [ "heitech" ],
"id": [{
"systemcode": 25,
"unitcode": 2
}],
"state": "on"
},
"S_Licht_C": {
"protocol": [ "heitech" ],
"id": [{
"systemcode": 25,
"unitcode": 4
}],
"state": "off"
},
"S_Licht_D": {
"protocol": [ "heitech" ],
"id": [{
"systemcode": 25,
"unitcode": 8
}],
"state": "off"
},
"DUMMY_SW_A": {
"protocol": [ "heitech" ],
"id": [{
"systemcode": 0,
"unitcode": 0
}],
"state": "off"
}
},
"rules": {
"S_Licht_A_Off_Time": {
"rule": "IF S_Licht_A.state IS on THEN switch DEVICE S_Licht_A TO off AFTER 60 MINUTE",
"active": 1
},
"S_Licht_B_Off_Time": {
"rule": "IF S_Licht_B.state IS on THEN switch DEVICE S_Licht_B TO off AFTER 60 MINUTE",
"active": 1
},
"ers_schlaf_Licht_A_Off_Time": {
"rule": "IF ers_schlaf_Licht_A.state IS on THEN switch DEVICE ers_schlaf_Licht_A TO off AFTER 60 MINUTE",
"active": 1
},
"ers_schlaf_Licht_B__Off_Time": {
"rule": "IF ers_schlaf_Licht_B.state IS on THEN switch DEVICE ers_schlaf_Licht_B TO off AFTER 60 MINUTE",
"active": 1
},
"New_S1_Licht_A_Off_Time_Original_Schalter_Grau_A": {
"rule": "IF New_S1_Licht_A.state IS up THEN switch DEVICE New_S1_Licht_A TO down AFTER 60 MINUTE",
"active": 1
},
"New_S1_Licht_B_Off_Timee_Original_Schalter_Grau_B": {
"rule": "IF New_S1_Licht_B.state IS up THEN switch DEVICE New_S1_Licht_B TO down AFTER 60 MINUTE",
"active": 1
},
"S1_Licht_A_Off_Time": {
"rule": "IF S1_Licht_A.state IS on THEN switch DEVICE S1_Licht_A TO off AFTER 60 MINUTE",
"active": 1
},
"S1_Licht_D_Off_Time": {
"rule": "IF New_S1_Licht_D.state IS on THEN switch DEVICE New_S1_Licht_D TO off AFTER 60 MINUTE",
"active": 1
},
"Med_C_Off_Time": {
"rule": "IF S1_Licht_B.state IS on THEN switch DEVICE S1_Licht_B TO off AFTER 10 SECOND",
"active": 0
},
"StubeErsatzButtonAOFF": {
"rule": "IF New_S1_Licht_A_3.state IS off THEN switch DEVICE S_Licht_A TO off",
"active": 1
},
"StubeEratzButtonAON": {
"rule": "IF New_S1_Licht_A_3.state IS on THEN switch DEVICE S_Licht_A TO on",
"active": 1
},
"StubeErsatzButtonBOFF": {
"rule": "IF New_S1_Licht_B_3.state IS off THEN switch DEVICE S_Licht_B TO off",
"active": 1
},
"StubeEratzButtonBON": {
"rule": "IF New_S1_Licht_B_3.state IS on THEN switch DEVICE S_Licht_B TO on",
"active": 1
},
"StubeErsatzButtonCOFF": {
"rule": "IF New_S1_Licht_C_3.state IS off THEN switch DEVICE S_Licht_C TO off",
"active": 1
},
"StubeErsatzButtonCON": {
"rule": "IF New_S1_Licht_C_3.state IS on THEN switch DEVICE S_Licht_C TO on",
"active": 1
},
"StubeErsatzButtonDOFFShell": {
"rule": "IF New_S1_Licht_D_3.state IS off THEN switch DEVICE Shell01OFF TO running",
"active": 1
},
"StubeErsatzButtonDOnShell": {
"rule": "IF New_S1_Licht_D_3.state IS on THEN switch DEVICE Shell01ON TO running",
"active": 0
},
"MedionButtonAOFF": {
"rule": "IF New_S1_Licht_A_2.state IS off THEN switch DEVICE S1_Licht_A TO off",
"active": 1
},
"MedionButtonAON": {
"rule": "IF New_S1_Licht_A_2.state IS on THEN switch DEVICE S1_Licht_A TO on",
"active": 1
},
"MedionButtonBOFF": {
"rule": "IF New_S1_Licht_B_2.state IS off THEN switch DEVICE S1_Licht_B TO off",
"active": 1
},
"MedionButtonBON": {
"rule": "IF New_S1_Licht_B_2.state IS on THEN switch DEVICE S1_Licht_B TO on",
"active": 1
},
"MedionButtonCOFF": {
"rule": "IF New_S1_Licht_C_2.state IS off THEN switch DEVICE S1_Licht_C TO off",
"active": 1
},
"MedionButtonCON": {
"rule": "IF New_S1_Licht_C_2.state IS on THEN switch DEVICE S1_Licht_C TO on",
"active": 1
},
"MedionButtonDOFFShell": {
"rule": "IF New_S1_Licht_D_2.state IS off THEN switch DEVICE Shell01OFF TO running",
"active": 1
},
"MedionButtonDOnShell": {
"rule": "IF New_S1_Licht_D_2.state IS on THEN switch DEVICE Shell01ON TO running",
"active": 1
},
"ShellRule001OFF": {
"rule": "IF S_Licht_D.state IS off THEN switch DEVICE Shell01OFF TO running",
"active": 1
},
"ShellRule001ON": {
"rule": "IF S_Licht_D.state IS on THEN switch DEVICE Shell01ON TO running",
"active": 1
},
"MedionButtonBOFF_Rote_Lampe": {
"rule": "IF New_S1_Licht_D.state IS off THEN switch DEVICE S1_Licht_B TO off",
"active": 1
},
"MedionButtonBON_RoteLampe": {
"rule": "IF New_S1_Licht_D.state IS on THEN switch DEVICE S1_Licht_B TO on",
"active": 1
},
"ShellRule002OFF": {
"rule": "IF New_S1_Licht_D.state IS off THEN switch DEVICE Shell01OFF TO running",
"active": 0
},
"ShellRule002ON": {
"rule": "IF New_S1_Licht_D.state IS on THEN switch DEVICE Shell01ON TO running",
"active": 0
},
"ShellRule003OFF": {
"rule": "IF RSL_S1_Licht_D.state IS off THEN switch DEVICE Shell01OFF TO running",
"active": 0
},
"ShellRule003ON": {
"rule": "IF RSL_S1_Licht_D.state IS on THEN switch DEVICE Shell01ON TO running",
"active": 0
},
"Dummy_SW_RULE_A": {
"rule": "IF Kerze_ON.state IS off THEN switch DEVICE DUMMY_SW_A TO on",
"active": 1
},
"Dummy_SW_RULE_B": {
"rule": "IF Kerze_OFF.state IS on THEN switch DEVICE DUMMY_SW_A TO off",
"active": 1
},
"Kerze_ON_Rule": {
"rule": "IF DUMMY_SW_A.state IS on THEN switch DEVICE Kerze_ON TO on",
"active": 1
},
"Kerze_OFF_Rule": {
"rule": "IF DUMMY_SW_A.state IS off THEN switch DEVICE Kerze_OFF TO on",
"active": 1
},
"ON_to_OFF_RuleA": {
"rule": "IF Kerze_ON.state IS on THEN switch DEVICE Kerze_ON TO off",
"active": 1
},
"ON_to_OFF_RuleB": {
"rule": "IF Kerze_OFF.state IS on THEN switch DEVICE Kerze_OFF TO off",
"active": 1
}
},
"gui": {
"weather": {
"name": "Weather Station#1",
"group": [ "General" ],
"media": [ "all" ]
},
"weather2": {
"name": "Weather Station#2",
"group": [ "General" ],
"media": [ "all" ]
},
"S_Licht_A": {
"name": "Stub.A_Licht_1",
"group": [ "Stube" ],
"media": [ "all" ],
"readonly": 0
},
"S_Licht_B": {
"name": "Stub.B_Licht_2",
"group": [ "Stube" ],
"media": [ "all" ],
"readonly": 0
},
"S_Licht_C": {
"name": "Stub.C_Fernseher",
"group": [ "Stube" ],
"media": [ "all" ],
"readonly": 0
},
"S_Licht_D": {
"name": "Stub.D_Switch",
"group": [ "Stube" ],
"media": [ "all" ],
"readonly": 0
},
"New_S1_Licht_A": {
"name": "Schl.A",
"group": [ "Schlafzimmer" ],
"media": [ "all" ],
"readonly": 0
},
"New_S1_Licht_B": {
"name": "Schl.B",
"group": [ "Schlafzimmer" ],
"media": [ "all" ],
"readonly": 0
},
"New_S1_Licht_C": {
"name": "Schl.C",
"group": [ "Schlafzimmer" ],
"media": [ "all" ],
"readonly": 0
},
"New_S1_Licht_D": {
"name": "Schl.D",
"group": [ "Schlafzimmer" ],
"media": [ "all" ],
"readonly": 0
},
"S1_Licht_A": {
"name": "Aldi Switch A",
"group": [ "Sonstige" ],
"media": [ "all" ],
"readonly": 0
},
"S1_Licht_B": {
"name": "Aldi Switch B",
"group": [ "Sonstige" ],
"media": [ "all" ],
"readonly": 0
},
"S1_Licht_C": {
"name": "Aldi Sw.C PumpenSteuer.",
"group": [ "Sonstige" ],
"media": [ "all" ],
"readonly": 0
}
},
"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/",
"webserver-http-port": 5001,
"standalone": 0,
"webserver-cache": 1
},
"hardware": {
"433gpio": {
"sender": 0,
"receiver": 1
}
},
"registry": {
"webgui": {
"tabs": 0
},
"pilight": {
"firmware": {
"version": 65535,
"lpf": 614390,
"hpf": 655350
},
"version": {
"current": "7.0"
}
}
}
}

i am Thinking.... i can look into log
"log-file": "/var/log/pilight.log",
Maybe it can tell me somthing :-)
 
Reply
#6
quote tags are not code tags.
 
Reply
#7
I have put the Port: 5000 into the config .... and it runs now...

its solved now

thx
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Solved] No ssdp connection found Hexcode 145 144,225 12-23-2017, 02:10 PM
Last Post: HuberDe
  [Solved] pilight ssdp celle 6 8,017 02-23-2017, 03:22 PM
Last Post: gneandr
  Parser standalone ripper121 3 1,387 02-10-2017, 01:38 PM
Last Post: curlymo
  Raspbian jessie - pilight 7 - no pilight ssdp connections found shirocko 20 16,017 01-29-2017, 10:23 PM
Last Post: gneandr
  ssdp discovery clach04 5 4,742 05-23-2016, 04:23 PM
Last Post: pilino1234
  cannot bind to the ssdp multicast network wo_rasp 1 2,889 09-22-2015, 12:10 PM
Last Post: curlymo
  no pilight ssdp connections found/failed to kill 3400 Xilinx64 3 3,329 02-13-2015, 12:57 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)