How much it took you to make it working? I spent about 40hrs on this easy setup to finally control my projector.
However, I still dont know how to read the response to check whether my input boolean is in a correct state. If you can spend some time on it, I will be glad!
My projector has a 12V output that switches on and off with the projector. It’s meant to trigger motorised screens but I plan to use it as state feedback for power. Worth checking if yours has this too. One resistor divider to get a 3.3V signal into the ESP and you’re done.
I have 12V output jack and use it for the screen as well. I thought that reading the state using the hw I already installed would be just fine .) I haven’t played with ESP yet but still, I just have some setup that should be able to work. I tried serial sensor but probably did not figure out the command properly. The sensor never received the data.
I’ve got the necessary hex command that should return a different hex string to state whether the screen/object is on or off, but i dont know how to parse that in a sensor by reading the return via command line
I don’t have anything returned at the moment. I know the hex command I need to send in order to get the relevant reply, but I can’t get any reply atm.
My current write commands (turn screen on and off) use echo like the examples above but my understanding is that echo won’t get any response. I don’t know how to parse the hex code request using HA terminal/shell command to get a reply which we can then parse into a template
I tried this but with no success, please, check my other topic I opened on this problem (send shell hex command to receive a response on a serial sensor integration):
@tom_l I have set up that serial configuration already. From your response am I to understand that I then need to call a shell command manually to generate the sensor information? Sorry for the potential stupid question.
I’ve set up two sensors both of which don’t seem to give any data back:
No I don’t get a response in the SSH terminal within HA although I’m using the same echo command I used to send a command to the screen (with a different hex code) and I didn’t think echo commands showed responses…
It won’t help with your command, but I wanted to test if you are receiving anything in home assistant. It should redirect the received serial data to the screen.
Try that using COOLTERM https://freeware.the-meiers.org/
The author, Roger, was in touch with me over an email and tried to figure out the command. We were not successful, probably due to my limited knowledge, however, I used the utility to be sure the command works as it should. It will shows you the proper returns. I will do the same and we can compare results
I want to do something similar, just for my LED strip.
But I am facing an issue: I want to control the LED strip with commands and need to send them through a serial port, I believe I have a problem with the baud rate, but I have no idea how to set it. Do you have any ideas?
I have never solved this, to be honest. Just live with the fact that my projector looks turned on when it turnes off automatically, so I click the button twice to turn it on. If you manage to solve it, I will maybe become only five years older to have it done .)