Comments (22)
OK, yes, HA confirm messages did not allow for prefixapp
or prefixhost
at all.
I have changed to fix this in latest beta.
Also fixed the order of appname and hostname when prefixapp
and prefixhost
are set.
Also changes HA status messages to be a state
message rather than top level MAC, so they follow the same rules for prefixapp
and prefixhost
.
Please test latest beta. Thanks.
from esp32-faikin.
It is called topiccommand
now, but I have not changed how that works for this, just what is sent to HA.
So let me know if that does not sort it, and I'll look more in to that. Basically all the HA confirm assumed command/
hostname/...
which is wrong if different topiccommand
or prefixapp
or prefixhost
set. Sloppy, sorry.
from esp32-faikin.
Latest faikin code allows / in command and setting names.
from esp32-faikin.
I've already updated to the latest.
I was trying the beta, which had the problem above, so I changed to non beta and updated this morning. Unfortunately it's still the same.
from esp32-faikin.
I'll look in the morning. The latest code really should cover all of this quite well. But I'll take a look.
from esp32-faikin.
Thanks! I appreciate it.
Just in case I'm wrong on this...
I was expecting the HA discovery payload to change from:
"~": "command/Villacana AC Back Bedroom",
To:
"~": "site3/command/Villacana AC Back Bedroom",
As it didn't, I assumed that's why AC commands aren't working. Similarly with the App/Host, it renders the AC control inoperable.
from esp32-faikin.
Yeh, it could be an error in my HA config stuff.
from esp32-faikin.
Thanks @revk, does this also fix the prefixcommand
etc ?
I'll be able to test this afternoon.
from esp32-faikin.
Commands are now working in HA. 👍
However, I don't think the messages are formatted quite correct though:
![](https://private-user-images.githubusercontent.com/162114112/335992789-39c4d974-fa4a-407f-a1e4-d71a1c6ea798.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4MTA5NzYsIm5iZiI6MTcyMTgxMDY3NiwicGF0aCI6Ii8xNjIxMTQxMTIvMzM1OTkyNzg5LTM5YzRkOTc0LWZhNGEtNDA3Zi1hMWU0LWQ3MWExYzZlYTc5OC5wbmc_WC1BbXotQWxnb3JpdGhtP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M2ZTRlYWZjZDhiNTZmMjJkMjgwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.QthZZgcUvgFmX92o9QKGzAbBx_iZD5P1UlRedCdSaZc)
Faikin > Faikin > {HOST}
State > Faikin > {HOST}
Note: It's difficult to change `prefixapp` `prefixhost` in the UI, because when toggling the switches the page doesn't always go stale, so the save doesn't work. I have to change something else as well, then change back.
Not a big issue, I'm just mentioning it here.
from esp32-faikin.
Also,
![](https://private-user-images.githubusercontent.com/162114112/335998553-f2f2e8c2-e508-43a9-a5ad-72cded983ca1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4MTA5NzYsIm5iZiI6MTcyMTgxMDY3NiwicGF0aCI6Ii8xNjIxMTQxMTIvMzM1OTk4NTUzLWYyZjJlOGMyLWU1MDgtNDNhOS1hNWFkLTcyY2RlZDk4M2NhMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyNFQwODQ0MzZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yMjY4MmZiYzQzNDllMjdiZWYwYjlhNGNjZTNiMjMzMzVmYTAyNDI5NmI5OGQ1ODY3YTUzY2FiYjA5OTMyMWQ5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.R1j03XhDQFtxaSzPBQLmq3ciEosPtUiiETTtHmGBNLY)
Let me double check I've updated to the latest Beta...
Yes: Faikin-S3-MINI-N4-R2: b1a9db5 2024-06-03T08:35:42
from esp32-faikin.
The buttons not allowing a save is weird. But yeh, check latest beta.
from esp32-faikin.
Yes, latest beta: Faikin-S3-MINI-N4-R2: b1a9db5 2024-06-03T08:35:42
from esp32-faikin.
I'll do some tests here and confirm.
from esp32-faikin.
OK complicated.
We have a periodic report that is sent as Faikin/
as the prefix. When using without prefixapp
that would be Faikin/hostname
, but with prefixapp
it becomes Faikin/appname/hostname
.
I am making a special case for not duplicating the appname if appname is used as the main topic, which should address that.
Beta in a moment.
from esp32-faikin.
Thanks...
Does that fix Command > Faikin > {HOST}
as well:
![](https://private-user-images.githubusercontent.com/162114112/335998553-f2f2e8c2-e508-43a9-a5ad-72cded983ca1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4MTA5NzYsIm5iZiI6MTcyMTgxMDY3NiwicGF0aCI6Ii8xNjIxMTQxMTIvMzM1OTk4NTUzLWYyZjJlOGMyLWU1MDgtNDNhOS1hNWFkLTcyY2RlZDk4M2NhMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyNFQwODQ0MzZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yMjY4MmZiYzQzNDllMjdiZWYwYjlhNGNjZTNiMjMzMzVmYTAyNDI5NmI5OGQ1ODY3YTUzY2FiYjA5OTMyMWQ5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.R1j03XhDQFtxaSzPBQLmq3ciEosPtUiiETTtHmGBNLY)
from esp32-faikin.
OK command/Faikin/hostname
would be if prefixapp
set.
Where do you see that, as the Faikin does not send commands, it receives them.
(Sorry not familiar with whatever your are using to log things)
from esp32-faikin.
I'm using MQTT Explorer, and the command is coming from Home Assistant when I change the climate state.
The climate entity is publishing to command/Faikin/hostname
so HA can't sent the command over a bridge when the remote bridge has topic Faikin/# in 0
. I think it should publish to Faikin/hostname/Command
, that way all statuses and commands can be segmented with Faikin/#
I believe this is what happens with Zigbee2MQTT base topic
and ESPHome topic_prefix
.
Note: topic Faikin/# in 0
is a hack. I really need to set the base topic to my site name.
from esp32-faikin.
OK, the prefixapp
and prefixhost
settings allow a number of combinations which can be adjusted to suite your needs.
The latest beta should consistently report a config to HA matching what the Faikin is set to do.
![Screenshot 2024-06-03 at 11 25 06](https://private-user-images.githubusercontent.com/996983/336034881-b95b6a27-1345-4b37-861a-ac1cce997a8c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4MTA5NzYsIm5iZiI6MTcyMTgxMDY3NiwicGF0aCI6Ii85OTY5ODMvMzM2MDM0ODgxLWI5NWI2YTI3LTEzNDUtNGIzNy04NjFhLWFjMWNjZTk5N2E4Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyNFQwODQ0MzZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hYWY0MWM1MWRhMGU4MWNjMTJjYjllYmU4MWE5NjYyY2U0MGY3NjViOWM3MDk3NjZmYTNmZjRkNTJiMzkyOTY2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.1iFhDlw2S7a5Iu5v4u6EJZfV3KFyE0bqjMHXCyaA08c)
from esp32-faikin.
Bingo! The messages are now routed correctly for me. Thanks
And if I set topiccommand
etc.. with a prefix and deselect prefixapp
and prefixhost
that works as well, and means I can use my site name z2m_villacana
to segment: 👍
Thanks for your help
from esp32-faikin.
Sorry to raise another problem.
With the latest beta: Faikin-S3-MINI-N4-R2: b1a9db5 2024-06-03T08:35:42
I've lost the current temperature for both Faikin units:
![](https://private-user-images.githubusercontent.com/162114112/336349638-5ff2de02-369d-4bfa-92f1-1a53d8bb3ce3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4MTA5NzYsIm5iZiI6MTcyMTgxMDY3NiwicGF0aCI6Ii8xNjIxMTQxMTIvMzM2MzQ5NjM4LTVmZjJkZTAyLTM2OWQtNGJmYS05MmYxLTFhNTNkOGJiM2NlMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyNFQwODQ0MzZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hYjYzNzA0Njg1NmQwODNhYjFjNTJkN2ZlNTVlOWYxZWQyZTgzODI4NGViY2RjN2I0ZGMzNmM5NDJmMDYyMDYxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.n3KiJ6_1YuFulFgbprvALHFXMquBYkEvQD2Yk5fEtvA)
![](https://private-user-images.githubusercontent.com/162114112/336350526-462d092c-2042-4dc9-b6ff-6b955d5d5fe3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE4MTA5NzYsIm5iZiI6MTcyMTgxMDY3NiwicGF0aCI6Ii8xNjIxMTQxMTIvMzM2MzUwNTI2LTQ2MmQwOTJjLTIwNDItNGRjOS1iNmZmLTZiOTU1ZDVkNWZlMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyNFQwODQ0MzZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01NTcyNGFhYjg2OGI1ZWIzMzgyMmJhMjk4NDA2MDRiY2ZkZDU1MTVkMzAzOTFjOTI0ODhiYzdkOTJmYjM3NzhiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.eSzQTsaVHG822tmSQ3RekXrNul1o5ZOnszaheWMOAF0)
It looks like the MQTT HA Discovery payload is wrong:
"curr_temp_t": "34B7DA588E44",
Should be:
"curr_temp_t": "Faikin/Villacana AC Back Bedroom/state/ha",
"Faikin/Villacana AC Back Bedroom/state/ha"
{
"unique_id": "34B7DA588E44",
"dev": {
"ids": [
"34B7DA588E44"
],
"name": "Villacana AC Back Bedroom",
"mdl": "FTXM20R",
"sw": "b1a9db5",
"mf": "RevK",
"cu": "http://Villacana AC Back Bedroom.local/"
},
"icon": "mdi:thermostat",
"~": "Faikin/Villacana AC Back Bedroom/command",
"min_temp": 16,
"max_temp": 32,
"temp_unit": "C",
"temp_step": 0.5,
"temp_cmd_t": "~/temp",
"temp_stat_t": "Faikin/Villacana AC Back Bedroom/state/ha",
"temp_stat_tpl": "{{value_json.target}}",
`"curr_temp_t": "34B7DA588E44"`,
"curr_temp_tpl": "{{value_json.temp}}",
"mode_cmd_t": "~/mode",
"mode_stat_t": "Faikin/Villacana AC Back Bedroom/state/ha",
"mode_stat_tpl": "{{value_json.mode}}",
"fan_mode_cmd_t": "~/fan",
"fan_mode_stat_t": "Faikin/Villacana AC Back Bedroom/state/ha",
"fan_mode_stat_tpl": "{{value_json.fan}}",
"fan_modes": [
"auto",
"low",
"lowMedium",
"medium",
"mediumHigh",
"high",
"night"
],
"swing_mode_cmd_t": "~/swing",
"swing_mode_stat_t": "Faikin/Villacana AC Back Bedroom/state/ha",
"swing_mode_stat_tpl": "{{value_json.swing}}",
"swing_modes": [
"off",
"H",
"V",
"H+V",
"C"
],
"pr_mode_cmd_t": "~/preset",
"pr_mode_stat_t": "Faikin/Villacana AC Back Bedroom/state/ha",
"pr_mode_val_tpl": "{{value_json.preset}}",
"pr_modes": [
"eco",
"boost",
"home"
]
}
from esp32-faikin.
Oops, let me fix that now. Next beta, in a few minutes.
from esp32-faikin.
Thanks! All sorted
Faikin-S3-MINI-N4-R2: 57fcc76 2024-06-04T09:06:53
from esp32-faikin.
Related Issues (20)
- [BUG] - HA Climate entity loses target set temp HOT 12
- [BUG] - Home Assistant native Daikin integration - Fan Mode and Preset errors HOT 91
- [BUG] in HA, the aircon autostarts in heat mode HOT 115
- How do I reset the Faikin? HOT 3
- [FEATURE] Save Environment-Temperature before restart HOT 2
- Only the subscribed state/hostname-topic gets a message from MQTT-Broker HOT 23
- Unable to Flash Firmware on Faikin ESP32-S3-MINI-1 HOT 4
- [FEATURE] Expose availability topic to HomeAssistant discovery HOT 11
- hardware problem? HOT 1
- [BUG] Faikin device not coming up. Bootloop HOT 5
- [BUG] - {{value_json.target}} in my log continuously HOT 6
- [BUG] - 'dict object' has no attribute HOT 9
- [BUG] Device not available in home assistant after Beta 2024-06 HOT 5
- [BUG] fanrpm not shown in HomeAssistant HOT 12
- Faikin & original wifi adapter simultaneously HOT 7
- [BUG] build for esp32 (no -s) fails HOT 1
- [BUG] Faikin can't connect to Wifi HOT 5
- [FEATURE] Make temperature step configurable HOT 5
- [BUG] MQTT Topic for "setting" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32-faikin.