Initial commit

This commit is contained in:
Marc Fokkert
2023-07-26 21:08:05 +02:00
commit dc66deb991
37 changed files with 1165 additions and 0 deletions

View File

@@ -0,0 +1,69 @@
climate:
- platform: mqtt
unique_id: mhi0001a
name: MHI
initial: 21
min_temp: 18
max_temp: 30
modes:
- "auto"
- "dry"
- "cool"
- "fan_only"
- "heat"
- "off"
swing_modes:
- "1"
- "2"
- "3"
- "4"
- "Swing"
- "?"
fan_modes:
- "1"
- "2"
- "3"
- "4"
mode_command_topic: "MHI-AC-Ctrl-F/set/Mode"
temperature_command_topic: "MHI-AC-Ctrl-F/set/Tsetpoint"
fan_mode_command_topic: "MHI-AC-Ctrl-F/set/Fan"
swing_mode_command_topic: "MHI-AC-Ctrl-F/set/Vanes"
current_temperature_topic: "MHI-AC-Ctrl-F/Troom"
mode_state_topic: "MHI-AC-Ctrl-F/Mode"
temperature_state_topic: "MHI-AC-Ctrl-F/Tsetpoint"
fan_mode_state_topic: "MHI-AC-Ctrl-F/Fan"
swing_mode_state_topic: "MHI-AC-Ctrl-F/Vanes"
- platform: mqtt
unique_id: mhi0002a
name: MHI
initial: 21
min_temp: 18
max_temp: 30
modes:
- "auto"
- "dry"
- "cool"
- "fan_only"
- "heat"
- "off"
swing_modes:
- "1"
- "2"
- "3"
- "4"
- "Swing"
- "?"
fan_modes:
- "1"
- "2"
- "3"
- "4"
mode_command_topic: "MHI-AC-Ctrl-B/set/Mode"
temperature_command_topic: "MHI-AC-Ctrl-B/set/Tsetpoint"
fan_mode_command_topic: "MHI-AC-Ctrl-B/set/Fan"
swing_mode_command_topic: "MHI-AC-Ctrl-B/set/Vanes"
current_temperature_topic: "MHI-AC-Ctrl-B/Troom"
mode_state_topic: "MHI-AC-Ctrl-B/Mode"
temperature_state_topic: "MHI-AC-Ctrl-B/Tsetpoint"
fan_mode_state_topic: "MHI-AC-Ctrl-B/Fan"
swing_mode_state_topic: "MHI-AC-Ctrl-B/Vanes"

View File

@@ -0,0 +1,6 @@
persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
allow_anonymous false
password_file /mosquitto/config/passwords

View File

View File

@@ -0,0 +1,8 @@
mqtt:
host: "192.168.2.125"
auth: # Optional If included, username_pw_set() is called with user/password
username: 'mqtt-exporter' # Required (when auth is present)
password: 'XKk6725HrTpPW5zkWy9f' # Optional
logging:
level: 'debug' # Optional default 'info'

View File

@@ -0,0 +1,252 @@
# Example metric definition
metrics:
- name: 'mhi_ac_ctrl_f_mode'
help: 'Mode'
type: 'gauge'
topic: 'MHI-AC-Ctrl-F/Mode'
label_configs:
- source_labels: [ '__value__' ]
regex: '^(.*)$'
target_label: 'state'
replacement: '\1'
action: 'replace'
- source_labels: [ '__value__' ]
replacement: '1'
target_label: '__value__'
action: 'replace'
- name: 'mhi_ac_ctrl_f_power'
help: 'Power'
type: 'gauge'
topic: 'MHI-AC-Ctrl-F/Power'
label_configs:
- source_labels: [ '__value__' ]
regex: '^(.*)$'
target_label: 'state'
replacement: '\1'
action: 'replace'
- source_labels: [ '__value__' ]
replacement: '1'
target_label: '__value__'
action: 'replace'
- name: 'mhi_ac_ctrl_f_troom'
help: 'Room measured temperature'
type: 'gauge'
topic: 'MHI-AC-Ctrl-F/Troom'
- name: 'mhi_ac_ctrl_f_tsetpoint'
help: 'Room setpoint temperature'
type: 'gauge'
topic: 'MHI-AC-Ctrl-F/Tsetpoint'
- name: 'mhi_ac_ctrl_f_opdata_td'
help: 'Discharge Pipe Temperature'
type: 'gauge'
topic: 'MHI-AC-Ctrl-F/OpData/TD'
- name: 'mhi_ac_ctrl_f_opdata_ct'
help: 'Current'
type: 'gauge'
topic: 'MHI-AC-Ctrl-F/OpData/CT'
- name: 'mhi_ac_ctrl_f_opdata_tdsh'
help: 'Compressor discharge pipe super heat'
type: 'gauge'
topic: 'MHI-AC-Ctrl-F/OpData/TDSH'
- name: 'mhi_ac_ctrl_f_opdata_ou_fanspeed'
help: 'Outdoor unit fan speed'
type: 'gauge'
topic: 'MHI-AC-Ctrl-F/OpData/OU-FANSPEED'
- name: 'mhi_ac_ctrl_f_opdata_ou_defrost'
help: 'Defrost control on/off'
type: 'gauge'
topic: 'MHI-AC-Ctrl-F/OpData/DEFROST'
label_configs:
- source_labels: [ '__value__' ]
regex: '^(.*)$'
target_label: 'state'
replacement: '\1'
action: 'replace'
- source_labels: [ '__value__' ]
replacement: '1'
target_label: '__value__'
action: 'replace'
- name: 'mhi_ac_ctrl_f_opdata_ou_eev1'
help: 'Pulse rate of the outdoor unit expansion valve EEVC'
type: 'gauge'
topic: 'MHI-AC-Ctrl-F/OpData/OU-EEV1'
- name: 'mhi_ac_ctrl_f_opdata_tsetpoint'
help: 'Set temperature'
type: 'gauge'
topic: 'MHI-AC-Ctrl-F/OpData/Tsetpoint'
- name: 'mhi_ac_ctrl_f_opdata_return_air'
help: 'Return air sensor temperature'
type: 'gauge'
topic: 'MHI-AC-Ctrl-F/OpData/RETURN-AIR'
- name: 'mhi_ac_ctrl_f_opdata_thi_r1'
help: 'Indoor heat exchanger sensor (on U bend)'
type: 'gauge'
topic: 'MHI-AC-Ctrl-F/OpData/THI-R1'
- name: 'mhi_ac_ctrl_f_opdata_thi_r2'
help: 'Indoor heat exchanger sensor (on Capillary)'
type: 'gauge'
topic: 'MHI-AC-Ctrl-F/OpData/THI-R2'
- name: 'mhi_ac_ctrl_f_opdata_thi_r3'
help: 'Indoor heat exchanger sensor (on suction header) '
type: 'gauge'
topic: 'MHI-AC-Ctrl-F/OpData/THI-R3'
- name: 'mhi_ac_ctrl_f_opdata_iu_fanspeed'
help: 'Indoor unit fan speed'
type: 'gauge'
topic: 'MHI-AC-Ctrl-F/OpData/IU-FANSPEED'
- name: 'mhi_ac_ctrl_f_opdata_outdoor'
help: 'Outdoor air temperature'
type: 'gauge'
topic: 'MHI-AC-Ctrl-F/OpData/OUTDOOR'
- name: 'mhi_ac_ctrl_f_opdata_tho_r1'
help: 'Outdoor unit heat exchanger sensor'
type: 'gauge'
topic: 'MHI-AC-Ctrl-F/OpData/THO-R1'
- name: 'mhi_ac_ctrl_f_opdata_comp'
help: 'Compressor frequency'
type: 'gauge'
topic: 'MHI-AC-Ctrl-F/OpData/COMP'
- name: 'mhi_ac_ctrl_b_mode'
help: 'Mode'
type: 'gauge'
topic: 'MHI-AC-Ctrl-B/Mode'
label_configs:
- source_labels: [ '__value__' ]
regex: '^(.*)$'
target_label: 'state'
replacement: '\1'
action: 'replace'
- source_labels: [ '__value__' ]
replacement: '1'
target_label: '__value__'
action: 'replace'
- name: 'mhi_ac_ctrl_b_power'
help: 'Power'
type: 'gauge'
topic: 'MHI-AC-Ctrl-B/Power'
label_configs:
- source_labels: [ '__value__' ]
regex: '^(.*)$'
target_label: 'state'
replacement: '\1'
action: 'replace'
- source_labels: [ '__value__' ]
replacement: '1'
target_label: '__value__'
action: 'replace'
- name: 'mhi_ac_ctrl_b_troom'
help: 'Room measured temperature'
type: 'gauge'
topic: 'MHI-AC-Ctrl-B/Troom'
- name: 'mhi_ac_ctrl_b_tsetpoint'
help: 'Room setpoint temperature'
type: 'gauge'
topic: 'MHI-AC-Ctrl-B/Tsetpoint'
- name: 'mhi_ac_ctrl_b_opdata_td'
help: 'Discharge Pipe Temperature'
type: 'gauge'
topic: 'MHI-AC-Ctrl-B/OpData/TD'
- name: 'mhi_ac_ctrl_b_opdata_ct'
help: 'Current'
type: 'gauge'
topic: 'MHI-AC-Ctrl-B/OpData/CT'
- name: 'mhi_ac_ctrl_b_opdata_tdsh'
help: 'Compressor discharge pipe super heat'
type: 'gauge'
topic: 'MHI-AC-Ctrl-B/OpData/TDSH'
- name: 'mhi_ac_ctrl_b_opdata_ou_fanspeed'
help: 'Outdoor unit fan speed'
type: 'gauge'
topic: 'MHI-AC-Ctrl-B/OpData/OU-FANSPEED'
- name: 'mhi_ac_ctrl_b_opdata_ou_defrost'
help: 'Defrost control on/off'
type: 'gauge'
topic: 'MHI-AC-Ctrl-B/OpData/DEFROST'
label_configs:
- source_labels: [ '__value__' ]
regex: '^(.*)$'
target_label: 'state'
replacement: '\1'
action: 'replace'
- source_labels: [ '__value__' ]
replacement: '1'
target_label: '__value__'
action: 'replace'
- name: 'mhi_ac_ctrl_b_opdata_ou_eev1'
help: 'Pulse rate of the outdoor unit expansion valve EEVC'
type: 'gauge'
topic: 'MHI-AC-Ctrl-B/OpData/OU-EEV1'
- name: 'mhi_ac_ctrl_b_opdata_tsetpoint'
help: 'Set temperature'
type: 'gauge'
topic: 'MHI-AC-Ctrl-B/OpData/Tsetpoint'
- name: 'mhi_ac_ctrl_b_opdata_return_air'
help: 'Return air sensor temperature'
type: 'gauge'
topic: 'MHI-AC-Ctrl-B/OpData/RETURN-AIR'
- name: 'mhi_ac_ctrl_b_opdata_thi_r1'
help: 'Indoor heat exchanger sensor (on U bend)'
type: 'gauge'
topic: 'MHI-AC-Ctrl-B/OpData/THI-R1'
- name: 'mhi_ac_ctrl_b_opdata_thi_r2'
help: 'Indoor heat exchanger sensor (on Capillary)'
type: 'gauge'
topic: 'MHI-AC-Ctrl-B/OpData/THI-R2'
- name: 'mhi_ac_ctrl_b_opdata_thi_r3'
help: 'Indoor heat exchanger sensor (on suction header) '
type: 'gauge'
topic: 'MHI-AC-Ctrl-B/OpData/THI-R3'
- name: 'mhi_ac_ctrl_b_opdata_iu_fanspeed'
help: 'Indoor unit fan speed'
type: 'gauge'
topic: 'MHI-AC-Ctrl-B/OpData/IU-FANSPEED'
- name: 'mhi_ac_ctrl_b_opdata_outdoor'
help: 'Outdoor air temperature'
type: 'gauge'
topic: 'MHI-AC-Ctrl-B/OpData/OUTDOOR'
- name: 'mhi_ac_ctrl_b_opdata_tho_r1'
help: 'Outdoor unit heat exchanger sensor'
type: 'gauge'
topic: 'MHI-AC-Ctrl-B/OpData/THO-R1'
- name: 'mhi_ac_ctrl_b_opdata_comp'
help: 'Compressor frequency'
type: 'gauge'
topic: 'MHI-AC-Ctrl-B/OpData/COMP'

View File

@@ -0,0 +1,13 @@
scrape_configs:
- job_name: hass
scrape_interval: 60s
metrics_path: /api/prometheus
authorization:
credentials: ''
static_configs:
- targets: ['192.168.2.70:8123']
- job_name: mqtt
scrape_interval: 30s
metrics_path: /metrics
static_configs:
- targets: ['192.168.2.123:9344']