Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
elad-bar committed May 14, 2024
1 parent 0bc8dae commit a31e5b8
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 58 deletions.
53 changes: 24 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,6 @@ _Configuration -> Integrations -> {Integration} -> Options_ <br />
| Password | Textbox | + | - | |
| Clear credentials | Check-box | + | Unchecked | Will reset username and password (Not being stored under options) |

#### Debugging

To set the log level of the component to DEBUG, please set it from the options of the component if installed, otherwise, set it within configuration YAML of HA:

```yaml
logger:
default: warning
logs:
custom_components.edgeos: debug
```
## Components

### System
Expand Down Expand Up @@ -120,26 +109,32 @@ logger:
| {Router Name} {Interface Name} Sent Errors | Sensor | Sent errors | Statistics: Total Increment |
| {Router Name} {Interface Name} Sent Packets | Sensor | Sent packets | Statistics: Total Increment |

## Services
## Troubleshooting

### Update configuration
### Debug logs

Allows to set:

- Consider away interval - Time to consider a device without activity as AWAY (any value between 10 and 1800 in seconds)
- Log incoming messages - Enable / Disable logging of incoming WebSocket messages for debug
- Store debug data - Enable / Disable store debug data to './storage' directory of HA for API (edgeos.debug.api.json) and WS (edgeos.debug.ws.json) data for faster debugging or just to get more ideas for additional features
- Update API interval - Interval in seconds to update API data
- Update Entities interval - Interval in seconds to update entities

More details available in `Developer tools` -> `Services` -> `edgeos.update_configuration`
To set the log level of the component to DEBUG, please set it from the options of the component if installed, otherwise, set it within configuration YAML of HA:

```yaml
service: edgeos.update_configuration
data:
device_id: { Main device ID }
log_incoming_messages: true
consider_away_interval: 180
update_api_interval: 30
update_entities_interval: 1
logger:
default: warning
logs:
custom_components.edgeos: debug
```
### Diagnostic file
In Settings -> Devices & services, look for the device, click on the 3 dots menu and download diagnostic file,
Diagnostic file contains sensitive details, go over it and clean it or send it directly to my [email](elad.bar@hotmail)
### Known issues and workarounds
**Upgrading to v2.1.x**
In case the following error appear:
`ERROR (MainThread) [custom_components.edgeos] Failed to load EdgeOS, error: , line: 36`

Before opening an issue, please try to remove integration from `Settings -> Devices & services`,

Restart HA and try to add again, if still happen, open an issue and provide log with debug level as described above.
53 changes: 24 additions & 29 deletions info.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,6 @@ _Configuration -> Integrations -> {Integration} -> Options_ <br />
| Password | Textbox | + | - | |
| Clear credentials | Check-box | + | Unchecked | Will reset username and password (Not being stored under options) |

#### Debugging

To set the log level of the component to DEBUG, please set it from the options of the component if installed, otherwise, set it within configuration YAML of HA:

```yaml
logger:
default: warning
logs:
custom_components.edgeos: debug
```
## Components

### System
Expand Down Expand Up @@ -120,26 +109,32 @@ logger:
| {Router Name} {Interface Name} Sent Errors | Sensor | Sent errors | Statistics: Total Increment |
| {Router Name} {Interface Name} Sent Packets | Sensor | Sent packets | Statistics: Total Increment |

## Services
## Troubleshooting

### Update configuration
### Debug logs

Allows to set:

- Consider away interval - Time to consider a device without activity as AWAY (any value between 10 and 1800 in seconds)
- Log incoming messages - Enable / Disable logging of incoming WebSocket messages for debug
- Store debug data - Enable / Disable store debug data to './storage' directory of HA for API (edgeos.debug.api.json) and WS (edgeos.debug.ws.json) data for faster debugging or just to get more ideas for additional features
- Update API interval - Interval in seconds to update API data
- Update Entities interval - Interval in seconds to update entities

More details available in `Developer tools` -> `Services` -> `edgeos.update_configuration`
To set the log level of the component to DEBUG, please set it from the options of the component if installed, otherwise, set it within configuration YAML of HA:

```yaml
service: edgeos.update_configuration
data:
device_id: { Main device ID }
log_incoming_messages: true
consider_away_interval: 180
update_api_interval: 30
update_entities_interval: 1
logger:
default: warning
logs:
custom_components.edgeos: debug
```
### Diagnostic file
In Settings -> Devices & services, look for the device, click on the 3 dots menu and download diagnostic file,
Diagnostic file contains sensitive details, go over it and clean it or send it directly to my [email](elad.bar@hotmail)
### Known issues and workarounds
**Upgrading to v2.1.x**
In case the following error appear:
`ERROR (MainThread) [custom_components.edgeos] Failed to load EdgeOS, error: , line: 36`

Before opening an issue, please try to remove integration from `Settings -> Devices & services`,

Restart HA and try to add again, if still happen, open an issue and provide log with debug level as described above.

0 comments on commit a31e5b8

Please sign in to comment.