Giter VIP home page Giter VIP logo

broadlink-openhab-binding's People

Contributors

themillhousegroup avatar

Stargazers

 avatar  avatar

Watchers

 avatar

broadlink-openhab-binding's Issues

It doesn't work after an OpenHAB reboot

Not sure if this is only when multiple Broadlink Things are set up, but it never comes back properly after a restart.

My particular setup is an A1 and RM3 Mini. They work great when freshly-added but after an OpenHAB restart the A1 usually appears as Offline. The RM3 Mini appears Online but doesn't actually seem to work.

There are no integration tests

This code should have integration tests - it won't be possible to run them in a CI environment, but a developer with a Broadlink device on their network should be able to run them.

Shouldn't need IP addresses in the Thing configuration

The Broadlink devices are identified by their MAC address. The Thing configuration specifies an IP address though, which might change. The code incorrectly uses this IP address when sending datagrams - it shouldn't do this, instead it should look up the current IP address for the given MAC address.

Unexpected results when running the same sequence of IR commands

Hello, I have noticed that the latest version of the Broadlink binding (org.openhab.binding.broadlink-3.1.0-SNAPSHOT.jar) is not queuing correctly the sequence of infrared commands.

This issue did not appear in older versions of the binding.

Basically I need to run a sequence of 25-30 IR commands in cascade, to control an older 5.1 speaker system (turn on wifi plug, turn on speaker, change source, then for 5 times in a row increase treble, bass, central, volume 2 times).

Even though I have set a 300-1000 milliseconds timer in the openhab rule between consecutive commands (which did the job in older versions of the binding), now it is behaving abnormally --> IR commands are somehow overlapping and the effective command sequence that is executed in reality is totally unexpected. Some commands are skipped, some are executed more times than requested.

If I run the same sequence with the eschava/broadlink-mqtt daemon (written in python), all commands are queued nicely, regardless of the thread::sleep duration between two consecutive commands - it can be zero!. All commands are nicely queued and executed (even if the rule execution has already ended) and I always get the same results.

rule "big speaker macro ON"
when
        Item v_microlab received command ON
then
logInfo("big speaker macro","Running big speaker macro; command ON; sequence START...")
Sonoff_S26_1.sendCommand(ON)
Thread::sleep(500)
BroadlinkRM2100099_Command.sendCommand("audio_microlab_power")
Thread::sleep(500)
BroadlinkRM2100099_Command.sendCommand("audio_microlab_source")
Thread::sleep(500)
for(var i=1; i<6; i++) {
        logInfo("big speaker macro","===================iteration #" + i)
        BroadlinkRM2100099_Command.sendCommand("audio_microlab_treble_up")
        Thread::sleep(500)
        logInfo("big speaker macro","treble up done")
        BroadlinkRM2100099_Command.sendCommand("audio_microlab_bass_up")
        Thread::sleep(500)
        logInfo("big speaker macro","bass up done")
        BroadlinkRM2100099_Command.sendCommand("audio_microlab_sw_up")
        Thread::sleep(500)
        logInfo("big speaker macro","sw up done")
        BroadlinkRM2100099_Command.sendCommand("audio_microlab_front_up")
        Thread::sleep(500)
        logInfo("big speaker macro","front up done")
        BroadlinkRM2100099_Command.sendCommand("audio_microlab_vol_up")
        Thread::sleep(500)
        logInfo("big speaker macro","vol up done")
        BroadlinkRM2100099_Command.sendCommand("audio_microlab_vol_up")
        Thread::sleep(500)
        logInfo("big speaker macro","vol up 2 done")
}
logInfo("big speaker macro","Running big speaker macro; command ON; sequence END.")
end

Is it possible to implement a fix for this issue?

Thanks in advance

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.