LSC smart connect powerstrip (tuya out - esphome in )

hello ,
a converted this powerstrip to esphome ,
it has room for improvent cos there is a button and light to use in homeassistant

image

project and info and code :