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

Climate component in MQTT #10764

Closed
misery opened this issue May 27, 2021 · 13 comments
Closed

Climate component in MQTT #10764

misery opened this issue May 27, 2021 · 13 comments
Labels
enhancement An enhancement or new feature for an existing add-on

Comments

@misery
Copy link

misery commented May 27, 2021

I like to request to support "climate" components in MQTT via homeassistant discovery.

https://www.openhab.org/addons/bindings/mqtt.homeassistant/

The HomeAssistant Climate Components is not yet supported.
[WARN ] [.mqtt.homeassistant.internal.CFactory] - Not supported
java.lang.UnsupportedOperationException: Component:Climate not supported yet
        at org.openhab.binding.mqtt.homeassistant.internal.ComponentClimate.<init>(ComponentClimate.java:38) ~[?:?]
        at org.openhab.binding.mqtt.homeassistant.internal.CFactory.createComponent(CFactory.java:66) ~[?:?]
        at org.openhab.binding.mqtt.homeassistant.internal.DiscoverComponents.processMessage(DiscoverComponents.java:99) 

I wrote my own heating 2 mqtt bridge and want to add auto-discovery. openhab can detect it but throws the UnsupprtedOperationException.

https://github.com/misery/HeatingMqttBridge

@misery misery added the enhancement An enhancement or new feature for an existing add-on label May 27, 2021
@misery
Copy link
Author

misery commented May 27, 2021

@davidgraeff Is this possible to implement with current architecture of openhab3? :-)

@cribskip
Copy link
Contributor

#10690 seems to implement this

@misery
Copy link
Author

misery commented May 27, 2021

Oh, thank you for the link to the PR! Really nice.

@antroids
Copy link
Contributor

@misery
Copy link
Author

misery commented May 29, 2021

Thanks, I'm still using 2.5.12. Next upgrade will be 3.1. 🙂

Btw, looks like the alias "temp_unit" is missing. I See "temperature_unit" only.

@antroids
Copy link
Contributor

antroids commented May 29, 2021

@jochen314
Copy link
Contributor

The abbreviations are listed as 'Supported abbreviations:' here: https://www.home-assistant.io/docs/mqtt/discovery/
And the 'temp_unit' is implemented in openhub here:

Our list needs a update again, it is no longer complete :-(

@antroids
Copy link
Contributor

Thanks, I'm still using 2.5.12. Next upgrade will be 3.1.

Btw, looks like the alias "temp_unit" is missing. I See "temperature_unit" only.

Sorry, I haven't ready to use environment for 2.5.x and cannot build it for this version.

Personally for me migration from 2.5.x to 3.0.x was pretty simple. I still using the same config files for items and sitemaps definition. The only incompatibility was tricky global var in my rule, but it was easily replaced by an additional item.

@misery
Copy link
Author

misery commented May 31, 2021

No problem. I can spawn a 3.0 instance in docker to have a test environment.

@antroids
Copy link
Contributor

antroids commented Jun 1, 2021

No problem. I can spawn a 3.0 instance in docker to have a test environment.

There are 2 versions, I think they should be compatible with OH 3.x.
The simplest way to install is uninstall/stop old and place one of these bundles to addons folder.

org.openhab.binding.mqtt.homeassistant-3.0.3-SNAPSHOT.tar.gz
org.openhab.binding.mqtt.homeassistant-3.1.0-SNAPSHOT.tar.gz

@misery
Copy link
Author

misery commented Jun 5, 2021

Thanks! I tried it and it works for me. Is that right that temp_stat_t / temp_cmd_t will be mapped to a Point instead of Setpoint?

@antroids
Copy link
Contributor

antroids commented Jun 6, 2021

Thanks! I tried it and it works for me. Is that right that temp_stat_t / temp_cmd_t will be mapped to a Point instead of Setpoint?

Not sure what are Point and Setpoint in HVAC terminology, in HA there are:

  1. Current temperature for sensor, read only.
  2. Temperature (also low/high) for target temperature set.

misery added a commit to misery/HeatingMqttBridge that referenced this issue Jun 6, 2021
@misery
Copy link
Author

misery commented Aug 25, 2021

Seems fixed. :-)

@misery misery closed this as completed Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

No branches or pull requests

4 participants