Skip to content

Gryfsmart.markdown #37355

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

Open
wants to merge 26 commits into
base: next
Choose a base branch
from
Open
Changes from 18 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
300e022
added gryf smart docs
karlowiczpl Feb 7, 2025
c8b9a0b
added gryf smart docs
karlowiczpl Feb 7, 2025
d023a40
added gryf smart docs
karlowiczpl Feb 7, 2025
192a36f
added gryf smart docs
karlowiczpl Feb 7, 2025
b445c30
added gryf smart docs
karlowiczpl Feb 7, 2025
7faa916
Add some feature
karlowiczpl Feb 7, 2025
15d6e62
added GryfSmart docs
karlowiczpl Feb 7, 2025
b8ec43d
Merge branch 'next' into gryfsmart.markdown
karlowiczpl Feb 7, 2025
7c68ca9
Merge branch 'next' into gryfsmart.markdown
karlowiczpl Feb 10, 2025
1ff80b2
Update gryfsmart.markdown
karlowiczpl Feb 27, 2025
f1144b5
Update gryfsmart.markdown
karlowiczpl Feb 27, 2025
632d811
Update gryfsmart.markdown
karlowiczpl Feb 27, 2025
78702e4
Update gryfsmart.markdown
karlowiczpl Feb 27, 2025
3234a6a
Update gryfsmart.markdown
karlowiczpl Feb 27, 2025
8e486e4
Update gryfsmart.markdown
karlowiczpl Feb 27, 2025
aa03c62
Update gryfsmart.markdown
karlowiczpl Feb 27, 2025
0fc27ab
Update gryfsmart.markdown
karlowiczpl Feb 27, 2025
42456df
Update gryfsmart.markdown
karlowiczpl Feb 27, 2025
a13e874
Update gryfsmart.markdown
karlowiczpl Feb 27, 2025
0cdd7c0
Update gryfsmart.markdown
karlowiczpl Feb 27, 2025
b5779be
Update gryfsmart.markdown
karlowiczpl Feb 27, 2025
162f595
Merge branch 'next' into gryfsmart.markdown
karlowiczpl Feb 27, 2025
f931375
Update gryfsmart.markdown
karlowiczpl Feb 28, 2025
cc07357
Update gryfsmart.markdown
karlowiczpl Feb 28, 2025
61013da
Update gryfsmart.markdown
karlowiczpl Feb 28, 2025
0b4cf4f
Update gryfsmart.markdown
karlowiczpl Feb 28, 2025
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
158 changes: 158 additions & 0 deletions source/_integrations/gryfsmart.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
---
title: GRYFSMART
description: Instructions on how to integrate GryfSmart components with Home Assistant.
ha_release: 2025.1
ha_category:
- Binary sensor
- Climate
- Sensor
- Switch
- Light
ha_iot_class: Local Pushing
ha_config_flow: true
ha_domain: gryfsmart
ha_platforms:
- Binary sensor
- Climate
- Sensor
- Switch
- Light
- binary_sensor
ha_codeowners:
- "@karlowiczpl"
ha_integration_type: hub
---

## The [GryfSmart](https://gryfsmart.pl) integration for home assistant allows you to connect to GryfSmart devices

This document describes how to configure and use the GryfSmart integration. The integration support Config Flow (UI-based setup), and requires RS232 interface.

There is currently support for the following device types within Home Assistant:

- Light
- Switch
- Thermostat
- Binary Input
- PWM
- Termometer
- Input

{% include integrations/config_flow.md %}

## 1. Important Integration Information

### 1.1 How to Use the ID

The ID is a combination of the driver ID and the cell number (for outputs,
inputs, etc.).

17

- 1 is the driver ID
- 7 is the cell number

### 1.2 Communication

To connect gryfsmart, you can use either a Physical RS-232 connection or a
USB/RS-232 converter. You need to know the address of the device. Typically, it
is "/dev/ttyS0" for a physical RS-232 port, or "/dev/ttyUSB0" for a converter.

### 1.3 Module Count

The module count is the number of modules in the network.

### 1.4 Entities

{% note %}

**gryfsmart driver supports 5 types of functions:**

- **Relay Output (O)**
- **Input (I)**
- **PWM**
- **Temperature Input (T)**
- **Cover Output(S)**

{% endnote %}

#### 1.4.1 Light

- **Type of function:** Relay Output
- **Services:** turn_on, turn_off
- **Icon:** lightbulb
- **Entity type:** light
- **Configuration scheme:** classic
- **Device class:** None

#### 1.4.2 Switch

- **Type of function:** Relay Output
- **Services:** turn_on, turn_off, toggle
- **Icon:** switch, outlet
- **Entity type:** switch
- **Device class:** switch, outlet
- **Default device class:** switch

#### 1.4.3 Thermostat

- **Type of function:** Relay Output and Temperature Input
- **Services:** turn_on, turn_off, toggle, set_temperature
- **Entity type:** climate
In Config Flow, you enter the t_id into the "extra" parameter
and the o_id into the "id" parameter.

- **Device class:** None

#### 1.4.4 Binary Input

- **Type of function:** Input
- **Services:** None
- **Icon:** Specific for the chosen device class
- **Entity type:** binary_sensor
- **Device class:** door, garage_door, heat, light, motion,
window, smoke, sound, power
- **Default device class:** opening

#### 1.4.5 PWM

- **Type of function:** PWM
- **Services:** turn_on, turn_off, toggle, set_value
- **Icon:** lightbulb
- **Entity type:** light
- **Device class:** None

#### 1.4.6 Thermometer

- **Type of function:** Temperature Input
- **Services:** None
- **Icon:** thermometer
- **Entity type:** sensor
- **Device class:** None

#### 1.4.7 Input

- **Type of function:** Input
- **Services:** None
- **Icon:** switch
- **Entity type:** sensor
- **Device class:** None
- **Extra information:**
If the input is a short press and release, the sensor state is 2;
if it is a long press, the state is 3.



## 2. Configuration via Config Flow

The "extra" parameter corresponds to the device_class if it exists. In the case
of a thermostat, the "extra" parameter maps to **t_id** instead. Otherwise, this
parameter is not required. Additionally, the integration supports editing of
individual devices and configuration. Please note that after making changes,
you must reload the integration for the changes to take effect.

## 4. Helper Entities

Additionally, the configuration automatically generates two entities—**gryf_in**
and **gryf_out**. The **gryf_in** entity receives incoming messages, and the
**gryf_out** entity handles outgoing messages. However, if you are not an
experienced GRYF SMART installer, you may ignore these details.
Loading