Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux CustomHvac for MQTT support #81

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

krzysiekbielicki
Copy link

This is my dirty way to enable basic MQTT support in Hvac channel

@krzysiekbielicki
Copy link
Author

I have no experience in C++ co it's ugly copy-paste, but works!

Purpose of this PR is to enable MQTT as output from Hvac.

In my solution I have multiple temperature sensors connected to supla-device via MQTT and tasmota relays in heat source and valves (work in progress) this allows me to depend only on local network not on active internet connection and still use cloud

@klew
Copy link
Member

klew commented Jan 27, 2025

Please update sd4linux readme file with "CustomHvac" description. Please also add there yaml config example.

cpplint is failing on those:
extras/porting/linux/linux_yaml_config.cpp:1024: Lines should be <= 80 characters long [whitespace/line_length] [2]
extras/porting/linux/linux_yaml_config.cpp:1024: Missing space before { [whitespace/braces] [5]
extras/porting/linux/linux_yaml_config.h:157: Lines should be <= 80 characters long [whitespace/line_length] [2]
extras/porting/linux/supla/control/custom_hvac.cpp:32: Lines should be <= 80 characters long [whitespace/line_length] [2]
extras/porting/linux/supla/control/custom_hvac.cpp:34: Single-parameter constructors should be marked explicit. [runtime/explicit] [5]
extras/porting/linux/supla/control/custom_hvac.cpp:44: Namespace should be terminated with "// namespace Supla" [readability/namespace] [5]
extras/porting/linux/supla/control/custom_hvac.cpp:49: Weird number of spaces at line-start. Are you using a 2-space indent? [whitespace/indent] [3]
extras/porting/linux/supla/control/custom_hvac.cpp:52: Weird number of spaces at line-start. Are you using a 2-space indent? [whitespace/indent] [3]
extras/porting/linux/supla/control/custom_hvac.h:41: Single-parameter constructors should be marked explicit. [runtime/explicit] [5]
extras/porting/linux/supla/control/custom_hvac.h:43: Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants