Giter Club home page Giter Club logo

Comments (7)

GrumpyMeow avatar GrumpyMeow commented on August 19, 2024 1

Correct. By default the auto-discovery will create readonly entities. You can override this by providing in the ebusd-addon-configuration for the field "Add variable(s) to the read MQTT integration settings." (optional fields) the value: filter-direction=r\|u\|^w. This should make some of your entities writable although this depends on the definition-file of your ebus-device. I placed a comment about on this GitHub-issue: john30/ebusd#1038

My ebus-device also has the same field. In mqtt-explorer i can see the auto-discovery definition:

{
  "unique_id": "ebusd_bai_StorageTempDesired_temp",
  "name": "ebusd bai StorageTempDesired temp",
  "device": {
    "identifiers": "ebusd_bai",
    "manufacturer": "ebusd.eu",
    "name": "ebusd bai",
    "via_device": "ebusd",
    "sw_version": "23.2",
    "suggested_area": "CV-Hok"
  },
  "value_template": "{{value_json[\"temp\"].value}}",
  "state_topic": "ebusd/bai/StorageTempDesired",
  "unit_of_measurement": "°C",
  "state_class": "measurement",
  "device_class": "temperature"
}

Looking at this i suspect that you should be using:

service: mqtt.publish
data:
  topic: ebusd/hwc/StorageTempDesired/set
  payload: { "temp": { "value" : 45 } }

Minor update.. I just saw this field was pushed in mqtt-explorer with payload:

{
     "temp": {"value": 47.00}
}

Hope it helps! Be careful with changing random parameters of your ebus-device. This as you might cause things to get out-of-spec and cause issues like over-pressure, legionella, etc.

from ha-addons.

LukasGrebe avatar LukasGrebe commented on August 19, 2024

hi, thanks for your ticket.
it appears the addon is running correctly as MQTT and Config setup are done entirely by the ebusd code. please see that repository.
it might be that writing is not enabled for these values? this is setup in the config.

from ha-addons.

citoki avatar citoki commented on August 19, 2024

@GrumpyMeow thanks for the information, highly recommended!! For the ebusd variable, filter-direction=r|u|w worked well for me (entered it via the plugin config UI). After that, MQTT got new entities, which starts now with number instead of sensor which makes sense of course, e.g.:

  • now avail. via: number.ebusd_ctlv_ebusd_ctlv_hc1minflowtempdesired_tempv
  • previously: sensor.ebusd_ctlv_hc1minflowtempdesired_tempv
image

This can be changed with mqtt.publish service, as you've showed above.
In addition after adding these number.* entities as a tile, most of it works nicely.

image

Only the hc1heatcurve and z1actualroomtempdesired entities doesn't change the properties and are switched to the previous value which is configured in the heat configuration. Any ideas?

r;w,,Hc1heatCurve,Heat Curve for Heat Cycle 1,,,,0F00,,,EXP,,,heating curve of HC1
r;w,,z1ActualRoomTempDesired,RoomSetpoint Zone 1,,,,1400,,,tempv,,,curren room setpoint 

from ha-addons.

vbueschken avatar vbueschken commented on August 19, 2024

@citoki could you post the YAML for your ebusd integration via the addon ?
Thanks

from ha-addons.

citoki avatar citoki commented on August 19, 2024

@vbueschken here you go: I'm currently using the config from PR370

scanconfig: true
loglevel_all: notice
mqtttopic: ebusd
mqttint: /etc/ebusd/mqtt-hassio.cfg
mqttjson: true
network_device: enh:192.168.1.53:9999
accesslevel: "\"*\""
configpath: /config/ebusd-custom-configs/rmalbrecht-ebusd-configuration/ebusd-2.1.x/de
mqttvar: filter-direction=r|u|w

from ha-addons.

vbueschken avatar vbueschken commented on August 19, 2024

Thanks @citoki
I'm a bit confused about the value for filter-direction

  • you are using: "r|u|w"
  • GrumpxMeow used. "r|u|^w"
  • on some Pages from John30 I found: "r|u|^w"

so I'm not sure, what is the right configuration

from ha-addons.

citoki avatar citoki commented on August 19, 2024

@vbueschken during my short tests, I couldn't get it working with the ^ sign. Maybe the version by @john30 is working as well, as I think the escape backslashes aren't needed within this add-on here. Maybe the filter-direction string is being parsed as regex, but couldn't see it actually in the code: https://github.com/john30/ebusd/blob/38a6b7bae9237d02c6c82b55aa377a17090dc421/src/ebusd/mqtthandler.cpp#L734

If it's being parsed as a regex string, then the ^ doesn't makes sense to me, as it refers to the very first char in an CSV config file (when multiline isn't active). Usually, the config files have r;w,, as a starting line, which then wouldn't be fetched:
image

Thus, to anser your question try Johns or my value ¯_(ツ)_/¯

from ha-addons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.