A new law has come into effect that allows employees to ignore communications from employers after hours.