Met behulp van het script van @
chibald (dit)
nu keurig alle waardes in MQTT.
Ik draai dit script nu op een apart systeempje, ben al aan t knoeien geweest met Appdeamon, maar helaas.
Voordat ik me in al deze nieuwe materie ga verdiepen, zijn er medetweakers, die eea draaiend hebben in Home-Assistant? Zo ja zou je de details dan willen delen?
Ik heb de vraag ook even aan chat.openai.com gesteld:
To display the heat pump values in Home Assistant, you will need to do the following:
Make sure that the data is being published to an MQTT topic that is being subscribed to by Home Assistant. You can check the MQTT configuration in your configuration.yaml file to see which topics are being subscribed to.
In your Home Assistant configuration, define an mqtt sensor for each heat pump value that you want to display. You can do this in the sensor: section of your configuration.yaml file. For example:
sensor:
- platform: mqtt
name: "Heat Pump Temperature 1"
state_topic: "heatpump/T1"
- platform: mqtt
name: "Heat Pump Temperature 2"
state_topic: "heatpump/T2"
- platform: mqtt
name: "Heat Pump Temperature 3"
state_topic: "heatpump/T3"
Add the MQTT sensors to a Home Assistant group or view, or use the Lovelace interface to create a dashboard to display the values.
Daarna een vervolg vraag gesteld:
If the topic for all of the heat pump data is heatpump, you can use a single mqtt sensor configuration with multiple json_attributes to receive and parse the data in Home Assistant. Here is an example of how you could configure the sensor: section of your configuration.yaml file:
sensor:
- platform: mqtt
name: "Heat Pump Data"
state_topic: "heatpump"
json_attributes:
- T1
- T2
- T3
- T6
- T7
- T8
- T9
- T10
- IsManual
- FanON
- CirculationPumpON
- HeatPumpON
- CompressorON
- HeaterEON
- EV1
- WaitingStatus
- InstallationScheme
- HeatPumpEnabled
- TapWaterSensor
- TapWaterTemp
- TapWaterHysteresis
- AmbientMinTemp
- AntiFreezingEnabled
- WaterPumpOperationMode
- FanOperationMode
- DefrostingInterval
- DefrostingStartTemp
- DefrostingStopTemp
- DefrostingMaxTime
- ExtControllerHPOFF
This will create a single mqtt sensor called "Heat Pump Data" with all of the specified attributes as JSON attributes. You can then use the template sensor or input_number component to extract the individual values and display them in Home Assistant.
Nu ik toch bezig was, wilde ik wel eens weten hoe ik de MQTT data dan eventueel ook in Domoticz kan krijgen:
To make the MQTT data available as an attribute in Domoticz, you will need to create a Virtual Sensor in Domoticz and configure it to receive the data from the MQTT broker. Here is an example of how you can do this:
In Domoticz, create a Hardware entry for the MQTT broker that is receiving the heat pump data. This can be done in the Setup -> Hardware page of the web interface.
In the Setup -> Devices page, create a new Virtual Sensor for the heat pump data attribute that you want to display. For example, you might create a Temperature sensor for the T1 attribute or a Switch sensor for the FanON attribute.
In the Setup -> Devices page, click on the Edit icon for the virtual sensor and select the Edit tab.
In the Edit tab, set the following fields:
Name: the name of the sensor (e.g., "Heat Pump Temperature 1")
Type: the type of sensor (e.g., "Temperature")
Used Hardware: the MQTT broker hardware entry that you created in step 1
Type of sensor: "Set manually"
Addres 1: the MQTT topic that the data is being published to (e.g., "heatpump/T1")
Click the Update button to save the changes.
You should now be able to see the heat pump data in the Setup -> Devices page of the web interface and use it in Domoticz as you would any other sensor.
I hope this helps! Let me know if you have any questions.
Regenerate response
[
Voor 95% gewijzigd door
Sterke-Jerke op 01-01-2023 16:46
]
S.J.