HW for automatization

Hi together,

I would like to create small automatization in my home installation. I enclosed my current network topology, where coloured lines are part which i want to automatized.
Of course i want to add some sensors in the future (PIR,tempeture,motion sensor and some christmay lights etc).
Red and yellow lines represent two way switches, purple one way switch.
I need help which hardware, relays to use. I saw some wifi relays like sonoff mi, shelly, basically wifi relays.
To be honest i don’t want to use in every socket wifi relay and don’t have idea if it can controlled from wifi 1 if relay will be connected to wifi 2, i prefer ethernet connection to relay module.
I saw some configuration with 2 way switches, but some of them have problems for example to show real state of light in HA.
I was looking for something like kincony ethernet module switch KC868 + SWITCH TERMINAL BOARD, but there will be some other cheapest solution i guess.
I have also raspberry pi 4 with some relays, but i have no idea if this could be somehow used just for controlling.
I saw solution with HA running on rp and controling relays, but no one where HA in on NAS and rp is just for controlling relays.
I don’t have so much expreriences with such a kind of installaction so I appreciate every solution/idea what can be used.

A ‘simple’ option is to use the RPi to control relays like you stated. To have HA control the relays on the separate RPi you can utilize MQTT to issue the control commands and send back status. Just a few python scripts with paho-mqtt running on it and a MQTT broker should be all you need.

Hi,

Sorry for late reply…Thanks for suggestion, I tried it you like said and it works
Thanks again