Prob issues with email txt

Good Morning

I have a probe which notify’s us of the generator is running but the issue when the power is restored we just get an email saying its up. I have been told by management that having the wording as just UP is not good enough and confusing certain staff. I am happy to keep things as they are but I have been given this issue to fix.
So what I need to do is have the email txt instead of saying X = UP but Mains power restored generator in cool down. I have also been told that false emails must stop too. I know these are been sent when there is no comms but I have been told these are an issue too… Hard to make everyone happy. Below is a sample of the probe. I am using raw snmp as the device mibs dont match and also is displaying on another device thus the embedded IP address

available if(oid(“1.3.6.1.4.1.30586.17.1.0”,5,5,“10.255.255.99”,“v1-public”)=“1”, 1,0)

error if(string_size(snmp_description())=0,“Device Comms Failed”,if(oid_raw(“1.3.6.1.4.1.30586.17.1.0”,5,5,“10.255.255.99”,“v1-public”)=1, “”, “Mains Power Lost generator started !!!”))

Value oid(“1.3.6.1.4.1.30586.17.1.0”,5,5,“10.255.255.99”,“v1-public”)