Comments (13)
Hello, and happy new year.
Same here, for Domoticz, I can't figure out how to get date working, I'm having a really hard time understanding how parsing is supposed to work...
from ebusd.
someone wants to find out how date+datetime are represented in HA when exchanged via MQTT?
from ebusd.
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:
https://www.home-assistant.io/integrations/mqtt/#mqtt-discovery:~:text=Entity%20integrations%20supported%20by%20MQTT%20discovery
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
(Please Vote for the feature request to make it visible)
from ebusd.
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
from ebusd.
I add date and time in file "mqtt-hassio.cfg" on row 108 filter-name = ....|date|time|...
Change on rows from 148:
# HA integration: skip string/date/time types completely
type_map-string = string
type_map-date = date
type_map-time = time
Change on rows from 230:
type_switch-w-date =
text,,,date = date,
text,, = date,
text,, =
type_switch-w-datetime =
text,, = btime,
text,, = dcfstate,
text,, = datetime,
text,, = bdate,
text,, =
type_switch-w-string =
text,, = date,
text,, = datetime,
text,, = dcfstate,
text,, = bdate,
text,, = btime,
text,, =
type_switch-date =
sensor,, = date,
sensor,, =
type_switch-datetime =
sensor,, =
type_switch-string =
sensor,, =
Change on rows from 330:
type_part-textdate = ,
"command_topic":"%topic/set",
"pattern": "^[0-3][0-9].[01][0-9].20[0-3][0-9]$"%state_class
type_part-textdatetime = ,
"command_topic":"%topic/set"%state_class
type_part-text = ,
"command_topic":"%topic/set"%state_class
from ebusd.
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.
from ebusd.
I can confirm the changes are working :)
Be very careful with exposing the current date/time to homeassistant, as this will update VERY frequent and will pollute the history/recorder of your homeassistant instance.
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.
With the default settings this should not have any impact for any user if we do not change filter-name
right?
It would just allow editing of the dates for users having exposed any of the time/date/datetime properties themselves.
from ebusd.
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:
exclude map (optional)
Configure which integrations should be excluded from recordings. (Configure Filter)domains list (optional)
The list of domains to be excluded from recordings.entity_globs list (optional)
Exclude all entities matching a listed pattern from recordings (e.g., sensor.weather_*).entities list (optional)
The list of entity ids to be excluded from recordings.event_types list (optional)
The list of event types to be excluded from recordings.
# Example filter to include specified domains and exclude specified entities
recorder:
include:
domains:
- alarm_control_panel
- light
entity_globs:
- binary_sensor.*_occupancy
exclude:
entities:
- light.kitchen_light
from ebusd.
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:
exclude map (optional)
Configure which integrations should be excluded from recordings. (Configure Filter)
domains list (optional)
The list of domains to be excluded from recordings.
entity_globs list (optional)
Exclude all entities matching a listed pattern from recordings (e.g., sensor.weather_*).
entities list (optional)
The list of entity ids to be excluded from recordings.
event_types list (optional)
The list of event types to be excluded from recordings.# Example filter to include specified domains and exclude specified entities recorder: include: domains: - alarm_control_panel - light entity_globs: - binary_sensor.*_occupancy exclude: entities: - light.kitchen_light
I am aware of that, it's just something that you need to do explicitly.
Therefore exposing the property by default would be a bad idea.
from ebusd.
I am aware of that, it's just something that you need to do explicitly. Therefore exposing the property by default would be a bad idea.
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)
from ebusd.
That is exactly what #1134 does. It does not automatically expose the attributes, just makes them editable if they are exposed.
from ebusd.
I noticed even with the additions of #1134 in place, time entities with the datatype HTI are not automatically exposed to HA.
e.g.
r,,Time,time,,,,3500,,,HTI,,,current time
r,,z1QuickVetoEndTime,Quick Veto End Time Zone 1,,,,1E00,,,HTI,,,manual override end time for zone 1
Does it require a separate HA template definition?
e.g. _templates.csv:
time3,HTI,,,time
from ebusd.
Any explanation on why the PR is not merged ?
from ebusd.
Related Issues (20)
- Guidance on debug level messages HOT 2
- Entities in Home Assistant have double names HOT 2
- Separate log channel for device status
- reload discards loaded config files but doesn't reload HOT 1
- Some broadcast messages are not decoded HOT 2
- can't run 2 different ebusd.service HOT 1
- ebusctl listen immediately stops when any parameter is supplied. HOT 3
- Template variable warning: 'value_json' is undefined HOT 3
- Field name containing slash (e.g. "service/time") leads to [mqtt error] received unmatchable topic HOT 3
- raspi:8889/data: SyntaxError: JSON.parse: bad control character in string literal at line 5636 column 19 of the JSON data HOT 3
- Duplictae entry in csv not reported correctly HOT 3
- Move away from csv to xml or json or yaml HOT 1
- RecoVAIR questions about connection and write BypassPosition + PreferedTemp HOT 5
- RecoVAIR SetBoostMode activate "Stoßlüften" but it canceled after 30sec HOT 1
- [mqtt error] received unmatchable topic ebusd/22420/room/temperature/set HOT 1
- HomeAssistant & WRSOL 2.0 & EBUS to WiFi Adapter Module V6.1 HOT 2
- Deprecated option used in mqtt publish action call HOT 1
- Several different kinds of arbitration errors w/ ebus shield v5 HOT 2
- How do I add a value to Home Assistant?
- Unable to load from NVS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ebusd.