MQTT auto detect: Selector switch not discovered

For devices supporting the Auto Discovery feature. Like ZWaveJS2MQTT, Zigbee2MQTT.

Moderator: leecollings

Post Reply
Ries
Posts: 40
Joined: Tuesday 01 December 2015 8:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Netherlands
Contact:

MQTT auto detect: Selector switch not discovered

Post by Ries »

I am using today's domoticz beta on RPI 3B+, to check if this issue resolved.
mosquitto : latest version 1.x
My ESPhome devices has switches (succesfully auto discovered) and a selector switch. MQTT explorer shows the selector switch as follows:

Code: Select all

{"ops":["one","two","three"],"name":"Template select","stat_t":"esp82board/select/template_select/state","cmd_t":"esp82board/select/template_select/command","avty_t":"esp82board/status","uniq_id":"ESPselecttemplate_select","dev":{"ids":"500291ecb7b2","name":"esp82board","sw":"esphome v2022.2.5 Mar 10 2022, 14:22:59","mdl":"nodemcuv2","mf":"espressif"}}
Path: homeassistant/select/esp82board/template_select/config

I tried disabling/enabling de mqtt AD hardware: no result.

ESPhome Yaml:

Code: Select all

select:
  - platform: template
    name: "Template select"
    optimistic: true
    options:
      - one
      - two
      - three
    initial_option: two
Any help would be great

edit: domoticz log says: "component type 'select' received without options!" followed by the mqtt config I quote. Obviously options are received, but arent processed.
Version 3.9639
Platform: Jessie lite
Hardware: Raspberry pi 3B; RFXCOM; Weather Underground; Dummy; OpenZwave USB; Fritzbox Callmonitor via LAN interface; System Alive Checker (Ping); Philips Hue Bridge; Atag One Thermostat
Ries
Posts: 40
Joined: Tuesday 01 December 2015 8:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Netherlands
Contact:

Re: MQTT auto detect: Selector switch not discovered

Post by Ries »

Home assistant recognizes the select switch without issues
Version 3.9639
Platform: Jessie lite
Hardware: Raspberry pi 3B; RFXCOM; Weather Underground; Dummy; OpenZwave USB; Fritzbox Callmonitor via LAN interface; System Alive Checker (Ping); Philips Hue Bridge; Atag One Thermostat
User avatar
gizmocuz
Posts: 2548
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: MQTT auto detect: Selector switch not discovered

Post by gizmocuz »

The reason was that the short-name 'ops' was not yet supported... only 'options'
Could you please try beta 14304 to see if it is working now ?
Quality outlives Quantity!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest