0.1.11 • Published 6 years ago
homebridge-logo v0.1.11
Homebridge-Logo
! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
Homebridge-Logo is deprecated please use:
Homebridge-Logo-REST
! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
Use a Siemens Logo PLC for switch on whatever you want.
- The plugin that this one is based on: homebrige-s7.
- Original plugin: homebridge-script2.
If you use Homebridge-Logo please donate: PayPal.Me/Sinclair81 !!
Installation
(Requires node >=6.0.0)
- Install homebridge using:
sudo npm install -g --unsafe-perm homebridge
- Install homebridge-config-ui-x using:
sudo npm install -g --unsafe-perm homebridge-config-ui-x
- Update your configuration file with this guide: https://smartapfel.de/homebridge/plugins-installieren/
- Install homebridge-logo using: homebridge-config-ui-x's Webserver
- Install snap7 with this guide: http://simplyautomationized.blogspot.de/2014/12/raspberry-pi-getting-data-from-s7-1200.html
- Update your configuration file with code like the sample below
Homebridge-Logo configuration parameters
Name | Value | Required | Notes |
---|---|---|---|
accessory | "Logo" | yes | Must be set to "Logo" and is required. |
name | (custom) | yes | Name of accessory that will appear in homekit app and is required. |
ip | "10.0.0.7" | yes | Must be set to the IP of your Logo PLC and is required. |
local_tsap | "0x4400" | no | Must be set to the local_tsap of your Logo PLC, default is: 0x4400. |
remote_tsap | "0x5400" | no | Must be set to the remote_tsap of your Logo PLC, default is: 0x5400. |
read_operator | "1105.4" | yes | Must be set to the Variable Memory for a Merker or Output. |
write_operator | "23.1" | yes | Must be set to the Variable Memory for a Network-Input or Merker. |
push_button | "true" | no | Must be set to "false" if your Network-Input act as a switch, default is: "true" (push_button means: 1. send a 1 to write_operator; 2. wait 0.2 sec; 3. send a 0 to write_operator) |
Configuration
"accessories": [
{
"accessory": "Logo",
"name": "Merker 13 Test (0BA8)",
"ip": "10.0.0.7",
"local_tsap": "0x4200",
"remote_tsap": "0x5200",
"read_operator": "1105.4",
"write_operator": "23.1",
"push_button": "false"
},
{
"accessory": "Logo",
"name": "Office light",
"ip": "10.0.0.3",
"read_operator": "943.7",
"write_operator": "10.0"
}
]