This is what I did (with some suggestions of a friend of mine) some weeks ago (I hope to remeber every step):
1) I installed and set up the Mosquitto Brocker Add on on my Docker;
2) I have used MQTT Explorer (free softare) to see the mqtt data that Reef-pi sent to the Broker.
3) In the config.yaml file I added the following line (It was there... but to help people to better "understand" every step...):
sensor: !include sensors.yaml
climate: !include climate.yaml
4) In the sensors.yaml file, I added the following:
# Dati Acquario
- platform: mqtt
name: Temperatura Acquario DX
state_topic: "temp_dx_reading"
- platform: mqtt
name: Temperatura Raspberry 3B+
state_topic: "temp_raspberry_reading"
- platform: mqtt
name: Temperatura Acquario SX
state_topic: "temp_sx_reading"
- platform: mqtt
name: pH
state_topic: "ph_ph"
5) After a reboot, the sensor were in the "Developer Tool" section of the frontend.
6) I created the climate.yaml file and I added 3 generic thermost:
- platform: generic_thermostat
name: Temperatura SX
heater: switch.meross_acquario_mss425f_switch_3
target_sensor: sensor.temperatura_acquario_sx
ac_mode: false
target_temp: 25.1
cold_tolerance: 0.2
hot_tolerance: 0.2
initial_hvac_mode: "heat"
- platform: generic_thermostat
name: pH
heater: switch.meross_acquario_mss425f_switch_1
target_sensor: sensor.ph
ac_mode: true
target_temp: 6.70
cold_tolerance: 0.03
hot_tolerance: 0.03
initial_hvac_mode: "cool"
- platform: generic_thermostat
name: Temperatura DX
heater: switch.meross_acquario_mss425f_switch_2
target_sensor: sensor.temperatura_acquario_dx
ac_mode: false
target_temp: 25
cold_tolerance: 0.2
hot_tolerance: 0.2
initial_hvac_mode: "heat"
7) Then, I create the grafic "page" of my Fish Tank working on the ui-lovelace.yaml (see attached file)
8) At the end I created some automations that send me a telegram message if:
- temperature is > 27°C
- temperature is < 23°C
- ph is > 7.00 (in progress... I forget to write it)
- ph is < 6.50 (in progress)
I prefer to use a 4 plugs MEROSS smart wifi power strip to control temperature (heating cable and heater) and the CO2 valve.
That's all... any suggestion is welcome.