Arduino - HelloMorningStar/HomeAssistant GitHub Wiki

How to setup esp8266 in arduino?

https://alselectro.wordpress.com/2016/11/07/esp8266-upload-code-from-arduino-ide-no-arduino-board-required/

https://arduino-esp8266.readthedocs.io/en/latest/installing.html

make rf433 tansmitter with raspberry and arduino nano

1) decode rf433 remoter with arduino nano --- this method can't get any code from dooya dc2700 for me

install rc-switch on arduino IDE, and upload ReceiveDemo_simple to arduino nano

/*
  Simple example for receiving
  
  https://github.com/sui77/rc-switch/
*/

#include 

RCSwitch mySwitch = RCSwitch();

void setup() {
  Serial.begin(9600);
  mySwitch.enableReceive(0);  // Receiver on interrupt 0 => that is pin #2
}

void loop() {
  if (mySwitch.available()) {
    
    int value = mySwitch.getReceivedValue();
    
    if (value == 0) {
      Serial.print("Unknown encoding");
    } else {
      Serial.print("Received ");
      Serial.print( mySwitch.getReceivedValue() );
      Serial.print(" / ");
      Serial.print( mySwitch.getReceivedBitlength() );
      Serial.print("bit ");
      Serial.print("Protocol: ");
      Serial.println( mySwitch.getReceivedProtocol() );
    }

    mySwitch.resetAvailable();
  }
}

2) try this

https://github.com/bjwelker/Raspi-Rollo
It can get DC2700 remoter rf433 hex code
up FQQ0QF01FQ1000FF0F0F
pause FQQ0QF01FQ1000FFFFFF
down FQQ0QF01FQ1000FF0101

install 433 on raspberry compile errors: https://github.com/ninjablocks/433Utils/issues/44
https://github.com/ninjablocks/433Utils
add -lwiringPi -pthread -lwiringPiDev -lcrypt -lm -lrt to Makefile before compile

  
# Defines the RPI variable which is needed by rc-switch/RCSwitch.h
CXXFLAGS=-DRPI -lwiringPi -pthread -lwiringPiDev -lcrypt -lm -lrt

all: send codesend RFSniffer

send: ../rc-switch/RCSwitch.o send.o
        $(CXX) $(CXXFLAGS) $(LDFLAGS) $+ -o $@ -lwiringPi -lwiringPiDev -lcrypt -lrt

codesend: ../rc-switch/RCSwitch.o codesend.o
        $(CXX) $(CXXFLAGS) $(LDFLAGS) $+ -o $@ -lwiringPi -lwiringPiDev -lcrypt -lrt

RFSniffer: ../rc-switch/RCSwitch.o RFSniffer.o
        $(CXX) $(CXXFLAGS) $(LDFLAGS) $+ -o $@ -lwiringPi -lwiringPiDev -lcrypt -lrt


clean:
        $(RM) ../rc-switch/*.o *.o send codesend servo RFSniffer

3) send rf433 signal reference homeassistant raspberry rf

https://www.home-assistant.io/integrations/rpi_rf/

switch:
  - platform: rpi_rf
    gpio: 17
    switches:
      bedroom_light:
        code_on: 1234567
        code_off: 1234568
      ambilight:
        pulselength: 200
        code_on: 987654
        code_off: 133742
      living_room_light:
        protocol: 5
        code_on: 654321,565874,233555,149874
        code_off: 654320,565873,233554,149873
        signal_repetitions: 15

sonoff rf bridge can control dooya moto successfully

command rfraw 166 snifer remoter rf code
decode up AAA6060568936C051155 snifer:A6 / send:A8 rfraw AAA8060568936C051155
decode close AAA6060568936C053355 snifer:A6 / send:A8 rfraw AAA8060568936C053355
decode pause AAA6060568936C055555 snifer:A6 / send:A8 rfraw AAA8060568936C055555

⚠️ **GitHub.com Fallback** ⚠️