Comments (4)
I have the same problem. Use Mumbi RC Sockets that are the same as ELRO.
I have my dips set up to
Socket A: ON ON ON ON ON ON OFF OFF OFF OFF (11111 10000)
Socket B: 11111 01000
Socket C: 11111 00100
I can't figure out what tristate code I have to use.
Where do you put that? "also testet it directly with the arduinofunction called mySwitch.sendTriState("0F00FFFFFFF0"); and it worked."
When I test my setup just with Arduino it works with this sketch uploaded to the arduino:
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
void setup() {
mySwitch.enableTransmit(10);
}
void loop() {
mySwitch.switchOn("11111", "10000");
delay(3000);
mySwitch.switchOff("11111", "10000");
delay(3000);
mySwitch.switchOn("11111", "01000");
delay(3000);
mySwitch.switchOff("11111", "01000");
delay(3000);
mySwitch.switchOn("11111", "00100");
delay(3000);
mySwitch.switchOff("11111", "00100");
delay(3000);
}
from heimcontrol.js.
Hi, I had to edit the following:
nano ~/heimcontrol.js/plugins/arduino/index.js
to something like this:
// Send RC code
if (item.value) {
return that.pins[item.pin].triState(item.code + "FFFF");
} else {
return that.pins[item.pin].triState(item.code + "FFF0");
}
You can just enter 8 digits of the tristate code, but you have 10 to set up. Last 2 Digits are for on/off signal. So do the following:
Take your socket and put all the micro-switches on Off and set up heimcontrol to FFFFFFFF (8x). Then open index.js and edit the Tristatecode as mentioned above. It should work. F means off and 0 means on - pretty wiered? :D..Anyway. You don't need to handle the groups or housecodes. So you can just vary the first 8 digits and get your 2^8 Sockets working. Good luck
from heimcontrol.js.
thanks alot!! thats it! I changed that code in arduino/index.js before, but the tristate to put in the homecontrol GUI was the problem.
Set Socket 1 all OFF and FFFFFFFF in homecontrol
Set Socket 2 all OFF exept the A ON, FFFFF0FF in homecontrol
Socket 3 all OFF B ON, FFFFFF0F in homecontrol
Works perfect!
First I tried on Socket 2 all OFF, 2 ON, F0FFFFFF in homecontrol but that didn't work.
so can I only vary the last 5 digits?
from heimcontrol.js.
Just for the record: Heimcontrol accepts 8 digits and has 4 hardcoded as quoted above (here’s the source). That’s a little unfortunate, because ELRO uses 10 digits, 5 “house code” + 5 “device code”, plus 2 for on/off.
So here’s what you need to do if you have this system:
- adjust the last two hardcoded digits as described above
- make sure the last two DIP switches of your outlets match the first two hardcoded digits (
F
isOff
,0
isOn
) - set up the first eight switches in whichever way you like — if you want to use the original remotes, follow the original instructions: choose a “house code” for the first 5 and use the
ABC
device identifiers (notDE
as those are the hardcoded 9th and 10th digits!) - use that 8 digit code in Heimcontrol’s web interface — it should be working now
This bug is still open imho done:
- Heimcontrol uses 8 adjustable + 4 hardcoded digits, but ELRO uses 10+2 — the latter would work for everyone
- Heimcontrol hardcodes the on/off-suffixes — they should be exposed as options
Edit: Well, I went ahead and did it. Let me know if this makes it easier, or if there’s still any problems.
from heimcontrol.js.
Related Issues (20)
- Fails to load ds18x20 HOT 1
- Sensors HOT 1
- Supported hardware and protocols? HOT 5
- Output button removal for relay use HOT 7
- RGB Not working
- Error at startup this.board.setup(); undefined is not a function
- Docker Container for Heimkontrolle.js
- Arduino RC Switch - Format for RC codes HOT 7
- Changing arduino digital pin values (high/low) based upon sensor value HOT 1
- Install raspberry pi 2 model d
- Bluetooth LE -> Arduino? IFTTT?
- Multiple errors during install HOT 5
- Automatic Mode
- Presenting a new repo
- Webcam (using streamer) showing black screen HOT 1
- How to run heimcontrol.js on windows system?
- socket.io error on startup (fresh install) HOT 1
- Broken dependencies (aka: is this project still active ?) HOT 1
- Startup heimcontrol.js
- updated URL required
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heimcontrol.js.