• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Sinclair81/Homebridge-Logo-TS: Homebridge Plugin for Siemens LOGO!s, written in ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

Sinclair81/Homebridge-Logo-TS

开源软件地址:

https://github.com/Sinclair81/Homebridge-Logo-TS

开源编程语言:

TypeScript 100.0%

开源软件介绍:

Homebridge Logo TS

!!! Homebridge-Logo-TS is deprecated, use Homebridge-Logo-Platform !!!

npm version donate

Standardraum

Use a Siemens LOGO! PLC for switch on whatever you want.
Communicate with LOGO! 8.SF4 over Modbus and with LOGO! 0BA7 / 0BA8 over Snap7.

Type of Accessory:

Type of Sensor Accessory:

Installation

  1. Install homebridge using: sudo npm install -g --unsafe-perm homebridge
  2. Install homebridge-config-ui-x using: sudo npm install -g --unsafe-perm homebridge-config-ui-x
  3. Update your configuration file with this guide: smartapfel.de
  4. Install homebridge-logo-ts using: homebridge-config-ui-x's Webserver (Homebridge must be started with sudo for the installation.)
  5. Update your configuration file with code like the sample below

Known Issues

  • none

Homebridge-Logo-TS Main Configuration Parameters

Name Value Required Option for Notes
accessory "Logo-TS" yes all Must be set to "Logo-TS".
name (custom) yes all Name of accessory that will appear in homekit app.
interface "modbus" or "snap7" yes all Communication, depends on LOGO! type, 8.SF4 Modbus or Snap7, 0BA7 / 0BA8 only Snap7.
ip "10.0.0.100" yes all Must be set to the IP of your LOGO! PLC.
port 505 no "modbus" Must be set to the Modbus Port of your LOGO! PLC, default is: 505.
logoType "8.SF4" no "snap7" Must be set to the type of your LOGO! PLC, default is: "8.SF4".
localTSAP "0x1200" no "snap7" Must be set to the localTSAP of your LOGO! PLC, default is: 0x1200.
remoteTSAP "0x2200" no "snap7" Must be set to the remoteTSAP of your LOGO! PLC, default is: 0x2200.
type "switch" or ... yes all Type of Accessory: "switch", "blind", "window", "garagedoor", "lightbulb", "thermostat", "irrigationSystem", "valve", "fan", "fanv2", "filterMaintenance", "ventilation" or Type of Sensor Accessory: "lightSensor", "motionSensor", "contactSensor", "smokeSensor", "temperatureSensor", "humiditySensor", "carbonDioxideSensor", "airQualitySensor"
updateInterval 0 no all Auto Update Interval in milliseconds, 0 = Off
randomInterval 1 no all Add a random Interval to Update Interval (0 - 10 seconds), default is: 1, -1 = Off
buttonValue 1 no all Value for Digital Button, default is: 1, -1 = 0
pushButton 1 no all If e.g. the network input in the LOGO! a hardware button on the LOGO! simulated. default is: 1, -1 = Off
debugMsgLog 0 no all 1 - Displays messages of accessories in the log.
retryCount 0 no all Retry count for sending the ModBus or Snap7 Message, default is: 0 (0 = 9 for ModBus / 5 for Snap7; -1 = Off).

Switch Accessory Configuration

Name Value Required Option for Notes
switchGet "Q1" yes* "switch" Switch Get - Qn, Mn or Vn.n
switchSetOn "V2.0" yes* "switch" Switch Set On - Mn or Vn.n
switchSetOff "V3.0" yes* "switch" Switch Set Off - Mn or Vn.n
"accessories": [
        {
            "accessory": "Logo-TS",
            "name": "Switch ModBus",
            "interface": "modbus",
            "ip": "10.0.0.100",
            "port": 505,
            "type": "switch",
            "switchGet": "Q1",
            "switchSetOn": "V2.0",
            "switchSetOff": "V3.0"
        },
        {
            "accessory": "Logo-TS",
            "name": "Switch Snap7",
            "interface": "snap7",
            "ip": "10.0.0.200",
            "logoType": "0BA7",
            "localTSAP": "0x1200",
            "remoteTSAP": "0x2200",
            "type": "switch",
            "switchGet": "Q2",
            "switchSetOn": "V2.1",
            "switchSetOff": "V3.1"
        }
    ]

Blind Accessory Configuration

Name Value Required Option for Notes
blindSetPos "VW50" yes* "blind" Blind Set Pos - AMn or VWn - (Analog Control)
blindGetPos "VW52" yes* "blind" Blind Get Pos - AMn or VWn - (Analog Control)
blindSetState "VW54" yes* "blind" Blind Get State - AMn or VWn - (Analog Control)
blindDigital 0 no "blind" 0 for Analog Control, 1 for Button Control
blindSetUp "V5.0" no "blind" Blind Set Up - Mn or Vn.n - (Button Control)
blindSetDown "V5.1" no "blind" Blind Set Down - Mn or Vn.n - (Button Control)
blindGetUpDown "V5.2" no "blind" Blind Up or Down - Mn or Vn.n - Return 1 for Up or 0 for Down - (Button Control)
"accessories": [
        {
            "accessory": "Logo-TS",
            "name": "Blind ModBus Analog",
            "interface": "modbus",
            "ip": "10.0.0.100",
            "port": 505,
            "type": "blind",
            "blindSetPos": "VW50",
            "blindGetPos": "VW52",
            "blindGetState": "VW54"
        },
        {
            "accessory": "Logo-TS",
            "name": "Blind Snap7 Analog",
            "interface": "snap7",
            "ip": "10.0.0.200",
            "logoType": "0BA7",
            "localTSAP": "0x1200",
            "remoteTSAP": "0x2200",
            "type": "blind",
            "blindSetPos": "VW50",
            "blindGetPos": "VW52",
            "blindGetState": "VW54"
        },
        {
            "accessory": "Logo-TS",
            "name": "Blind ModBus Digital",
            "interface": "modbus",
            "ip": "10.0.0.100",
            "port": 505,
            "type": "blind",
            "blindDigital": 1,
            "blindSetUp": "V5.0",
            "blindSetDown": "V5.1",
            "blindGetUpDown": "V5.2"
        },
        {
            "accessory": "Logo-TS",
            "name": "Blind Snap7 Digital",
            "interface": "snap7",
            "ip": "10.0.0.200",
            "logoType": "0BA7",
            "localTSAP": "0x1200",
            "remoteTSAP": "0x2200",
            "type": "blind",
            "blindDigital": 1,
            "blindSetUp": "V5.0",
            "blindSetDown": "V5.1",
            "blindGetUpDown": "V5.2"
        }
    ]

Window Accessory Configuration

Name Value Required Option for Notes
windowSetPos "VW50" yes* "window" Window Set Pos - AMn or VWn - (Analog Control)
windowGetPos "VW52" yes* "window" Window Get Pos - AMn or VWn - (Analog Control)
windowSetState "VW54" yes* "window" Window Get State - AMn or VWn - (Analog Control)
windowDigital 0 no "window" 0 for Analog Control, 1 for Button Control
windowSetUp "V5.0" no "window" Window Set Up - Mn or Vn.n - (Button Control)
windowSetDown "V5.1" no "window" Window Set Down - Mn or Vn.n - (Button Control)
windowGetUpDown "V5.2" no "window" Window Up or Down - Return 1 for Up or 0 for Down - (Button Control)
"accessories": [
        {
            "accessory": "Logo-TS",
            "name": "Window ModBus Analog",
            "interface": "modbus",
            "ip": "10.0.0.100",
            "port": 505,
            "type": "window",
            "windowSetPos": "VW50",
            "windowGetPos": "VW52",
            "windowGetState": "VW54"
        },
        {
            "accessory": "Logo-TS",
            "name": "Window Snap7 Analog",
            "interface": "snap7",
            "ip": "10.0.0.200",
            "logoType": "0BA7",
            "localTSAP": "0x1200",
            "remoteTSAP": "0x2200",
            "type": "window",
            "windowSetPos": "VW50",
            "windowGetPos": "VW52",
            "windowGetState": "VW54"
        },
        {
            "accessory": "Logo-TS",
            "name": "Window ModBus Digital",
            "interface": "modbus",
            "ip": "10.0.0.100",
            "port": 505,
            "type": "window",
            "windowDigital": 1,
            "windowSetUp": "V5.0",
            "windowSetDown": "V5.1",
            "windowGetUpDown": "V5.2"
        },
        {
            "accessory": "Logo-TS",
            "name": "Window Snap7 Digital",
            "interface": "snap7",
            "ip": "10.0.0.200",
            "logoType": "0BA7",
            "localTSAP": "0x1200",
            "remoteTSAP": "0x2200",
            "type": "window",
            "windowDigital": 1,
            "windowSetUp": "V5.0",
            "windowSetDown": "V5.1",
            "windowGetUpDown": "V5.2"
        }
    ]

Garage Door Accessory Configuration

Name Value Required Option for Notes
garagedoorOpen "V401.0" yes* "garagedoor" Garagedoor Open - Mn or Vn.n
garagedoorClose "V401.1" yes* "garagedoor" Garagedoor Close - Mn or Vn.n
garagedoorState "V401.2" yes* "garagedoor" Garagedoor State - Mn or Vn.n
garagedoorObstruction "false" no* "garagedoor" Garagedoor Obstruction Detected - "false" or a valid LOGO! Address (Mn or Vn.n)
"accessories": [
        {
            "accessory": "Logo-TS",
            "name": "GarageDoor ModBus",
            "interface": "modbus",
            "ip": "10.0.0.100",
            "port": 505,
            "updateInterval": 120000,
            "type": "garagedoor",
            "garagedoorOpen": "V401.0",
            "garagedoorClose": "V401.1",
            "garagedoorState": "V401.2",
            "garagedoorObstruction": "false"
        },
        {
            "accessory": "Logo-TS",
            "name": "GarageDoor Snap7",
            "interface": "snap7",
            "ip": "10.0.0.200",
            "logoType": "0BA7",
            "localTSAP": "0x1200",
            "remoteTSAP": "0x2200",
            "updateInterval": 120000,
            "type": "garagedoor",
            "garagedoorOpen": "V401.0",
            "garagedoorClose": "V401.1",
            "garagedoorState": "V401.2",
            "garagedoorObstruction": "false"
        }
    ]

Lightbulb Accessory Configuration

Name Value Required Option for Notes
lightbulbSetOn "V7.0" yes* "lightbulb" Lightbulb Set On - Mn or Vn.n
lightbulbSetOff "V7.1" yes* "lightbulb" Lightbulb Set Off - Mn or Vn.n
lightbulbSetBrightness "VW70" yes* "lightbulb" Lightbulb Set Brightness - AMn or VWn
lightbulbGetBrightness "VW72" yes* "lightbulb" Lightbulb Get Brightness - AMn or VWn
"accessories": [
        {
            "accessory": "Logo-TS",
            "name": "Lightbulb ModBus",
            "interface": "modbus",
            "ip": "10.0.0.100",
            "port": 505,
            "type": "lightbulb",
            "lightbulbSetOn": "V7.0",
            "lightbulbSetOff": "V7.1",
            "lightbulbSetBrightness": "VW70",
            "lightbulbGetBrightness": "VW72"
        },
        {
            "accessory": "Logo-TS",
            "name": "Lightbulb Snap7",
            "interface": "snap7",
            "ip": "10.0.0.200",
            "logoType": "0BA7",
            "localTSAP": "0x1200",
            "remoteTSAP": "0x2200",
            "type": "lightbulb",
            "lightbulbSetOn": "V7.0",
            "lightbulbSetOff": "V7.1",
            "lightbulbSetBrightness": "VW70",
            "lightbulbGetBrightness": "VW72"
        }
    ]

Thermostat Accessory Configuration

Name Value Required Option for Notes
thermostatGetHCState "VW210" yes* "thermostat" Thermostat Get Heating Cooling State - AMn or VWn
thermostatSetHCState "VW200" yes* "thermostat" Thermostat Set Heating Cooling State - AMn or VWn
thermostatGetTemp "VW212" yes* "thermostat" Thermostat Get Temperature - AMn or VWn - Current Temperature in °C (0°C - 100°C!!, a value of 105 is 10.5°C)
thermostatGetTargetTemp "VW214" yes* "thermostat" Thermostat Get Target Temperature - AMn or VWn - Current Temperature in °C (10°C - 38°C!!, a value of 105 is 10.5°C)
thermostatSetTargetTemp "VW202" yes* "thermostat" Thermostat Set Target Temperature - AMn or VWn
thermostatTempDisplayUnits 0 yes* "thermostat" Temperature Display Units - Celsius = 0; Fahrenheit = 1;
"accessories": [
        {
            "accessory": "Logo-TS",
            "name": "Thermostat ModBus",
            "interface": "modbus",
            "ip": "10.0.0.100",
            "port": 505,
            "type": "thermostat",
            "thermostatGetHCState": "VW210",
            "thermostatSetHCState": "VW200",
            "thermostatGetTemp": "VW212",
            "thermostatGetTargetTemp": "VW214",
            "thermostatSetTargetTemp": "VW202",
            "thermostatTempDisplayUnits": 0
        },
        {
            "accessory": "Logo-TS",
            "name": "Thermostat Snap7",
            "interface": "snap7",
            "ip": "10.0.0.200",
            "logoType": "0BA7",
            "localTSAP": "0x1200",
            "remoteTSAP": "0x2200",
            "type": "thermostat",
            "thermostatGetHCState": "VW210",
            "thermostatSetHCState": "VW200",
            "thermostatGetTemp": "VW212",
            "thermostatGetTargetTemp": "VW214",
            "thermostatSetTargetTemp": "VW202",
            "thermostatTempDisplayUnits": 0
        }
    ]

Irrigation System Accessory Configuration

Name Value Required Option for Notes
irrigationSystemGetActive "V400.0" yes* "irrigationSystem" Irrigation System Get Active - Mn or Vn.n
irrigationSystemSetActiveOn "V400.1" yes* "irrigationSystem" Irrigation System Set Active to On - Mn or Vn.n
irrigationSystemSetActiveOff "V400.2" yes* "irrigationSystem" Irrigation System Set Active to Off - Mn or Vn.n
irrigationSystemGetProgramMode "VW402" yes* "irrigationSystem" Irrigation System Get Program Mode - AMn or VWn - (0 - No Program scheduled; 1 - Program scheduled; 2 - Program scheduled manual Mode)
irrigationSystemGetInUse "V400.3" yes* "irrigationSystem" Irrigation System Get In Use - Mn or Vn.n
"accessories": [
        {
            "accessory": "Logo-TS",
            "name": "Irrigation System ModBus",
            "interface": "modbus",
            "ip": "10.0.0.100",
            "port": 505,
            "type": "irrigationSystem",
            "irrigationSystemGetActive": "V400.0",
            "irrigationSystemSetActiveOn": "V400.1",
            "irrigationSystemSetActiveOff": "V400.2",
            "irrigationSystemGetProgramMode": "VW402",
            "irrigationSystemGetInUse": "V400.3"
        },
        {
            "accessory": "Logo-TS",
            "name": "Irrigation System Snap7",
            "interface": "snap7",
            "ip": "10.0.0.200",
            "logoType": "0BA7",
            "localTSAP": "0x1200",
            "remoteTSAP": "0x2200",
            "type": "irrigationSystem",
            "irrigationSystemGetActive": "V400.0",
            "irrigationSystemSetActiveOn": "V400.1",
            "irrigationSystemSetActiveOff": "V400.2",
            "irrigationSystemGetProgramMode": "VW402",
            "irrigationSystemGetInUse": "V400.3"
        }
    ]

Valve Accessory Configuration

<
Name Value Required Option for Notes
valveGetActive "V400.0" yes* "valve" Valve Get Active - Mn or Vn.n
valveSetActiveOn "V400.1" yes* "valve" Valve Set Active to On - Mn or Vn.n
valveSetActiveOff "V400.2" yes* "valve" Valve Set Active to Off - Mn or Vn.n

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
lprhodes/homebridge-apple-tv-slate发布时间:2022-06-17
下一篇:
aangert/homebridge-musiccast-tv: Homebridge plugin for Yamaha MusicCast devices发布时间:2022-06-17
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap