test - HomeAssistant-GreeClimateComponent

This commit is contained in:
David Hába 2024-01-16 22:19:49 +01:00
parent e3e961d04d
commit 09c8231700
6 changed files with 402 additions and 88 deletions

84
climate.yaml Normal file
View File

@ -0,0 +1,84 @@
- platform: gree
name: ac_bedroom
host: 192.168.88.61
port: 7000
mac: "50:2C:C6:98:D2:6E"
target_temp_step: 1
encryption_key: "f9TaIpX5M0B4Pw6l" #<OPTIONAL: custom encryption key>
#uid: #<some kind of device identifier. NOTE: for some devices this is optional>
temp_sensor: sensor.bedroom_thermometer_hygrometer_temperature
lights: input_boolean.ac_bedroom_panel_light
xfan: input_boolean.ac_bedroom_xfan
health: input_boolean.ac_bedroom_health
sleep: input_boolean.ac_bedroom_sleep
powersave: input_boolean.ac_bedroom_eco
eightdegheat: input_boolean.ac_bedroom_eightdegheat
air: input_boolean.ac_bedroom_air
- platform: gree
name: ac_childrensroom
host: 192.168.88.62
port: 7000
mac: "50:2C:C6:C0:65:70"
target_temp_step: 1
encryption_key: "6Ehr3YVie7iTuJ0Y" #<OPTIONAL: custom encryption key>
#uid: #<some kind of device identifier. NOTE: for some devices this is optional>
temp_sensor: sensor.childrensroom_thermometer_hygrometer_temperature
lights: input_boolean.ac_childrensroom_panel_light
xfan: input_boolean.ac_childrensroom_xfan
health: input_boolean.ac_childrensroom_health
sleep: input_boolean.ac_childrensroom_sleep
powersave: input_boolean.ac_childrensroom_eco
eightdegheat: input_boolean.ac_childrensroom_eightdegheat
air: input_boolean.ac_childrensroom_air
- platform: gree
name: ac_guestroom
host: 192.168.88.63
port: 7000
mac: "50:2C:C6:C0:64:FC"
target_temp_step: 1
encryption_key: "6kvK9e5284zLQVQi" #<OPTIONAL: custom encryption key>
#uid: #<some kind of device identifier. NOTE: for some devices this is optional>
temp_sensor: sensor.guestroom_thermometer_hygrometer_temperature
lights: input_boolean.ac_guestroom_panel_light
xfan: input_boolean.ac_guestroom_xfan
health: input_boolean.ac_guestroom_health
sleep: input_boolean.ac_guestroom_sleep
powersave: input_boolean.ac_guestroom_eco
eightdegheat: input_boolean.ac_guestroom_eightdegheat
air: input_boolean.ac_guestroom_air
- platform: gree
name: ac_livingroom
host: 192.168.88.64
port: 7000
mac: "50:2C:C6:B2:74:AF"
target_temp_step: 1
encryption_key: "u0g1VcUuzZAJkR8a" #<OPTIONAL: custom encryption key>
#uid: #<some kind of device identifier. NOTE: for some devices this is optional>
temp_sensor: sensor.livingroom_thermometer_hygrometer_temperature
lights: input_boolean.ac_livingroom_panel_light
xfan: input_boolean.ac_livingroom_xfan
health: input_boolean.ac_livingroom_health
sleep: input_boolean.ac_livingroom_sleep
powersave: input_boolean.ac_livingroom_eco
eightdegheat: input_boolean.ac_livingroom_eightdegheat
air: input_boolean.ac_livingroom_air
- platform: gree
name: ac_bathroom
host: 192.168.88.65
port: 7000
mac: "50:2C:C6:C0:65:B6"
target_temp_step: 1
encryption_key: "4HrqjyoLGJArCu0z" #<OPTIONAL: custom encryption key>
#uid: #<some kind of device identifier. NOTE: for some devices this is optional>
temp_sensor: sensor.bathroom_thermometer_hygrometer_temperature
lights: input_boolean.ac_bathroom_panel_light
xfan: input_boolean.ac_bathroom_xfan
health: input_boolean.ac_bathroom_health
sleep: input_boolean.ac_bathroom_sleep
powersave: input_boolean.ac_bathroom_eco
eightdegheat: input_boolean.ac_bathroom_eightdegheat
air: input_boolean.ac_bathroom_air

View File

@ -24,9 +24,11 @@ group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
template: !include template.yaml
#template: !include template.yaml
sensor: !include sensors.yaml
input_select: !include input_select.yaml
input_boolean: !include input_boolean.yaml
climate: !include climate.yaml
#var: !include var.yaml
http:

205
input_boolean.yaml Normal file
View File

@ -0,0 +1,205 @@
## AC Bedroom
ac_bedroom_panel_light:
name: AC Bedroom Panel Light
icon: mdi:lightbulb
initial: off
ac_bedroom_health:
name: AC Bedroom Health
icon: mdi:pine-tree
initial: on
ac_bedroom_quiet:
name: AC Bedroom Quiet
icon: mdi:headphones
initial: off
ac_bedroom_xfan:
name: AC Bedroom XFan
icon: mdi:fan-remove
initial: on
ac_bedroom_sleep:
name: AC Bedroom Sleep
icon: mdi:power-sleep
initial: off
ac_bedroom_eightdegheat:
name: AC Bedroom 8 degree
icon: mdi:snowflake-thermometer
initial: off
ac_bedroom_fresh_air:
name: AC Bedroom Fresh Air
icon: mdi:air-filter
initial: off
ac_bedroom_eco:
name: AC Bedroom Eco
icon: mdi:leaf-circle-outline
initial: off
## AC Childrensroom
ac_childrensroom_panel_light:
name: AC Childrensroom Panel Light
icon: mdi:lightbulb
initial: off
ac_childrensroom_health:
name: AC Childrensroom Health
icon: mdi:pine-tree
initial: on
ac_childrensroom_quiet:
name: AC Childrensroom Quiet
icon: mdi:headphones
initial: off
ac_childrensroom_xfan:
name: AC Childrensroom XFan
icon: mdi:fan-remove
initial: on
ac_childrensroom_sleep:
name: AC Childrensroom Sleep
icon: mdi:power-sleep
initial: off
ac_childrensroom_eightdegheat:
name: AC Childrensroom 8 degree
icon: mdi:snowflake-thermometer
initial: off
ac_childrensroom_fresh_air:
name: AC Childrensroom Fresh Air
icon: mdi:air-filter
initial: off
ac_childrensroom_eco:
name: AC Childrensroom Eco
icon: mdi:leaf-circle-outline
initial: off
## AC Guestroom
ac_guestroom_panel_light:
name: AC Guestroom Panel Light
icon: mdi:lightbulb
initial: off
ac_guestroom_health:
name: AC Guestroom Health
icon: mdi:pine-tree
initial: on
ac_guestroom_quiet:
name: AC Guestroom Quiet
icon: mdi:headphones
initial: off
ac_guestroom_xfan:
name: AC Guestroom XFan
icon: mdi:fan-remove
initial: on
ac_guestroom_sleep:
name: AC Guestroom Sleep
icon: mdi:power-sleep
initial: off
ac_guestroom_eightdegheat:
name: AC Guestroom 8 degree
icon: mdi:snowflake-thermometer
initial: off
ac_guestroom_fresh_air:
name: AC Guestroom Fresh Air
icon: mdi:air-filter
initial: off
ac_guestroom_eco:
name: AC Guestroom Eco
icon: mdi:leaf-circle-outline
initial: off
## AC Livingroom
ac_livingroom_panel_light:
name: AC Livingroom Panel Light
icon: mdi:lightbulb
initial: off
ac_livingroom_health:
name: AC Livingroom Health
icon: mdi:pine-tree
initial: on
ac_livingroom_quiet:
name: AC Livingroom Quiet
icon: mdi:headphones
initial: off
ac_livingroom_xfan:
name: AC Livingroom XFan
icon: mdi:fan-remove
initial: on
ac_livingroom_sleep:
name: AC Livingroom Sleep
icon: mdi:power-sleep
initial: off
ac_livingroom_eightdegheat:
name: AC Livingroom 8 degree
icon: mdi:snowflake-thermometer
initial: off
ac_livingroom_fresh_air:
name: AC Livingroom Fresh Air
icon: mdi:air-filter
initial: off
ac_livingroom_eco:
name: AC Livingroom Eco
icon: mdi:leaf-circle-outline
initial: off
## AC Bathroom
ac_bathroom_panel_light:
name: AC Bathroom Panel Light
icon: mdi:lightbulb
initial: off
ac_bathroom_health:
name: AC Bathroom Health
icon: mdi:pine-tree
initial: on
ac_bathroom_quiet:
name: AC Bathroom Quiet
icon: mdi:headphones
initial: off
ac_bathroom_xfan:
name: AC Bathroom XFan
icon: mdi:fan-remove
initial: on
ac_bathroom_sleep:
name: AC Bathroom Sleep
icon: mdi:power-sleep
initial: off
ac_bathroom_eightdegheat:
name: AC Bathroom 8 degree
icon: mdi:snowflake-thermometer
initial: off
ac_bathroom_fresh_air:
name: AC Bathroom Fresh Air
icon: mdi:air-filter
initial: off
ac_bathroom_eco:
name: AC Bathroom Eco
icon: mdi:leaf-circle-outline
initial: off

View File

@ -32,28 +32,28 @@
state_class: measurement
# Klimatizace - aktuální teplota
- name: "AC Livingroom Current temperature"
unique_id: ac_livingroom_current_temperature
unit_of_measurement: "°C"
state: >
{{ state_attr('climate.ac_livingroom', 'current_temperature') }}
- name: "AC Bathroom Current temperature"
unique_id: ac_bathroom_current_temperature
unit_of_measurement: "°C"
state: >
{{ state_attr('climate.ac_bathroom', 'current_temperature') }}
- name: "AC Bedroom Current temperature"
unique_id: ac_bedroom_current_temperature
unit_of_measurement: "°C"
state: >
{{ state_attr('climate.ac_bedroom', 'current_temperature') }}
- name: "AC Childrensroom Current temperature"
unique_id: ac_childrensroom_current_temperature
unit_of_measurement: "°C"
state: >
{{ state_attr('climate.ac_childrensroom', 'current_temperature') }}
- name: "AC Guestroom Current temperature"
unique_id: ac_guestroom_current_temperature
unit_of_measurement: "°C"
state: >
{{ state_attr('climate.ac_guestroom', 'current_temperature') }}
# - name: "AC Livingroom Current temperature"
# unique_id: ac_livingroom_current_temperature
# unit_of_measurement: "°C"
# state: >
# {{ state_attr('climate.ac_livingroom', 'current_temperature') }}
# - name: "AC Bathroom Current temperature"
# unique_id: ac_bathroom_current_temperature
# unit_of_measurement: "°C"
# state: >
# {{ state_attr('climate.ac_bathroom', 'current_temperature') }}
# - name: "AC Bedroom Current temperature"
# unique_id: ac_bedroom_current_temperature
# unit_of_measurement: "°C"
# state: >
# {{ state_attr('climate.ac_bedroom', 'current_temperature') }}
# - name: "AC Childrensroom Current temperature"
# unique_id: ac_childrensroom_current_temperature
# unit_of_measurement: "°C"
# state: >
# {{ state_attr('climate.ac_childrensroom', 'current_temperature') }}
# - name: "AC Guestroom Current temperature"
# unique_id: ac_guestroom_current_temperature
# unit_of_measurement: "°C"
# state: >
# {{ state_attr('climate.ac_guestroom', 'current_temperature') }}

View File

@ -1,57 +1,63 @@
{
"external_converters": [],
"devices": [
"devices.yaml"
],
"groups": [
"groups.yaml"
],
"homeassistant": true,
"permit_join": false,
"mqtt": {
"base_topic": "zigbee2mqtt",
"user": "mqtt",
"password": "aqCQhMrTqDzpTxlpqTEg",
"client_id": "zigbee2mqtt",
"include_device_information": true,
"server": "mqtt://core-mosquitto:1883"
},
"serial": {
"port": "/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0",
"disable_led": false
},
"advanced": {
"log_level": "debug",
"pan_id": 6754,
"channel": 25,
"network_key": [
1,
3,
5,
7,
9,
11,
13,
15,
0,
2,
4,
6,
8,
10,
12,
13
],
"availability_blocklist": [],
"availability_passlist": []
},
"device_options": {},
"blocklist": [],
"passlist": [],
"queue": {},
"frontend": {
"port": 8099
},
"experimental": {},
"availability": false
}
external_converters: []
devices:
- devices.yaml
groups:
- groups.yaml
homeassistant: true
permit_join: false
mqtt:
base_topic: zigbee2mqtt
user: mqtt
password: aqCQhMrTqDzpTxlpqTEg
client_id: zigbee2mqtt
include_device_information: true
server: mqtt://core-mosquitto:1883
serial:
port: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
disable_led: false
advanced:
log_level: debug
pan_id: 6754
channel: 25
network_key:
- 1
- 3
- 5
- 7
- 9
- 11
- 13
- 15
- 0
- 2
- 4
- 6
- 8
- 10
- 12
- 13
availability_blocklist: []
availability_passlist: []
log_syslog:
app_name: Zigbee2MQTT
eol: /n
host: localhost
localhost: localhost
path: /dev/log
pid: process.pid
port: 514
protocol: udp4
type: '5424'
adapter_concurrent: 16
device_options: {}
blocklist: []
passlist: []
queue: {}
frontend:
port: 8099
experimental: {}
availability:
active:
timeout: 10
passive:
timeout: 1500

View File

@ -1,10 +1,27 @@
"0xb4e3f9fffe102c12":
'0xb4e3f9fffe102c12':
friendly_name: livingroom_mainlight_gramophone
"0x84fd27fffed7b8a4":
'0x84fd27fffed7b8a4':
friendly_name: livingroom_mainlight_fireplace
"0x84fd27fffe80415b":
'0x84fd27fffe80415b':
friendly_name: livingroom_mainlight_library
"0xb4e3f9fffe102c1f":
'0xb4e3f9fffe102c1f':
friendly_name: livingroom_mainlight_aquarium
"0x60a423fffefc9539":
'0x60a423fffefc9539':
friendly_name: livingroom_scene_switch
'0x3c2ef5fffeb9b5f3':
friendly_name: livingroom_thermometer_hygrometer
description: id_1
'0x3c2ef5fffea9d742':
friendly_name: childrensroom_thermometer_hygrometer
description: id_2
'0x3c2ef5fffeb99158':
friendly_name: bedroom_thermometer_hygrometer
description: id_3
'0x3c2ef5fffeb9d49a':
friendly_name: guestroom_thermometer_hygrometer
description: id_4
'0x3c2ef5fffeb9d48b':
friendly_name: bathroom_thermometer_hygrometer
description: id_5
'0xa4c138957258cb91':
friendly_name: bathroom_boiler_2kw