How to define multi Actuators for mega 2560 boards?

Hi
I try to understand how to define Actuators for mega 2560.
I need to define 32 pins to Actuators.
I have very very low skills with code.
I thought i only need to add more lines

#ifndef ACTUATOR_ONOFF_GPIO

ifdef ESP8266

define ACTUATOR_ONOFF_GPIO 15 //12 for sonoff basic relay

elif ESP32

define ACTUATOR_ONOFF_GPIO 15

else

define ACTUATOR_ONOFF_GPIO 24

define ACTUATOR_ONOFF_GPIO 25

define ACTUATOR_ONOFF_GPIO 26

define ACTUATOR_ONOFF_GPIO 27

define ACTUATOR_ONOFF_GPIO 28

define ACTUATOR_ONOFF_GPIO 29

just add it like this. or where should i do it?

Hi,

If actuatorONOFF is defined you need to leverage one of those commands:

Preferably the json ones.

HI
I have try to send this command but nothing happen.
should I delete all of this line?
will i still be discover by home assistant?

Hello,

Could you share the files that you have modified ?

okay here are a link to my own cloud server. there you have the complett project code

Hi don’t know if you have seen the link i post

I have seen it yes. I need sometime to dig into it