visualapproach / WiFi-remote-for-Bestway-Lay-Z-SPA

Hack - ESP8266 as WiFi remote control for Bestway Lay-Z spa Helsinki
GNU General Public License v3.0
304 stars 74 forks source link

[BUG] Deprecated option used in mqtt publish action call #784

Open acolod opened 3 months ago

acolod commented 3 months ago

Describe the bug Updated HA and integrations, now receiving this warning:

Deprecated option used in mqtt publish action call This stops working in version 2025.2.0. Please address before upgrading. Deprecated payload_template option used in MQTT publish action call to topic layzspa/command from payload template {"CMD":15,"VALUE":27, "XTIME":0, "INTERVAL":0}. 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.

Warning - 8/3/2024

Expected behavior A clear and concise description of what you expected to happen.

Screenshots 2024-08-05 11_30_23-Settings – Home Assistant

Hardware (please complete the following information):

Software (please complete the following information):

visualapproach commented 3 months ago

I don't see anything about this in the docs. Thanks for reporting.

n3xus1 commented 3 months ago

I also received this warning today after updating to the latest core version of home assistant 2024.8.0

Skeletorjus commented 3 months ago

Just replace payload_template: with payload: in your automations/script to remove the warning.

PaleFlyer commented 3 months ago

Just replace payload_template: with payload: in your automations/script to remove the warning.

I tried that for when I push my local Tempest temperature into the ESP, and it had worse alarms.

jamesonuk commented 1 month ago

Thank you for saving my sanity.... I had put this down to what was being published to MQTT but obviously (and had I read the actual warning) it is what I am sending to MQTT. It is setting the ambient temperature.

The docs on page 24 just need to be amended from payload_template to payload but not a bug in the code.