Electr
What to get clarity around:
v=RI P=VI=RI2
A circuit connections and its components can be described with such json file.
Simulate with PySpice
Use Velxio to simulate esp32 and other boards, then push the code to them via Arduino-CLI and such makefile.
https://fossengineer.com/zigbee2mqtt-self-hosted-zigbee-bridge/