Skip to main content
POST
/
v1
/
irrf-commands
Create a new IRRF command
curl --request POST \
  --url http://0.0.0.0:3000/v1/irrf-commands \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "entity_id": "sensor.tv_sala",
  "command_name": "power",
  "code": "0000 006C...",
  "remote_entity_id": "remote.ir_blaster"
}
'
{
  "id": 1,
  "entity_registry_id": 5,
  "config_entry_id": 2,
  "command_name": "power",
  "code": "0000 006C 0022 0002...",
  "remote_entity_id": "remote.ir_blaster",
  "user_id": "user_abc123"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
entity_id
string
required

entity_id da entidade controlada

command_name
string
required

Nome do comando (ex: power, volume_up)

code
string
required

Código IR aprendido

remote_entity_id
string
required

entity_id do blaster IR

Response

Command created

id
integer
entity_registry_id
integer
config_entry_id
integer
command_name
string
code
string
remote_entity_id
string
user_id
string