Giter VIP home page Giter VIP logo

homebridge-http-multiswitch's People

Contributors

jdtsmith avatar nitaybz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

homebridge-http-multiswitch's Issues

Radio button - Default

This accessory allows all switches to be off in the 'multiswitch' mode.

A 'default' switch should be an option. It's impossible to not choose an 'Radio Switch' option, so if a switch is turned off, the 'default' should be turned on.

Great Switcher - Fan Control Possible?

Hi,

This is a great switcher and I have it working neatly. Just a question though (perhaps a feature request), is it possible to show a device as a multi-speed Fan?

For example, I have a broad link RM Pro with the android plugin allowing control by HTTP. I have set up the multi switch and it works perfectly, but obviously shows as 4 individual switches (Off, Low, Medium and High).

Is it possible to have this show as a single device with multiple options, similar to AC and HomeKit fan controllers?

Thanks, Drew

Compact view / url issue...

So I'm trying to make a multiswitch to control my Ikea Tradfri lighting via ZigbeeToTasmota with a Sonoff ZigBee bridge.
Everything works A1 when using regular url query via safari or whatever browser but I have 2 issues when doing it via home-bridge-http-multiswitch... Sorry if I had to submit 2 issues for that but I wasn't sure...

So first of all, here is the urls that I'm trying to map to a 4 buttons multiswitch (radio mode):

http://10.10.10.10/cm?&cmnd=zbsend%20{%20"Device":"Tradfri_Kitchen",%20"Send":{"dimmer":"255"}%20}
http://10.10.10.10/cm?&cmnd=zbsend%20{%20"Device":"Tradfri_Kitchen",%20"Send":{"dimmer":"192"}%20}
http://10.10.10.10/cm?&cmnd=zbsend%20{%20"Device":"Tradfri_Kitchen",%20"Send":{"dimmer":"128"}%20}
http://10.10.10.10/cm?&cmnd=zbsend%20{%20"Device":"Tradfri_Kitchen",%20"Send":{"dimmer":"64"}%20}
http://10.10.10.10/cm?&cmnd=zbsend%20{%20"Device":"Tradfri_Kitchen",%20"Send":{"dimmer":"0"}%20}

Problem 1: they don't work when configured has :
{
"accessory": "HttpMultiswitch",
"switch_type": "Multiswitch",
"name": "Éclairage comptoir",
"http_method": "GET",
"base_url": "http://10.10.10.10/cm?&cmnd=zbsend%20{%20\"Device\":\"Tradfri_Kitchen\",%20\"Send\":{\"dimmer\":\"",
"multiswitch": [
"100%",
"75%",
"50%",
"25%",
"0%"
],
"multiurls": [
""255"}%20}",
""192"}%20}",
""128"}%20}",
""64"}%20}",
""0"}%20}"
]
}

Problem 2, the ios interface for that button is way too big... is there any way to make a compact view for it so that all all buttons fits one screen ?
IMG_8E41464E12F3-1

Additional execution of HTTP

Hello, great plug-in, thanks a lot!!!

Is it possible to add an execution of additional HTTP line.
In my case I managed to adjust your plug-in to control Bang & Olufsen speaker, however it requires 2 HTTP GET commands, one to set the Data (Music Source) and Second Get to execute the timer.
Just additional parameter in config with full URL that is executed in case if declared in the config.json right after any multiswitch HTTP command would be fantastic!

Many thanks,
Peter

Send action at startup

The plugin works very well for me, I just have not found out if you can automatically set the switch to on when you start the homebrige and perform the associated action?

my json:
{
"accessory": "HttpMultiswitch",
"switch_type": "Switch",
"name": "Wordclock",
"http_method": "GET",
"base_url": "http://192.168.0.119?action=",
"on_url": "poweron",
"off_url": "poweroff"
}

open/close switch

I try to use this plugin with a windowopener:
The HTTP-commands I want to send:
' http://10.0.1.29/open' and ' http://10.0.1.29/close'

I set my json with:
{
"accessory": "HttpMultiswitch",
"switch_type": "Switch",
"name": "Axa remote",
"http_method": "GET",
"base_url": "http://10.0.1.29",
"on_url": "/open",
"off_url": "/close"
}

But when I use my homebridgeswitch 'Axa remote' I get an error:
'setPowerState failed: connect ECONNREFUSED 10.0.1.29:80'

It seems like this plugin can't process an open/close command. Is this right an is it maybe possible to adjust this plugin with it? Or is there another homebridge plugin which supports this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.