README
Homebridge-Logo-Blind-REST
Use a Siemens Logo PLC for control blinds.
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-Blind-REST please donate: PayPal.Me/Sinclair81 !!
For this accessory you have to use in your logo the UDF Blind_analog_digital.lma or something similar!
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-blind-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-Blind-REST configuration parameters
Name | Value | Required | Notes |
---|---|---|---|
accessory |
"Logo-Blind-REST" | yes | Must be set to "Logo-Blind-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. |
position_id |
9 | yes | GET and SET the position of a blind. Must be set to a id for a logo_io_node from your Snap7 Logo Service. |
state_id |
10 | yes | GET the state of a blind. Must be set to a id for a logo_io_node from your Snap7 Logo Service. |
digital |
0 | no | Must be set to 1 if you do not want to control the blind via analogue values. And they do not want to use the analog UFD, but push buttons. |
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-Blind-REST",
"service": "10.0.0.7:5000",
"name": "Example 9-10 (analog)",
"position_id": 9,
"state_id": 10
},
{
"accessory": "Logo-Blind-REST",
"service": "10.0.0.7:5000",
"name": "Digital Example 1",
"position_id": 13,
"state_id": 0,
"digital": 1
},
{
"accessory": "Logo-Blind-REST",
"service": "10.0.0.7:5000",
"name": "Digital Example 2",
"position_id": 14,
"state_id": 0,
"digital": 1,
"push_button": 0
}
]