I’m attaching the logs below. The parameter helped, the switch began to turn on, but sending commands to the hood seemed to go in parallel. I see in the interface that the switch is on, and according to my logic, in this state, the command should not send switches, since it is on, but the light still turns on and off (((
[10:22:30][D][binary_sensor:036]: 'TEST_LAMP1': Sending state ON
[10:22:30][D][switch:012]: 'TEST_LAMP' Turning ON.
[10:22:30][D][remote_transmitter:075]: Sending remote code...
[10:22:31][D][switch:055]: 'TEST_LAMP': Sending state ON
[10:22:31][D][binary_sensor:036]: 'TEST_LAMP1': Sending state OFF
[10:22:31][D][remote.raw:041]: Received Raw: 1372, -1664, 1338, -1667, 1338, -1666, 1339, -5698, 1366, -1668, 1338, -1664, 1338, -1667, 1337, -1668, 1338
[10:22:31][D][remote.raw:041]: Received Raw: 1385, -1665, 1338, -1666, 1338, -1668, 1337, -5679, 1386, -1644, 1361, -1663, 1338, -1646, 1358, -1669, 1336
[10:22:31][D][remote.raw:041]: Received Raw: 1362, -1641, 1361, -1667, 1338, -1667, 1338, -5674, 1391, -1667, 1338, -1664, 1338, -1666, 1337, -1670, 1337
[10:22:31][D][remote.raw:041]: Received Raw: 1385, -1664, 1338, -1667, 1339, -1667, 1336, -5677, 1389, -1667, 1338, -1664, 1337, -1668, 1338, -1668, 1337
[10:22:31][D][remote.raw:041]: Received Raw: 1385, -1664, 1337, -1668, 1338, -1646, 1359, -5679, 1386, -1667, 1338, -1664, 1337, -1645, 1360, -1645, 1362
[10:22:31][D][binary_sensor:036]: 'TEST_LAMP1': Sending state ON
[10:22:31][D][switch:012]: 'TEST_LAMP' Turning ON.
[10:22:31][D][remote_transmitter:075]: Sending remote code...
[10:22:31][D][binary_sensor:036]: 'TEST_LAMP1': Sending state OFF
[10:22:31][D][remote.raw:041]: Received Raw: 1355, -1664, 1338, -1667, 1337, -1669, 1337, -5676, 1388, -1667, 1340, -1663, 1338, -1667, 1337, -1644, 1362
[10:22:31][D][remote.raw:041]: Received Raw: 1383, -1665, 1337, -1668, 1338, -1667, 1337, -5677, 1389, -1667, 1338, -1664, 1338, -1665, 1338, -1669, 1337
[10:22:31][D][remote.raw:041]: Received Raw: 1362, -1640, 1362, -1668, 1337, -1667, 1339, -5675, 1389, -1643, 1361, -1666, 1337, -1666, 1338, -1669, 1337
[10:22:32][D][remote.raw:041]: Received Raw: 1386, -1664, 1339, -1667, 1337, -1666, 1340, -5675, 1389, -1668, 1337, -1664, 1340, -1641, 1362, -1666, 1339
[10:22:32][D][remote.raw:041]: Received Raw: 1385, -1639, 1363, -1644, 1360, -1644, 1363, -5674, 1390, -1667, 1339, -1664, 1337, -1666, 1337, -1670, 1337
[10:22:32][D][binary_sensor:036]: 'TEST_LAMP1': Sending state ON
[10:22:32][D][switch:012]: 'TEST_LAMP' Turning ON.
[10:22:32][D][remote_transmitter:075]: Sending remote code...
[10:22:32][D][binary_sensor:036]: 'TEST_LAMP1': Sending state OFF
[10:22:32][D][remote.raw:041]: Received Raw: 1378, -1665, 1337, -1667, 1338, -1644, 1361, -5702, 1363, -1667, 1338, -1664, 1338, -1666, 1338, -1642, 1366
[10:22:32][D][remote.raw:041]: Received Raw: 1383, -1641, 1360, -1668, 1338, -1667, 1338, -5677, 1389, -1666, 1338, -1664, 1337, -1667, 1337, -1670, 1339
[10:22:32][D][remote.raw:041]: Received Raw: 1387, -1664, 1339, -1667, 1337, -1667, 1313, -5703, 1387, -1668, 1336, -1664, 1339, -1666, 1337, -1670, 1337
[10:22:33][D][remote.raw:041]: Received Raw: 1386, -1664, 1338, -1667, 1338, -1667, 1337, -5682, 1383, -1667, 1339, -1665, 1337, -1666, 1338, -1668, 1338
[10:22:33][D][remote.raw:041]: Received Raw: 1385, -1664, 1338, -1667, 1338, -1644, 1361, -5677, 1388, -1666, 1339, -1663, 1338, -1666, 1340, -1668, 1336
[10:22:49][D][remote.raw:041]: Received Raw: 207