nitaybz / homebridge-http-multiswitch Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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.
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
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 ?
Hello, what on_body off_body URLs need to return? True/False?
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
Hi,
after updating from Node v14.16.0 to Node v18.13.0 the Plugin isnt working anymore.
Is there any solution for this?
Installed in Docker on a Synology NAS.
Thank you und kind regards
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"
}
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.