Comments (7)
Update: I believe I have found part of the problem:
It scans the network to find compatible devices and installs them (currently only switches type SP?).
My server is in the subnet 10.10.10.0/24
and the broadlink in 192.100.1.0/24
. This is because I have all IOT devices in a network that doesn't allow them to connect to the internet and/or "important" devices in my network. Can I somehow tell the adapter the appropriate IP by manually creating some file? I am sure that when it scans the network it'll save those found devices somewhere. So if I could just manually tell it the IP it should work.
tl;dr different subnet so adapter doesn't discover the broadlink on its own.
from iobroker.broadlink2.
Dear Prankousky,
the devices need to be on the same network than the adapter, but the iobroker instance where the adapter is running might be connected to multiple networks via different interfaces.
I have an example from my side, I use an raspi which has a lan connection connected to normal network and a wireless connection to the wlan where the broadlink devices are connected. In this case the adapter will send the broadcast request to both networks and receive back answers from devices.
You cannot send broadcasts to other networks than the ones you are connected with directly.
from iobroker.broadlink2.
Thank you @frankjoke
I was not able to test this yet because neither of my USB wifi dongles work with my device (not a raspberry pi). However, I just ordered an USB ethernet adapter and hopefully will be able to get into the same network this way.
My inital thought was to add the broadlink to my regular wifi to see how it works; but seems like it does not even support 5GHz wifi, and my AP is both 2.4 and 5GHz, so it refused to connect. I only have one "pure" 2.4GHz network, which I set up for an old printer with the same "disability" ;) I added the broadlink to that one, but due to not being able to connect to that wifi with my server, I could not try if that works.
Does it have to be the same network, or is the same subnet sufficient? That network "drucker" is only available via wifi, but when I get the ethernet adapter, I was going to just give my server a second IP (on top of its current ethernet connection) and assign the same ip range I use for that "drucker" network.
Just in case that will not work, either: is there anything else I can try? I guess I could try buying a third wifi dongle, but those two I had usually worked with debian (well, raspbian), but will not work with regular debian as I am running on my server.
from iobroker.broadlink2.
The Broadlinks use only 2.4GHz and I used a special (freeware) app on my Android to make sure that the mobile which is pulling the device into the network is running on 2.4GHz itself because I have same situation with both networs on the same SSID.
I use a Fritzbox and disable internet access un a by device base, which mean that after I pull the device into network I disable the internet access of this device in FritzBox.
I plan to work on some updates to the adapter later this month and will check if I can communicate with known devices on other IP's but at the moment it is not foreseen because the protocoll of the device is to answer to a broadcast message or to contact internatinal (chinese) servers.
from iobroker.broadlink2.
Awesome, thank you. It worked now: broadlink in some 2.4GHz network and my server via usb to ethernet adapter added to the same subnet.
One not related question, but I didn't want to open an additional issue for it: I learned some IR codes and copy the string values (example 2600580000012a9215111511151214121412141214121436153515361535153515361535153416111511151115361511153515111511153614361535151115361412143615351511150004fe00012a4815000c4d00012b4815000d05
).
I then created an mqtt topic for _SendCode
. When I send anything via mqtt, nothing happens; however, when I go to objects - RM:RMPROPLUS-63-8c-6c - L
(that's where it automatically saved all learned codes) and click on "Simuliere Tastendruck", it "works". Well, I can't actually tell whether or not it actually works, but I see my broadlink blink the right yellow (orange?) LED. When I send via mqtt, the correct string shows up in _SendCode
, but it does not seem to do anything, and the led does not blink, either.
I use ioBroker kind of as my "addressor" as it supports so many different hardware devices; however, I usually use node-red to handle anything not directly related to those devices, for example, I wrote a node-red flow to send the code pasted above when I send kühler
to home/misc/ir/klimaanlage
. When I send this string, it will send the string from above to home/misc/broadlink/sendCode
, which is mapped to _SendCode
.
from iobroker.broadlink2.
I see you actually work in german (at lease with german names). You could use better the forum https://forum.iobroker.net/topic/6881/adapter-broadlink2 to raise such questions.
Anyhow, I need to investigate on _SendCode, actually don't use it because I renamed all learned codes to meaningfull commands and send then a true
to it directly so I don't need to handle the codes outside of the adapter.
p.s.: I started also to use node-red and MQTT but gave up on it because I could handle all things directly via vis and the adapters after I created adapters like broadlink2.
from iobroker.broadlink2.
Thank you.
Yes, I work in German ;) I wasn't sure whether or not I should ask here in English, so I just did (oder soll ich lieber auf deutsch weiter schreiben?).
Ok ,you say you'll just send true
to any of those. Am I to understand that I could just create an mqtt topic for each Klimaanlage Temp +
, Klimaanlage Temp -
and Klimaanlage on/off
, then send true
via
in case anybody found this while searching for a solution: yes, this works. Create an mqtt topic per button you want to press, send true, and it will trigger the button (or well, at least the LED will flash)
I had been using node-red way before ioBroker, so most of my logics etc. did already exist; I figured I'd keep node-red as my main system and just pass on whatever I cannot do by itself to ioBroker.
from iobroker.broadlink2.
Related Issues (20)
- Neu DeviceType for Rm4 Mini HOT 2
- Problems link RM4 Pro HOT 1
- error beim Beenden seit JS-Controller 3.2.x HOT 1
- RM4(pro) - RF-Leaning funzt net HOT 2
- RM4Pro not working HOT 8
- Synology/Docker --> IoBroker --> Broadlink2
- RM3 buntes Gehäuse von Amazon mit 0x6507 S/N:RM7...klappen nicht HOT 2
- Think about to fix the issues found by adapter checker
- Compatibility check to js-controller 3.3 and Admin5 React UI HOT 1
- Compatibility check and testing for Node.js 14 and 16 HOT 1
- RM3 Mini wird nicht korrekt erkannt HOT 5
- Eingelernte Signale werden nicht mehr angelegt
- Compatibility check to js-controller 4.0 HOT 1
- RF commands learned with iobroker do not work. HOT 1
- Code wird nicht gesendet HOT 3
- RM3 mini does not learn codes HOT 1
- Device discovered which operates in cloud mode and could not be authenticated RM4pro HOT 4
- [QA] activate eslint checks and fix source
- This object will not be created in future versions. Please report this to the developer. HOT 1
- Help: How to connect an RM4C Mini HOT 1
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 iobroker.broadlink2.