Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/component/b route meter #37174

Closed
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 86 additions & 0 deletions source/_integrations/b_route_meter.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
---
title: "B-Route Smart Meter"
description: "Integration with Japanese smart meters via B-route [Bルートサービス] interface"
ha_category: Sensor
ha_release: "0.1.0"
ha_iot_class: "Local Polling"
ha_config_flow: true
ha_domain: b_route_meter
ha_quality_scale: bronze
ha_codeowners:
- '@yufeikang'
---

The B-Route (Bルートサービス) Smart Meter integration allows you to read power consumption data from Japanese smart meters through the B-route interface.

## Prerequisites

- Smart meter with B-route support (e.g., smart meters from TEPCO and Chubu Electric Power)
- B-route authentication ID and password (obtained from your power company)
- USB to Wi-SUN adapter (e.g., tested with [BP35A1](https://www.rohm.co.jp/products/wireless-communication/specified-low-power-radio-modules/bp35a1-product))

## Setup

This integration can be configured through the Home Assistant UI:

1. Navigate to the Integrations page in Home Assistant
2. Click the "Add Integration" button in the bottom right corner
3. Search for "B-Route Smart Meter"
4. Follow the configuration wizard

{% configuration %}
route_b_id:
description: B-route ID obtained from your power company
required: true
type: string
route_b_pwd:
description: B-route password obtained from your power company
required: true
type: string
serial_port:
description: Path to the serial device
required: false
type: string
default: /dev/ttyS0
yufeikang marked this conversation as resolved.
Show resolved Hide resolved
{% endconfiguration %}

## Sensors

This integration creates the following sensor entities:

| Entity ID | Description | Unit |
|-----------|-------------|------|
| sensor.b_route_instantaneous_power | Instantaneous power consumption | W |
| sensor.b_route_instantaneous_current | Instantaneous current | A |
| sensor.b_route_instantaneous_voltage | Instantaneous voltage | V |
| sensor.b_route_cumulative_forward | Cumulative forward power consumption | kWh |
| sensor.b_route_cumulative_reverse | Cumulative reverse power consumption | kWh |

## Troubleshooting

If you experience connection issues:

1. Verify your B-route ID and password are correct
2. Check if the serial port path is correct
3. Confirm your smart meter supports B-route functionality
4. Check Home Assistant logs for detailed error messages
yufeikang marked this conversation as resolved.
Show resolved Hide resolved

<div class='note'>

For TEPCO customers, you can apply for B-route ID and password through the [TEPCO website](https://www.tepco.co.jp/pg/consignment/liberalization/smartmeter-broute.html).

</div>

## Data Updates

The integration polls the smart meter every 10 seconds to update the sensor values.

## Technical Details

The integration uses the ECHONET Lite protocol to communicate with the smart meter via the B-route interface. It automatically handles:

- Channel scanning
- PANA authentication
- Data parsing for various power metrics (E7, E8, E9, EA, EB)

For more information about the protocol, refer to the [ECHONET Lite Specification](https://echonet.jp/spec_g/).