Hello
If someone can please help, I am trying to learn so I am trying to make sure I am on the right path as rest commands are new to me.
Goal:
I am trying to set up simple Boolean switches in HA that indicates a state from Control4
Main Example:
I want a press on off(bottom) of a control4 switch to set a boolean switch that indicates it was manually turned off in HA. HA has an integration for lights but not the button presses The reason is that I want a motion sensor to ignore motion for 30 secs after a light is manually turned off. There are other examples but this is my toe in the water example.
Setup:
I am using HA and Control4. I have C4 lighting dimmers/switches throughout my houseā¦ I also have Chowmains TCP driver in control4. I have worked it out that HA can send TCP commands to C4 to fire off routines. Such as my garage door is controlled by relays in c4 not exposed to HA, so I have HA send
garageup: curl http://192.168.1.12:54390/garageup to c4 to run the automation in c4.
My thinking is I set up rest switch in Home Assistant with the 2 commands for on and off. Then have C4 send those commands much like in reverse. I am do not know how to set up Home assistant to accept the sent commands. What is the port I would send it to? Do I need to set up an integration on HA to accept curl commands? Am I making sense of what I am trying to do?
Thank you for your help and pointing me in the right direction