Closed roydestroy closed 3 days ago
How are you integrating with homeassistant?
I don't really understand the question but I guess via mqtt.
Sorry, I meant how is espMH integrated with homeassistant. I'm guessing you're using mqtt discovery and you haven't manually configured a light entity.
This warning seems to indicate that:
a) homeassistant itself is sending this command on the mqtt commands topic b) something other than homeassistant is sending commands on the mqtt commands topic
If I'm reading the error correctly it kind of sounds like an automation you have set up is the source? This looks related: https://community.home-assistant.io/t/deprecated-payload-template-option-used-in-mqtt-warning/765187
Well, I have this automation so that I can forward the commands from the physical controller to homeassistant. I don't know if this is the culprit and if it is related to it.
alias: MiLight Forwarder
description: ""
trigger:
- platform: mqtt
topic: milight/updates/0xC9A5/fut091/+
- platform: mqtt
topic: milight/updates/0x45F/cct/+
condition: []
action:
- metadata: {}
data:
topic: milight/commands/0xC9A6/fut091/1
payload_template: "{{ trigger.payload }}"
action: mqtt.publish
mode: single
Yep, that looks like it's the culprit. I'm not really familiar with the syntax but the warning suggests you can just change payload_template
to payload
.
gonna close, but let me know if something got missed :)
Describe the bug
Home assistant is producing the following message.
Deprecated payload_template option used in MQTT publish action call to topic milight/commands/0xC9A6/fut091/1 from payload template {"command":"brightness_up"}. Use the payload option instead. In automations templates are supported natively. Update the automation or script to use the payload option instead and restart Home Assistant to fix this issue.
Steps to reproduce
Expected behavior
Setup information
Firmware version
1.11.2 1.12.0-beta1
Output of http://milight-hub.local/about
Output of http://milight-hub.local/settings
Additional context