Set value after unpublishing content I'm using drupal 8 and the scheduler module to automatically unpublish custom content after x days have passed.

While unpublishing a boolean field from the custom content needs to be enabled/disabled.

So far I tried rules module after_a_node_has_been_unpublished_by_scheduler with Condition: Entity has field with Action: Set a data value Unfortunatelly the action does nothing. 

What else could I try?
You can create your custom code in a hook_cron, and you can handle your verifications following the date of publication.