-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
104 lines (104 loc) · 2.58 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: "Comfort Cloud Action"
description: "GitHub Actions for controlling a Panasonic Comfort Cloud enabled heatpump based on electricity price"
branding:
icon: "thermometer"
color: "green"
inputs:
username:
description: "Panasonic Comfort Cloud username"
required: true
password:
description: "Panasonic Comfort Cloud password"
required: true
area:
description: "Electricity area"
required: true
type: choice
options:
- DK1
- DK2
network-company:
description: "Electricity network company"
required: true
type: choice
options:
- none
- cerius_c
- dinel_c
- elektrus_c
- elinor
- el-net_kongerslev
- elnet_midt_c
- flow_elnet
- forsyning_elnet
- gev_elnet_c
- hammel_elforsyning_net_as
- hjerting_transformatorforening
- hurup_elvrk_net_c
- ikast_el_net_as_c
- kimbrer_c
- konstant_c
- l-net
- laesoe_elnet_c
- midtfyns_elforsyning_c
- n1_c
- nakskov_elnet_e
- netselskabet_elvaerk_331_c
- netselskabet_elvaerk_c
- nke-elnet
- nord_energi_net
- noe_net
- radius_c
- rah_c
- ravdex
- sunds_net
- tarm_elværk_net_as
- trefor_el-net_c
- trefor_el-net_oest_c
- veksel
- videbaek_elnet_c
- vildbjerg_elnet_c
- vores_elnet
- zeanet
- aal_el_net_c
electricity-company:
description: "Electricity company"
required: true
type: choice
options:
- spotpris
- andel_energi_timeenergi
- nettopower
price-max:
description: "Electricity price max"
required: true
type: number
outputs:
changes:
description: "Indicates if there are changes from the latest release"
value: ${{ steps.run.outputs.changes }}
latest:
description: "The lastest release on the workflow branch"
value: ${{ steps.run.outputs.latest }}
runs:
using: "composite"
steps:
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
pip install -r $GITHUB_ACTION_PATH/requirements.txt
- name: Run
shell: bash
run: python $GITHUB_ACTION_PATH/main.py
env:
COMFORT_CLOUD_USERNAME: ${{ inputs.username }}
COMFORT_CLOUD_PASSWORD: ${{ inputs.password }}
COMFORT_CLOUD_AREA: ${{ inputs.area }}
COMFORT_CLOUD_NETWORK_COMPANY: ${{ inputs.network-company }}
COMFORT_CLOUD_ELECTRICITY_COMPANY: ${{ inputs.electricity-company }}
COMFORT_CLOUD_PRICE_MAX: ${{ inputs.price-max }}