smart-me AG M Bus Gateway API

The MBusGateway API from smart-me AG — 5 operation(s) for mbusgateway.

GitHub OpenAPI

Operations 9

GET /gateway/mbus/{id} Gets the data for a M-BUS Gateway and all connected meters #
PUT /gateway/mbus/{id} Changes the Name and the Baudrate of the M-BUS Gateway #
DELETE /gateway/mbus/{id} Deletes the M-BUS Gateway. All connected Meters will not be deleted #
GET /gateway/mbus/{id}/meter/{index} Gets the data of a M-BUS Meter that is connected to a M-BUS Gatewaay #
PUT /gateway/mbus/{id}/meter/{index} Updates an existing M-BUS Meter on a M-BUS Gateway #
DELETE /gateway/mbus/{id}/meter/{index} Deletes an M-BUS Meter Definition of a M-BUS Gateway. #
POST /gateway/mbus/{id}/meter Creates a new M-BUS Meter on a M-BUS Gateway #
POST /gateway/mbus/{id}/search Starts a search for conntected M-BUS Devices on the M-BUS Gateway #
DELETE /gateway/mbus/{id}/deleteallmeters Deletes all (M-BUS) Meters of a M-BUS Gateway. #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/smart-me-com:smart-me-com-mbusgateway-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

smart-me-com-mbusgateway-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: smart-me M Bus Gateway API
  version: v1
security:
- OAuth2: []
- Basic: []
tags:
- name: MBusGateway
paths:
  /gateway/mbus/{id}:
    get:
      tags:
      - MBusGateway
      summary: Gets the data for a M-BUS Gateway and all connected meters
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/MBusGatewayDto'
            application/json:
              schema:
                $ref: '#/components/schemas/MBusGatewayDto'
            text/json:
              schema:
                $ref: '#/components/schemas/MBusGatewayDto'
      operationId: getGatewayMbusById
      x-operation-id-source: derived
    put:
      tags:
      - MBusGateway
      summary: Changes the Name and the Baudrate of the M-BUS Gateway
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/MBusGatewayPutDto'
          application/json:
            schema:
              $ref: '#/components/schemas/MBusGatewayPutDto'
          text/json:
            schema:
              $ref: '#/components/schemas/MBusGatewayPutDto'
          application/*+json:
            schema:
              $ref: '#/components/schemas/MBusGatewayPutDto'
      responses:
        '200':
          description: OK
      operationId: putGatewayMbusById
      x-operation-id-source: derived
    delete:
      tags:
      - MBusGateway
      summary: Deletes the M-BUS Gateway. All connected Meters will not be deleted
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
      operationId: deleteGatewayMbusById
      x-operation-id-source: derived
  /gateway/mbus/{id}/meter/{index}:
    get:
      tags:
      - MBusGateway
      summary: Gets the data of a M-BUS Meter that is connected to a M-BUS Gatewaay
      parameters:
      - name: id
        in: path
        description: The ID of the M-BUS Gateway
        required: true
        schema:
          type: string
          format: uuid
      - name: index
        in: path
        description: The index (position) of the M-BUS Meter in the Gateway Meters
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/MBusMeterDto'
            application/json:
              schema:
                $ref: '#/components/schemas/MBusMeterDto'
            text/json:
              schema:
                $ref: '#/components/schemas/MBusMeterDto'
      operationId: getGatewayMbusByIdMeterByIndex
      x-operation-id-source: derived
    put:
      tags:
      - MBusGateway
      summary: Updates an existing M-BUS Meter on a M-BUS Gateway
      parameters:
      - name: id
        in: path
        description: The ID of the M-BUS Gateway
        required: true
        schema:
          type: string
          format: uuid
      - name: index
        in: path
        description: The index (position) of the M-BUS Meter in the Gateway Meters.
        required: true
        schema:
          type: integer
          format: int32
      requestBody:
        description: ''
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/MBusMeterPostAndPutDto'
          application/json:
            schema:
              $ref: '#/components/schemas/MBusMeterPostAndPutDto'
          text/json:
            schema:
              $ref: '#/components/schemas/MBusMeterPostAndPutDto'
          application/*+json:
            schema:
              $ref: '#/components/schemas/MBusMeterPostAndPutDto'
      responses:
        '200':
          description: OK
      operationId: putGatewayMbusByIdMeterByIndex
      x-operation-id-source: derived
    delete:
      tags:
      - MBusGateway
      summary: Deletes an M-BUS Meter Definition of a M-BUS Gateway.
      parameters:
      - name: id
        in: path
        description: The ID of the Gateway
        required: true
        schema:
          type: string
          format: uuid
      - name: index
        in: path
        description: The Index of the Meter (position) to be deleted
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
      operationId: deleteGatewayMbusByIdMeterByIndex
      x-operation-id-source: derived
  /gateway/mbus/{id}/meter:
    post:
      tags:
      - MBusGateway
      summary: Creates a new M-BUS Meter on a M-BUS Gateway
      parameters:
      - name: id
        in: path
        description: The ID of the M-BUS Gateway
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        description: ''
        content:
          application/json-patch+json:
            schema:
              $ref: '#/components/schemas/MBusMeterPostAndPutDto'
          application/json:
            schema:
              $ref: '#/components/schemas/MBusMeterPostAndPutDto'
          text/json:
            schema:
              $ref: '#/components/schemas/MBusMeterPostAndPutDto'
          application/*+json:
            schema:
              $ref: '#/components/schemas/MBusMeterPostAndPutDto'
      responses:
        '200':
          description: OK
      operationId: postGatewayMbusByIdMeter
      x-operation-id-source: derived
  /gateway/mbus/{id}/search:
    post:
      tags:
      - MBusGateway
      summary: Starts a search for conntected M-BUS Devices on the M-BUS Gateway
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
      operationId: postGatewayMbusByIdSearch
      x-operation-id-source: derived
  /gateway/mbus/{id}/deleteallmeters:
    delete:
      tags:
      - MBusGateway
      summary: Deletes all (M-BUS) Meters of a M-BUS Gateway.
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: OK
      operationId: deleteGatewayMbusByIdDeleteallmeters
      x-operation-id-source: derived
components:
  schemas:
    MBusReadoutIntervall:
      enum:
      - 0
      - 1
      - 2
      - 3
      - 4
      - 5
      - 6
      - 7
      - 8
      - 9
      type: integer
      description: '<p>Members: </p><ul><li><i>0</i> - Intervall_2s</li><li><i>1</i> - Intervall_10s</li><li><i>2</i> - Intervall_1min</li><li><i>3</i> - Intervall_5min</li><li><i>4</i> - Intervall_15min</li><li><i>5</i> - Intervall_30min</li><li><i>6</i> - Intervall_60min</li><li><i>7</i> - Intervall_6hours</li><li><i>8</i> - Intervall_12hours</li><li><i>9</i> - Intervall_24hours</li></ul>'
      format: int32
    MBusGatewayState:
      enum:
      - 0
      - 1
      - 2
      - 3
      type: integer
      description: '<p>Members: </p><ul><li><i>0</i> - LastReadoutOk</li><li><i>1</i> - SearchInProgress</li><li><i>2</i> - FailedOnOneOrMoreMeter</li><li><i>3</i> - TooManySearchErrors</li></ul>'
      format: int32
    MBusBaudrate:
      enum:
      - 0
      - 1
      - 2
      - 3
      type: integer
      description: '<p>Members: </p><ul><li><i>0</i> - Baud300</li><li><i>1</i> - Baud2400</li><li><i>2</i> - Baud9600</li><li><i>3</i> - Baud19200</li></ul>'
      format: int32
    MBusMeterDto:
      required:
      - addressingMode
      - baudrate
      - energyEnergySubType
      - energyType
      - id
      - name
      - primaryAddress
      - secondaryAddress
      - send_App_Reset
      - send_SND_NKE
      - state
      type: object
      properties:
        id:
          type: string
          description: The ID of the Meter in the smart-me system. Guid.Empty if we don't have this meter in the system.
          format: uuid
        name:
          type:
          - string
          - 'null'
        addressingMode:
          $ref: '#/components/schemas/MBusAddressingMode'
        primaryAddress:
          type: integer
          format: int32
        secondaryAddress:
          type:
          - string
          - 'null'
        baudrate:
          $ref: '#/components/schemas/MBusBaudrate'
        send_SND_NKE:
          type: boolean
        send_App_Reset:
          type: boolean
        state:
          $ref: '#/components/schemas/MBusMeterState'
        energyType:
          $ref: '#/components/schemas/MBusMeterEnergyType'
        energyEnergySubType:
          $ref: '#/components/schemas/MBusMeterEnergySubType'
      additionalProperties: false
    MBusGatewayDto:
      required:
      - isAddingMetersAllowed
      - lastSeen
      - meters
      - name
      - readoutInterval
      - serialNumber
      - state
      type: object
      properties:
        name:
          type:
          - string
          - 'null'
        serialNumber:
          type:
          - string
          - 'null'
        lastSeen:
          type: string
          format: date-time
        readoutInterval:
          $ref: '#/components/schemas/MBusReadoutIntervall'
        state:
          $ref: '#/components/schemas/MBusGatewayState'
        meters:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/MBusMeterDto'
        isAddingMetersAllowed:
          type: boolean
      additionalProperties: false
    MBusMeterEnergySubType:
      enum:
      - 0
      - 1
      - 2
      - 3
      - 4
      - 5
      - 6
      - 7
      type: integer
      description: '<p>Members: </p><ul><li><i>0</i> - Unknown</li><li><i>1</i> - Cold</li><li><i>2</i> - Heat</li><li><i>3</i> - Electricity</li><li><i>4</i> - Water</li><li><i>5</i> - Gas</li><li><i>6</i> - ElectricityHeat</li><li><i>7</i> - Temperature</li></ul>'
      format: int32
    MBusMeterEnergyType:
      enum:
      - 0
      - 1
      - 2
      - 3
      - 4
      - 5
      - 6
      - 8
      - 9
      type: integer
      description: '<p>Members: </p><ul><li><i>0</i> - Unknown</li><li><i>1</i> - Electricity</li><li><i>2</i> - Water</li><li><i>3</i> - Gas</li><li><i>4</i> - Heat</li><li><i>5</i> - HCA</li><li><i>6</i> - Temperature</li><li><i>8</i> - CompressedAir</li><li><i>9</i> - SolarLog</li></ul>'
      format: int32
    MBusMeterState:
      enum:
      - 0
      - 1
      - 2
      - 3
      type: integer
      description: '<p>Members: </p><ul><li><i>0</i> - LastReadoutOk</li><li><i>1</i> - LastReadoutFailed</li><li><i>2</i> - ReadoutStarted</li><li><i>3</i> - CRCError</li></ul>'
      format: int32
    MBusMeterPostAndPutDto:
      required:
      - addressingMode
      - baudrate
      - primaryAddress
      - secondaryAddress
      - send_App_Reset
      - send_SND_NKE
      type: object
      properties:
        addressingMode:
          $ref: '#/components/schemas/MBusAddressingMode'
        primaryAddress:
          type: integer
          format: int32
        secondaryAddress:
          type:
          - string
          - 'null'
        baudrate:
          $ref: '#/components/schemas/MBusBaudrate'
        send_SND_NKE:
          type: boolean
        send_App_Reset:
          type: boolean
      additionalProperties: false
    MBusGatewayPutDto:
      required:
      - isAddingMetersAllowed
      - name
      - readoutInterval
      type: object
      properties:
        name:
          type:
          - string
          - 'null'
        readoutInterval:
          $ref: '#/components/schemas/MBusReadoutIntervall'
        isAddingMetersAllowed:
          type: boolean
      additionalProperties: false
    MBusAddressingMode:
      enum:
      - 0
      - 1
      - 2
      type: integer
      description: '<p>Members: </p><ul><li><i>0</i> - Invalid</li><li><i>1</i> - Primary</li><li><i>2</i> - Secondary</li></ul>'
      format: int32
  securitySchemes:
    OAuth2:
      type: oauth2
      description: OAuth 2.0 authorization
      flows:
        clientCredentials:
          authorizationUrl: /oauth/authorize
          tokenUrl: /oauth/token
          scopes:
            user.read: Read the user settings
            user.readwrite: Read and write the user settings
            device.read: Read data from the devices
            device.readswitch: Read data from the device and controll the outputs
            device.readwrite: Read data from the device and add/update the values
            auditlog.read: Read the audit log
            partner.read: Read the device of a partner
            partner.write: Read and write the device of a partner
            partner.updatefirmware: Update the firmware of all devices of a partner
            realtimeapi.read: Read the realtime api registrations
            realtimeapi.readwrite: Read and write the realtime api registrations
            oauthapp.write: Write and change of oauth applications
        authorizationCode:
          authorizationUrl: /oauth/authorize
          tokenUrl: /oauth/token
          scopes:
            user.read: Read the user settings
            user.readwrite: Read and write the user settings
            device.read: Read data from the devices
            device.readswitch: Read data from the device and controll the outputs
            device.readwrite: Read data from the device and add/update the values
            auditlog.read: Read the audit log
            partner.read: Read the device of a partner
            partner.write: Read and write the device of a partner
            partner.updatefirmware: Update the firmware of all devices of a partner
            realtimeapi.read: Read the realtime api registrations
            realtimeapi.readwrite: Read and write the realtime api registrations
            oauthapp.write: Write and change of oauth applications
    Basic:
      type: http
      description: Basic authorization
      scheme: Basic