Help Firebase DataChanged "path"

Hi,
I can’t change the value on Firebase inside a path.

I have a path called “Rele”, inside which there are two values ​​to change: Rele and Rele2 (as shown in the photo).

The problem is that, even if I manually change the value of Rele or Rele2 (from 0 to 1 or vice versa) in the database, in the app it doesn’t change the state from OFF to ON.

Previously I had these values ​​directly in the root of the Realtime database and everything worked correctly. Since I moved them inside the “Rele” path, it seems that the data reading no longer occurs correctly.


Make sure project bucket have added correctly in the app else it wont trigger

Hi, yes all other data is read correctly from the database and app, except these which are inside the “Rele” folder.

Is it triggering that
get tag = /Rele/Rele2?

Use one lable to verify, i feel doubt there because tag won’t give like this with starting value of /

I tried with a label and the value is not shown, I tried both with /Rele/Rele2 and with Rele/Rele2

That is the problem. Better remove all those block and set lable text to get tag so that we can design blocks accordingly

Since it is not trigger, inside this if logic that another if then logic didnt trigger

I solved it, here is the solution.
Thanks for your help :slight_smile:

May be but this is not actually your solution, since your previous block you doesn’t know where is the mistake. Once you share you proper fb structure we would have suggest you earlier. As oer your post i only pointed out the fault block

Anyhow you found it is working. Keep coding and enjoy

I tried as you suggested, to show the text on the label and I came to this solution. :+1: