I have been trying to get some code working for sometime now, mostly by cut, paste & edit as I am not a programmer, but learning as I am going. I can’t seem to find any examples or good tutorials that explain the different parts of the Lambda code, or at least this detail of it. I have this bit of code under the Binary Sensor:
But when I compile it, I keep getting this error:
Is there somebody that can explain what is going on here? I am not sure what the “open” & “stop” are referring too.
Also, any good recommendations on more info on stuff like this? I have searched through ESPhome.io, but it does not seem straight forward, or have found any books on ESPhome. Any suggestion would help.