Can't detect dimmer bulb state changes in rules

I’ve tried received command ON / OFF and changed with a dimmer bulb(multilevel switch item)
2:command=switch_multilevel
Here are two examples that will not fire.
I see nothing in the logs that allude to why.

when
Item DiningRoom_Light received command
then
sendMail("bla@gmail.com", “DR Light Triggered”, “DR Light Triggered. " + DiningRoom_Light.state)
switch receivedCommand {
case ON : {
sendMail("bla@gmail.com”, “DR Light ON”, “DR Light On " + DiningRoom_Light.state)
}
case OFF : {
sendMail("bla@gmail.com”, “DR Light OFF”, "DR Light OFF " + DiningRoom_Light.state)
}

}
end

when
Item DiningRoom_Light changed
then
sendMail("bla@gmail.com", “DR Light Triggered”, “DR Light Triggered. " + DiningRoom_Light.state)
if DiningRoom_Light.state > 0 {
sendMail("bla@gmail.com”, “DR Light ON”, “DR Light On " + DiningRoom_Light.state)
}
if DiningRoom_Light.state = 0 {
sendMail("bla@gmail.com”, “DR Light OFF”, "DR Light OFF " + DiningRoom_Light.state)
}
}
end

Have you tried received update? Typically state changes that were not triggered from within OH are updates, not commands.

Also, with Dimmers, ON/OFF type commands get translated to a PercentType before the event gets sent to the Rule so your first rule will never do anything as the receivedCommand will never be ON/OFF.