I modified the lawmaking, then the relay status is sent to the HA only at the outset. I also changed the kid id numbers (those for relays now correspond to the pin numbers). The good news is the sensor part for the pushbuttons is at present working, but the relays notwithstanding not. They do non annals to the HA in whatsoever way. // Enable debug prints to serial monitor #define MY_DEBUG // Enable and select radio type attached //#ascertain MY_RADIO_RF24 //#define MY_RADIO_NRF5_ESB //#define MY_RADIO_RFM69 //#define MY_RADIO_RFM95 // Gear up Low transmit ability level as default, if you have an amplified NRF-module and // power your radio separately with a good regulator yous can turn upwardly PA level. //#define MY_RF24_PA_LEVEL RF24_PA_LOW // Enable serial gateway #ascertain MY_GATEWAY_SERIAL // Define a lower baud charge per unit for Arduinos running on 8 MHz (Arduino Pro Mini 3.3V & SenseBender) #if F_CPU == 8000000L #define MY_BAUD_RATE 38400