RavenSystem / esp-homekit-devices

Advanced firmware to add native Apple HomeKit and custom configurations, compatible with any SoC based on ESP32, ESP32-S, ESP32-C and ESP8266 series. (Shelly, Sonoff, Electrodragon, Tuya...)
Other
2.72k stars 357 forks source link

Orvibo S25US #933

Closed richardlimaa closed 4 years ago

richardlimaa commented 4 years ago

Hi dear, is it possible to include this device? https://domoticaencasa.es/tutorial-como-cambiar-el-firmware-a-un-orvibo-b25/ I'm no familiar, but it works with you firmware haaboot.bin, the only problem is that doesnt have the right pins, so relay cant work, but i did the configurations in arduino-1.8.12, so i could turn on and turn off with the button, but once did it, homekit stopped, this device use QW8266-02Q

// ORVIBO // -----------------------------------------------------------------------------

elif defined(ORVIBO_B25)

// Info
#define MANUFACTURER        "ORVIBO"
#define DEVICE              "B25"

// Buttons
#define BUTTON1_PIN         14
#define BUTTON1_MODE        BUTTON_PUSHBUTTON | BUTTON_DEFAULT_HIGH
#define BUTTON1_RELAY       1

// Relays
#define RELAY1_PIN          5
#define RELAY1_TYPE         RELAY_TYPE_NORMAL

// LEDs
#define LED1_PIN            12   // 4 blue led
#define LED1_PIN_INVERSE    1
#define LED2_PIN            4  // 12 red led
#define LED2_PIN_INVERSE    1
i3laze commented 4 years ago

Hi and welcome.

HAA is intended to work will all esp82xx devices around. You yourself set the right pins and their actions.

Check this short step-by-step guide (skip steps 3 & 4) and adapt to pins you mentioned above: https://github.com/RavenSystem/esp-homekit-devices/issues/931#issuecomment-626382358

richardlimaa commented 4 years ago

Hi my friend, you give a very good light! I got it i can turn on and turn off Orvibo S25US from button and home app, i use template from Sonoff S20/S26, so i change this pins in got, have sucess with this one here:

{"c":{"l":4,"b":[{"g":0,"t":5}],"i":0},"a":[{"0":{"r":[{"g":5}]},"1":{"r":[{"g":5,"v":1}]},"t":2,"b":

The only thing i didnt solve is the blue and red light, by the way its working verrrry good!

i3laze commented 4 years ago

That’s great you figured it out.

Try this one: {"c":{"b":[{"g":0,"t":5}],"i":0},"a":[{"0":{"r":[{"g":5},{"g":12,"v":0},{"g":4,"v":1}]},"1":{"r":[{"g":5,"v":1},{"g":12,"v":0},{"g":4,"v":1}]},"t":2,"b":[{"g":14}],"s":0}]}

Here’s: button GPIO 14 ON enables relay 5 and LED 12 (blue) and disables LED 4 (red) OFF disables relay 5 and LED 12 and enables LED 4 (red)

Copy my string to Online configurator to see it vividly.

richardlimaa commented 4 years ago

i3Laze, thanks for help me, and i tried you but only blue light i got! But i change some parameters and got the right colors, so blue when on, and red when off. This is the final:

{"c":{"b":[{"g":0,"t":5}],"i":0},"a":[{"0":{"r":[{"g":5},{"g":12,"v":1},{"g":4,"v":0}]},"1":{"r":[{"g":5,"v":1},{"g":4,"v":1},{"g":12,"v":0}]},"t":2,"b":[{"g":14}],"s":0}]}

\o/

Thanks so much, i guess this could be include in the database!