0.1.7 • Published 6 years ago
homebridge-logo-rest v0.1.7
Homebridge-Logo-REST
Use a Siemens Logo PLC for switch on whatever you want.
This is a client for: Snap7 Logo Service
- The plugin that this one is based on: homebrige-s7.
- Original plugin: homebridge-script2.
If you use Homebridge-Logo-REST 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-rest using: homebridge-config-ui-x's Webserver
- Install and Run Snap7 Logo Service
- Update your configuration file with code like the sample below
Homebridge-Logo-REST configuration parameters
Name | Value | Required | Notes |
---|---|---|---|
accessory | "Logo-REST" | yes | Must be set to "Logo-REST". |
service | "10.0.0.7:5000" | yes | Must be set to the Ip and Port of your Snap7 Logo Service. |
name | (custom) | yes | Name of accessory that will appear in homekit app. |
id | 1 | yes | Must be set to a id for a logo_io_node from your Snap7 Logo Service. |
push_button | 1 | no | Must be set to 0 if your Network-Input act as a switch, default is: 1 (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-REST",
"service": "10.0.0.7:5000",
"name": "Example 1",
"id": 1
},
{
"accessory": "Logo-REST",
"service": "10.0.0.7:5000",
"name": "Example 3",
"id": 3,
"push_button": 0
}
]