homebridge-s7-plc
v0.0.13
Published
SIEMENS S7 PLC plugin for HomeBridge (https://github.com/homebridge).
Downloads
8
Maintainers
Readme
homebridge-S7-PLC
Installation
Basic Installation
- Install this plugin using:
npm install -g homebridge-s7-plc
- Edit
config.json
to add the plc platform and its accessories. - Run Homebridge
- Install this plugin using:
Install via Homebridge Web UI
- Search for
s7
on the plugin screen of config-ui-x . - Find
Homebridge S7 Plc
- Click install.
- Search for
Homebridge configuration
S7
platform for 1 PLC (the plugin is not tested for more than 1 PLC)IP
: the IPv4 address of the PLCRACK
: the rack number of the PLC typically 0SLOT
: the slot number of the PLC for S7 300/400 typically2
, for 1200/1500 typically1
- in the platform, you can declare different types of accessories:
S7_LightDimm
: it represent a 0/100% dimmable lightS7_LightBulb
: it represent a ON/OFF lightS7_Sensor
: it represent a Temperature sensor
Config.json Example
{
"platforms": [
{
"platform": "S7",
"IP": "192.168.0.25",
"RACK": 0,
"SLOT": 1,
"accessories": [
{
"accessory": "S7_LightDimm",
"name": "Palier",
"DB": 10,
"Byte" : 598
},
{
"accessory": "S7_LightBulb",
"name": "Chambre",
"DB": 10,
"Byte" : 280,
"WriteBitOn" : 3,
"WriteBitOff" : 2,
"ReadBitState" : 1
},
{
"accessory": "S7_Sensor",
"name": "Température de la chambre",
"DB": 10,
"Byte" : 888
}
]
}
]
}
PLC configuration
To be continued...