Salut Thomas,
Tu peux essayer avec :
{{ 0 if state_attr('climate.NetAtmo', 'hvac_action') == 'idle' else 1 }}