Broadlink service

For the first part, the errors on the device, I opened an issue on the library’s GitHub

As for the editing issue, I’ll take care of it :wink:

1 Like

Thanks.

As for the learning mode when adding a remote, no surprise, we also have an error, and the RM4 doesn’t work with it:

2022-05-08T23:08:57+0200 \u003cerror\u003e broadlink.learn.js:33 (BroadlinkHandler.learn) Broadlink fails to enter in learning mode on 83da3dae0bec device Error: 65529
    at Socket.\u003canonymous\u003e (/src/server/services/broadlink/node_modules/node-broadlink/dist/device.js:118:28)
    at Object.onceWrapper (events.js:520:26)
    at Socket.emit (events.js:400:28)
    at UDP.onMessage [as onmessage] (dgram.js:931:8)

We’ll wait for their feedback to know more and for the next tests ^^

Correction @AlexTrovato, il fallait modifier l’option « Lock device » dans les paramètres de l’application Broadlink.

Donc plus d’erreur sur le polling

Toutefois la température me parait étrange :slight_smile: ^^

Et l’édition de l’appareil RM4 Pro fonctionne maintenant bien :

Concernant la création de la télécommande … sur mobile le bandeau haut fait un peu pâté (Samsung S21) :

Sinon ça à l’air de bien marcher. Le mode apprentissage fonctionne bien et se valide bien !!

Je poursuis demain ^^ Hâte ^^

Edit : Further feedback
On the remote, if you switch to learning mode, press the wrong button and then want immediately after the end of the full learning to reprogram it, the « Capture signal » button does not appear and becomes « Next button in 3s » without counting down.

When saving the remote, is the « Done » button really necessary? The term doesn’t seem appropriate — maybe show this for 2/3 seconds before refreshing the page and automatically returning to the devices?

On the Dashboard side, I echo Albenss’s message:

Since the creation of features happens once you save, I suppose, if the « Turn off » and « Turn on » signals are the same, shouldn’t it indeed be a Push button? And if the buttons are different… how can you know if the TV is already on or off for the switch?? ^^

Maybe this is normal for now, but when adding « Room devices », I only have Power, Channels (number) and Volume (down and up).
I don’t really understand why it’s a slider ^^ — you’re forced to click in the center then again on the left to decrease the volume by 0.5. Shouldn’t there be two Down and Up buttons like for a roller shutter, for example.

Will it be possible to add custom buttons?

Also, lots of good things, notably:

  • The complete learning mode which works super well and is very handy; I checked in the inspector, everything was correctly recorded,
  • The ability to rename the button (even if I don’t see the point at the moment because the display in the devices view remains the feature type and on the dashboard it’s the Device name that is shown ^^ A custom name + icon mode would be awesome even though I don’t see how you could do it simply (to save the icon)^^

End of tests for now:
I tried to create a 2nd remote… and then it’s a disaster ^^ new page freeze requiring a forced refresh and a front-end error:

1 Like

I tried deleting the 1st remote then the RM4 and recreating it, but it’s still the same, can’t recreate a new remote anymore?? What happened in between… no idea ^^

Edit: Ah apparently you’ll soon find out, GitHub crashed ^^ It must be related to your last change
![image|690x

@VonOx or @AlexTrovato,

Maybe a silly question? I opened ports 1443 and 1444 for TCP and UDP inbound and outbound on WSL. I change in the front the localhost:1443 to my PC’s IP address 10.1.0.62:1443 and pinging the gateways via WSL works fine. Question: (I suppose it goes further than that) Why doesn’t it see the gateways? Are there other ports to open, or is it impossible or dangerous?

Because the WSL network runs inside a VM, basically the VM itself is not visible on your local network

This is what I understood from the literature I see online, but I can’t find anything about how to solve it. Is it a hardware limitation? Software? Deliberate and impossible to do otherwise? Because this issue is really limiting for development. How do business developers work around this? So no business development under WSL then? ^^ Sorry for my borderline off-topic questions here!!

You need to configure WSL in bridge mode (not NAT)

In the Hyper-V Manager you need to edit the WSL switch to External network

Then on the WSL VM get an IP on your network.

sudo ip addr add 192.168.0.116/24 dev eth0
sudo ip addr flush dev eth0
sudo dhclient eth0

Edit: Here’s what it looks like on my WSL (looks OK)

1 Like

Awesome, it works like a charm!! In the end, once again, searching is an art!! I’m almost ashamed because I assume it’s easy to find with a search engine and yet I searched for hours before daring to ask.

Many thanks @VonOx. The gateway comes up fine :heart_eyes: :heart_eyes:

1 Like

Yeah, though it’s not persistent, and be careful with DNS resolution

I’ll try to script this to make the developers’ job easier under WSL.

Infos here => https://stackoverflow.com/a/64217350
Static IP => WSL2 Set static ip? · Issue #4210 · microsoft/WSL · GitHub

1 Like

Hey,

Quick question, I’d actually like to buy a Broad

I got the RM4 Pro because it also does RF433. I was able to test it with my gate remote, it works perfectly (not yet in Gladys, though, on the Broadlink App for now). And the range too, which is very important to me!!

Edit: I should say just « RF » because it handles several frequencies!!

1 Like

I note:

  • add a help message when a locked device is detected
  • remove the sensors on the RM (doesn’t work for me either — 126°C, I suspect that’s a lie)
  • review the mobile display (however, it seems difficult to make the entire learning part compatible with mobile mode)
  • bug on the « capture » button after learning mode
  • remove the « success » page (indeed, not necessarily useful)

Regarding

I think he wasn’t talking about the dashboard, but about editing the remote control.
I was explicitly asked to be able to capture the ON signal separately from the OFF button, because there are some models where these buttons are distinct.


For the dashboard, I don’t want to mix the Broadlink-specific part with the common Gladys part.

  • On/Off button: indeed, the state isn’t necessarily correct
    • We should consider a « remote control » box with push buttons
  • Volume: in reality, if you open your favorite audio or video player on your computer, you’ll get a slider
  • Others: not all buttons are available on the dashboard
    • We should consider a « remote control » box with push buttons

If you have design ideas for a box on the dashboard, feel free to share them.


On the positives:

  • thanks for the learning mode, I found it indispensable given the multitude of buttons on a remote control
  • setting a name on a button, to consider voice control with Google Home on Gladys Plus :wink:

Ah darn, if you use my branch directly you’ll get out of sync, because I rewrote the Git history on my branch. You’ll need to do (assuming upstream is the URL of my repo, otherwise replace with origin)

git fetch upstream # to update the history
git reset --hard upstream/broadlink # to overwrite your local version with the remote version

I often rewrite Git history because I usually work alone on a branch, and rewriting allows me to limit the number of commits, stay up to date with the latest Gladys version, and fix some typos in my Git comments…


In any case, thanks for all these remarks, I’ve noted the actions on https://github.com/atrovato/Gladys/projects/7 (I don’t know if it’s public).

I’ll address the points one by one, at my own pace, and I’ll get back to you once a new image is available.

Don’t hesitate to give more feedback while the iron is hot :wink:

3 Likes

In v3 we had done something like this :
https://community.gladysassistant.com/t/integration-api-television-dans-gladys/3358/40?u=spenceur

Maybe you can take inspiration from it and certainly improve it :wink:

Hello,

I’m up for testing. I have

Hello,

The docker pull command downloads the Gladys image with the broadling service currently under development by @atrovato

Then you need to create a Gladys container in Docker using that image

Hello,

So in PuTTY, I typed

docker pull atrovato/gladys:broadlink
broadlink: Pulling from atrovato/gladys

then

docker run atrovato/gladys:broadlink

and should it appear directly in the web interface?
I don’t see anything else… does it show up in Integrations?

I used @Terdious’s post to restart the install :

So a chain of ‹ stop › ‹ rm › ‹ rmi › ‹ pull › and ‹ run ›

Docker ps tells me it’s running…

however nothing more in the integration menu…

This is another instance of Gladys; if you used @Terdious’s command, this instance is on port 84

Hi,
you should rely on the documentation to run a test image.

By replacing the official image name gladysassistant/gladys:v4 with the one you want to test, here mine atrovato/gladys:broadlink.


For your problem

Look in the browser developer console (press F12 on the keyboard); there should be an error.


For the record, I think I’ve addressed all the points mentioned by @Terdious (at least the ones I said I would).
The new image is available (under the same name).

1 Like