-
-
Notifications
You must be signed in to change notification settings - Fork 130
-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
MQTT Homeassistant Support for "datetime" and "date" Fields #1120
Comments
Hello, and happy new year. |
someone wants to find out how date+datetime are represented in HA when exchanged via MQTT? |
Currently I suggest using text (with a regex as done in #1006 / f0d737d ) as there is no dedicated date / datetime / time entity supported for mqtt discovery: Currently supported entities: Same problem: https://community.home-assistant.io/t/mqtt-discovery-input-datetime/444720 Feature request: https://community.home-assistant.io/t/mqtt-discovery-time-datetime/663870 |
Text would be enough for Domoticz. But to be honest, I don't need this anymore, I'm using Hc1SFMode and Hc2SFMode to set holiday mode and it seems to work as expected |
I add date and time in file "mqtt-hassio.cfg" on row 108 Change on rows from 148:
Change on rows from 230:
Change on rows from 330:
|
Thanks for all the work on this, i still fail to understand how to declare anything in mqtt config file, but setting date is one of the most critical applications of ebusd im using. |
I can confirm the changes are working :) I am planning to just use it for the holiday period, so that is not an issue. I'll create a PR with the above changes. |
I use local config files for eBUS Deamon so I also lower priority of that values. In other case you also can skip recorder for that values at all:
|
I am aware of that, it's just something that you need to do explicitly. |
thats what I think as well. would be better to just prepare it in the integration file and having to enable it explicitly imho (also valid for #1134) |
That is exactly what #1134 does. It does not automatically expose the attributes, just makes them editable if they are exposed. |
I noticed even with the additions of #1134 in place, time entities with the datatype HTI are not automatically exposed to HA. e.g.
Does it require a separate HA template definition? e.g. _templates.csv:
|
Any explanation on why the PR is not merged ? |
Description
Similar to #1006
I would like to request Homeassistant MQTT Discovery support for date(times)s aswell.
The text was updated successfully, but these errors were encountered: