Update resource.h
Update resource.h

- Use true `ResourceItem` for `state.effect`;
- Add `Resource::toVariant()`.

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