Octoprint -- Enclosure Plugin -- GPIO state in HA?

Not entirely correct))) . You must specify the correct item number in the json array. That is, the required element is the second - instead of 1 we write 2. If 3 - write 3