Skip to content
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

Impossible to turn off mqtt light after changing entity name in frontend #19352

Closed
bieniu opened this issue Dec 16, 2018 · 1 comment · Fixed by #19414
Closed

Impossible to turn off mqtt light after changing entity name in frontend #19352

bieniu opened this issue Dec 16, 2018 · 1 comment · Fixed by #19414
Assignees

Comments

@bieniu
Copy link
Member

bieniu commented Dec 16, 2018

Home Assistant release with the issue:
0.84.2

Last working Home Assistant release (if known):
Not sure, 0.83.x or 0.82.x

Operating environment (Hass.io/Docker/Windows/etc.):
Raspbian/Python 3.6/virtual_env

Component/platform:
mqtt/light

Description of problem:
Changing the name of the light entity in the frontend makes it impossible to turn off that light. After turn off the light, it stays in HA on.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

light:
  - platform: mqtt
    name: 'Sonoff Basic 1740'
    command_topic: 'homeassistant/light/sonoff-1740/cmnd/power'
    state_topic: 'homeassistant/light/sonoff-1740/stat/POWER'
    availability_topic: 'homeassistant/light/sonoff-1740/tele/LWT'
    unique_id: 'sonoff-1740'
    payload_available: 'Online'
    payload_not_available: 'Offline'
    payload_on: 'ON'
    payload_off: 'OFF'
    qos: 1
    retain: true

Additional information:
Reproduce the issue:

  1. Changing the name of the entity of mqtt light using the frontend
    image
  2. Turning off the light of the newly created entity in the frontend
  3. The light will stay on.
  4. After the HA restart, the light works correctly.
@emontnemery
Copy link
Contributor

The same issue exists for other components (tested with switch.mqtt), and also if the entity has been autodiscovered instead of added manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants