Update rest_rules.cpp
Update rest_rules.cpp

Support rule condition for `dx` `attr/lastannounced`, see #2590

dresden-elektronik/deconz-rest-plugin,dresden-elektronik/deconz-rest-plugin,dresden-elektronik/deconz-rest-plugin,dresden-elektronik/deconz-rest-plugin,dresden-elektronik/deconz-rest-plugin