Try below. You need to correct the entity Iād to match the snmp sensor but I think this is about correct. I changed the link to one that may be more relevant to what you need
The following Template Binary Sensor converts the SNMP Sensorās numeric value (0/1) to a boolean value (true/false) and then inverts it. Because itās a binary sensor, the resulting inverted boolean value will be reported as on/off.
The SNMP integration provides a value_template option. If you wish, you can use it to invert the received value directly in the SNMP Sensor, without the need for using a Template Binary Sensor.
Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topicās title which signals to other users that this topic has been resolved. This helps users find answers to similar questions.