Thanks for the quick reply, i cant find anything wrong with the sensor.
sensor:
- platform: template
sensors:
harmony_activity:
value_template: >
{% if is_state("remote.Bedroom", 'on') %}
{{ states.remote.Bedroom.attributes.current_activity }}
{% else %}
PowerOff
{% endif %}