MQTT AutoDiscovery location Stored + Manual defined MQTT Devices?

Hi all,

my excuses if my questions are too simple or HASS general, I am pretty new to the community and I still try to get a full blown picture of home assistant.

First of all, I am using the following setup:
1.) home assitant running in Docker on Proxmox in my basement
if you are interested: Proxmox VM - Hassio
2.) Running HiveMQ as MQTT Broker as AddOn in HASS, nothing more than a Mosquitto MQTT Broker with WebClient
Config in configuration.yaml

mqtt:
  discovery: true
  discovery_prefix: hasszwave #Used Prefix also in Zwave2Mqtt
  broker: a0d7b954-mqtt #(HiveMQTT)Broker AddOn
  birth_message:
    topic: 'hass/status'
    payload: 'online'
  will_message:
    topic: 'hass/status'
    payload: 'offline'

3.)Zwave2Mqtt in Docker on RPI3 with Rassbian located in a more central location at home + Aeotec Gen5 Zwave Stick
Zwave2MQTT
3.) Current Zwave devices: 2x Fibaro Roller Shutter 3

Zwave2MQTT does support the MQTT AutoDiscovery of home-assistant, so it configured as following:

Current Status

Auto Discovery on MQTT for my 2 Devices is working and the Entitys are shown in HASS.

Issue: They are shown as Dimmer instead as Cover
Roller Shutter can be integrated as Cover following the documentation
https://www.home-assistant.io/components/cover.mqtt/

And should be supported by Auto Discovery also:
https://www.home-assistant.io/docs/mqtt/discovery/

Maybe it is also useful to use templates, while I am not sure if this is only for automation purposes:
https://www.home-assistant.io/components/cover.template/

ZWAVE2MQTT - HASS Discovery config

So, how does Zwave2Mqtt display the config details for HASS?

For the dimmer this config:

{
  "type": "light",
  "object_id": "dimmer",
  "discovery_payload": {
    "schema": "template",
    "brightness_template": "{{ (value_json.value / 99 * 255) | round(0) }}",
    "state_topic": "zwave/Office/Small-Window/38/1/0",
    "state_template": "{{ \"off\" if value_json.value == 0 else \"on\" }}",
    "command_topic": "zwave/Office/Small-Window/38/1/0/set",
    "command_on_template": "{{ ((brightness / 255 * 99) | round(0)) if brightness is defined else 255 }}",
    "command_off_template": "0",
    "device": {
      "identifiers": [
        "zwave2mqtt_Office-Small-Window"
      ],
      "manufacturer": "FIBARO System",
      "model": "0x1000",
      "name": "FGRM223 Roller Shutter Controller 3",
      "sw_version": "5.01"
    },
    "name": "Office-Small-Window_dimmer",
    "unique_id": "zwave2mqtt_Office-Small-Window_10-38-1-0"
  },
  "discoveryTopic": "light/Office-Small-Window/dimmer/config",
  "values": [
    "38-1-0"
  ],
  "persistent": false,
  "id": "light_dimmer"
}

Visualation in Home Assistant

In HASS it looks like that:

From the functional perspective, this is pretty good working, so when I “dim” or “bright” the Roller Shutter is goind down and up.
Funtional the only GAP is that the “Stop Point” of the Roller is not displayed correctly, so the last “start point” is shown and not the “stop point”

Questions:

1.) As I did not find the file where the config has been saved in HASS, is it stored in any file what has been discovered, so I could review the current config?
2.) I would like to change the config in ZWAVE2MQTT to a “Cover” instead of “Dimmer” but therefor I would need some more infos about what is expected by HASS for that.
Is there any configuration file or the file from point 1.)?
3.) Is it possible to have a manual configuration applied for the Roller Shutter in configuration.yaml and Auto Discovery (MQTT) enabled at the same time?
So I could manually add the Roller Shutter as “Cover” and discover e.g. Dimmers or Plugs…
4.) Could you please guide me how I can change the visualization of in Home Assistant? So, is there a possibillity that I leave the Roller Shutter as Dimmer but the Visualization will only be changed to a slider with percentages and removing the “switch” as this is not needed for a Roller Shutter?

I know this is a long text now, but I hope you can help getting onboarded to the community :slight_smile:
Thanks in advance :slight_smile:

BR
autoX

1 Like