-
Notifications
You must be signed in to change notification settings - Fork 11
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
WIP: Add Smappee Infinity #240
Open
anataty
wants to merge
1
commit into
main
Choose a base branch
from
ty/smappee
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Smappee Infinity | ||
|
||
This [Enapter Device Blueprint](https://go.enapter.com/marketplace-readme) integrates **Smappee Infinity** - Smart energy management solution for any energy need - via [HTTP API](https://go.enapter.com/developers-enapter-http) implemented on [Enapter Virtual UCM](https://go.enapter.com/handbook-vucm). | ||
|
||
## Connect to Enapter | ||
|
||
- Sign up to Enapter Cloud using [Web](https://cloud.enapter.com/) or mobile app ([iOS](https://apps.apple.com/app/id1388329910), [Android](https://play.google.com/store/apps/details?id=com.enapter&hl=en)). | ||
- Use [Enapter Gateway](https://go.enapter.com/handbook-gateway-setup) to run Virtual UCM. | ||
- Create [Enapter Virtual UCM](https://go.enapter.com/handbook-vucm). | ||
- [Upload](https://go.enapter.com/developers-upload-blueprint) this blueprint to Enapter Virtual UCM. | ||
- Use the `Set Up Connection` command in the Enapter mobile or Web app to set up the Enel JuiceBox 32 communication parameters: | ||
- [Your Client ID](https://go.enapter.com/smappee-devapi-docs); | ||
- [Your Client secret](https://go.enapter.com/smappee-devapi-docs). | ||
- [Your Smappee username](https://go.enapter.com/smappee-devapi-docs). | ||
- [Your Smappee password](https://go.enapter.com/smappee-devapi-docs). | ||
|
||
## References | ||
|
||
- [Smappee Infinity product page](https://go.enapter.com/smappee-infinity-product) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,200 @@ | ||
blueprint_spec: device/1.0 | ||
display_name: Smappee Infinity | ||
description: Smart energy monitoring system | ||
icon: enapter-home | ||
vendor: smappee | ||
license: MIT | ||
author: enapter | ||
contributors: | ||
- anataty | ||
support: | ||
url: https://go.enapter.com/enapter-blueprint-support | ||
email: support@enapter.com | ||
verification_level: verified | ||
|
||
communication_module: | ||
product: ENP-VIRTUAL | ||
lua: | ||
dir: smappee_lua | ||
amalg_mode: nodebug | ||
dependencies: | ||
- enapter-ucm | ||
|
||
properties: | ||
vendor: | ||
type: string | ||
display_name: Vendor | ||
model: | ||
type: string | ||
display_name: Model | ||
|
||
telemetry: | ||
status: | ||
type: string | ||
display_name: State | ||
enum: | ||
- ok | ||
- warning | ||
consumption_power: | ||
type: float | ||
unit: Wh | ||
display_name: Consumption | ||
voltage1: | ||
type: float | ||
unit: V | ||
display_name: Voltage Line 1 | ||
voltage2: | ||
type: float | ||
unit: V | ||
display_name: Voltage Line 2 | ||
voltage3: | ||
type: float | ||
unit: V | ||
display_name: Voltage Line 3 | ||
current1_PHASEA: | ||
type: float | ||
unit: A | ||
display_name: Main Load Current phase A | ||
current1_PHASEB: | ||
type: float | ||
unit: A | ||
display_name: Main Load Current phase B | ||
current1_PHASEC: | ||
type: float | ||
unit: A | ||
display_name: Main Load Current phase C | ||
active1_PHASEA: | ||
type: float | ||
unit: W | ||
display_name: Main Load active power phase A | ||
active1_PHASEB: | ||
type: float | ||
unit: W | ||
display_name: Main Load active power phase B | ||
active1_PHASEC: | ||
type: float | ||
unit: W | ||
display_name: Main Load active power phase C | ||
current2_PHASEA: | ||
type: float | ||
unit: A | ||
display_name: Zone Carport/Cafe Current phase A | ||
current2_PHASEB: | ||
type: float | ||
unit: A | ||
display_name: Zone Carport/Cafe Current phase B | ||
current2_PHASEC: | ||
type: float | ||
unit: A | ||
display_name: Zone Carport/Cafe Current phase C | ||
active2_PHASEA: | ||
type: float | ||
unit: W | ||
display_name: Zone Carport/Cafe active power phase A | ||
active2_PHASEB: | ||
type: float | ||
unit: W | ||
display_name: Zone Carport/Cafe active power phase B | ||
active2_PHASEC: | ||
type: float | ||
unit: W | ||
display_name: Zone Carport/Cafe active power phase C | ||
current3_PHASEA: | ||
type: float | ||
unit: A | ||
display_name: Zone Hotel / Office Current phase A | ||
current3_PHASEB: | ||
type: float | ||
unit: A | ||
display_name: Zone Hotel / Office Current phase B | ||
current3_PHASEC: | ||
type: float | ||
unit: A | ||
display_name: Zone Hotel / Office Current phase C | ||
active3_PHASEA: | ||
type: float | ||
unit: W | ||
display_name: Zone Hotel / Office active power phase A | ||
active3_PHASEB: | ||
type: float | ||
unit: W | ||
display_name: Zone Hotel / Office active power phase B | ||
active3_PHASEC: | ||
type: float | ||
unit: W | ||
display_name: Zone Hotel / Office active power phase C | ||
|
||
alerts: | ||
no_data: | ||
severity: warning | ||
display_name: No data from device | ||
description: > | ||
Can't read data from Smappee Infinity. | ||
Please check connection parameters. | ||
connection_error: | ||
severity: warning | ||
display_name: Connection Error | ||
description: > | ||
Please use "Set Up Connection" command to set up your | ||
Smappee account configuration. | ||
no_service_location_name: | ||
severity: warning | ||
display_name: No service location name | ||
description: > | ||
Please use "Set Up Connection" command to set up your | ||
Smappee service location name. | ||
invalid_service_location_id: | ||
severity: warning | ||
display_name: Incorrect service location name | ||
description: > | ||
Please double check Smappee service location name. | ||
|
||
command_groups: | ||
connection: | ||
display_name: Connection | ||
|
||
commands: | ||
# TODO: mark commands containing secrets | ||
write_configuration: | ||
display_name: Set Up Connection | ||
description: Set your Smappee account parameters | ||
group: connection | ||
populate_values_command: read_configuration | ||
ui: | ||
icon: file-document-edit-outline | ||
arguments: | ||
username: | ||
display_name: Smappee username | ||
type: string | ||
required: true | ||
password: | ||
display_name: Smappee password | ||
type: string | ||
required: true | ||
client_id: | ||
display_name: Smappee Client ID | ||
type: string | ||
required: true | ||
client_secret: | ||
display_name: Smappee Client Secret | ||
type: string | ||
required: true | ||
service_location_name: | ||
display_name: Smappee Service Location name | ||
type: string | ||
required: false | ||
read_configuration: | ||
display_name: Read Connection Parameters | ||
group: connection | ||
ui: | ||
icon: file-check-outline | ||
|
||
.cloud: | ||
mobile_main_chart: consumption_power | ||
mobile_charts: | ||
- consumption_power | ||
- active_power | ||
- current | ||
- voltage1 | ||
- voltage2 | ||
- voltage3 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Π’ΡΡ
smappee
Π΄ΠΎΠ»ΠΆΠ½ΠΎ Π±ΡΡΡ?