Node MCU, MIT App Inventor and Firebase


I need some help with my project, I´m using a Node MCU to control relays and the node MCU is controlled by an App that I develop with MIT App Inventor, everything works fine… the thing is that I send data from the App to the firebase and it change the values, and when I change the values from the Firebase typing directly form my computer the node MCU takes the values and change the realys, but the thing is that when I change them directly from the APP the Node dosen´t read them, do anybody knows how to solve this problem? Here is also my code. Thanks!

Pd. Yes, the tags are the same in the App and in the code.

Firebase_Problem.ino (5.54 KB)