diff --git a/source/_integrations/arcam_fmj.markdown b/source/_integrations/arcam_fmj.markdown index 91a8bb06f9c..78f17bfb576 100644 --- a/source/_integrations/arcam_fmj.markdown +++ b/source/_integrations/arcam_fmj.markdown @@ -4,6 +4,7 @@ description: Instructions on how to integrate Arcam FMJ Receivers into Home Assi ha_category: Media Player ha_release: 0.96 ha_iot_class: Local Polling +ha_config_flow: true ha_codeowners: - '@elupus' ha_domain: arcam_fmj @@ -20,66 +21,10 @@ Supported devices: ## Configuration -To add an Arcam FMJ to your installation, add the following to your `configuration.yaml` file: +Menu: **Configuration** -> **Integrations**. -```yaml -# Minimal example configuration.yaml entry -arcam_fmj: - - host: HOSTNAME - zone: - 1: -``` - -{% configuration %} -host: - description: IP address or hostname of the device. - required: true - type: string -port: - description: Port to connect to. - required: false - default: 50000 - type: integer -zone: - description: Per zone specific configuration - type: map - keys: - ZONE_INDEX: - description: Zone index number. - type: map - keys: - name: - description: Name of zone - required: false - type: string - default: Arcam FMJ - ZONE_INDEX - turn_on: - description: Service to use when turning on device when no connection is established - required: false - type: action -{% endconfiguration %} - -```yaml -# Larger example configuration.yaml entry -media_player: - - platform: arcam_fmj - host: HOSTNAME - zone: - 1: - name: "Zone 1 name" - turn_on: - service: 'broadlink.send' - data: - host: BROADLINK_IR_IP - packet: JgAVADodHTo6HR0dHR0dOh0dHR06Oh0dHQ0FAA== - 2: - name: "Zone 2 name" - turn_on: - service: 'broadlink.send' - data: - host: BROADLINK_IR_IP - packet: JgAYADodHTo6Oh0dHR0dHR0dHR06Oh0dHQALZw0FAAAAAAAAAAAAAAAAAAA= -``` +Click on the `+` sign to add an integration and click on **Arcam FMJ**. +Follow the configuration flow, after finishing, the receivers will be available. ## Power state @@ -92,8 +37,18 @@ exists: IR or Serial gateway. Use an IR blaster to send a command to turn the device on using these discrete codes: - - Zone 1: Protocol: NEC1 Device: 16 Function: 123 - - Zone 2: Protocol: NEC1 Device: 23 Function: 123 + - Zone 1: Protocol: RC5 Device: 16 Function: 123 + - Zone 2: Protocol: RC5 Device: 23 Function: 123 + +Turn on sometime requires two IR codes to be sent. You can generate the raw, broadlink or other IR format string using [irgen](https://github.com/elupus/irgen) tool like: + +```shell +irgen -i rc5 -d 16 0 123 -o broadlink_base64 -r 2 +``` + +To trigger this IR command add an automation on the event `arcam.turn_on` filtering on +the `entity_id` of the `media_player` zone entity. This can be added using device automations +or manually using normal automations. ### Serial Port to network gateway