Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

homebridge-syntex-webhooks

Package Overview
Dependencies
Maintainers
1
Versions
1176
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-syntex-webhooks

A webhook plugin for HTTP devices

  • 1.0.5-b10
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.2K
increased by1272.41%
Maintainers
1
Weekly downloads
 
Created
Source

Homebridge SynTex Webhooks

A plugin to control and to create HTTP devices.

Installation

  1. Install homebridge using: sudo npm install -g homebridge
  2. Install this plugin using: sudo npm install -g homebridge-syntex-webhooks
  3. Update your configuration file. See snippet below.

Example Config

INFO: If the directory for the storage can't be created you have to do it by yourself and give it full write permissions!

  • For the mac address you can use either a real mac address or another unique text
  • Every device needs these configurations: mac, name and type
"platforms": [
    {
        "platform": "SynTexWebhooks",
        "port": 1710,
        "cache_directory": "./SynTex/",
        "sensors": [
            {
                "mac": "EC:FA:BC:59:3F:3C",
                "name": "Temperature",
                "type": "temperature"
            },
            {
                "mac": "EC:FA:BC:59:3F:3C",
                "name": "Humidity",
                "type": "humidity"
            },
            {
                "mac": "EC:FA:BC:59:3F:3C",
                "name": "Light",
                "type": "light"
            },
            {
                "mac": "sensor1",
                "name": "Leak",
                "type": "leak"
            },
            {
                "mac": "sensor2",
                "name": "Motion",
                "type": "motion"
            },
            {
                "mac": "sensor3",
                "name": "Contact",
                "type": "contact"
            }
        ],
        "switches": [
            {
                "mac": "EC:FA:BC:59:3F:3C",
                "name": "Switch",
                "type": "switch",
                "on_method": "GET",
                "on_url": "http://192.168.178.164/switch?state=true",
                "off_method": "GET",
                "off_url": "http://192.168.178.164/switch?state=false"
            },
            {
                "mac": "EC:FA:BC:59:3F:3C",
                "name": "Relais",
                "type": "relais",
                "on_method": "GET",
                "on_url": "http://192.168.178.162/switch?state=true",
                "off_method": "GET",
                "off_url": "http://192.168.178.162/switch?state=false"
            },
            {
                "mac": "switch1",
                "name": "Dummy",
                "type": "switch"
            }
        ]
    }
]

Update HTTP Devices

  1. Open http:// Bridge IP /devices?mac= Bridge Mac &value= New Value
  2. Insert the Bridge IP and Device Mac
  3. For the New Value you can type these patterns:
  • For boolean devices: true / false
  • For numeric devices: 10 / 12.4

See HTTP Device Values

  1. Open http:// Bridge IP /devices?mac= **bridgeMac
  2. Insert the Bridge IP and Device Mac

Currently Supported

  • Temperature Sensor
  • Humidity Sensor
  • Light Sensor
  • Leak Sensor
  • Motion Sensor
  • Contact Sensor
  • Switch

Keywords

FAQs

Package last updated on 31 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc