Git Product home page Git Product logo

Comments (22)

revk avatar revk commented on August 17, 2024 1

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.

revk avatar revk commented on August 17, 2024 1

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.

revk avatar revk commented on August 17, 2024

Latest faikin code allows / in command and setting names.

from esp32-faikin.

Nick-Sills avatar Nick-Sills commented on August 17, 2024

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.

revk avatar revk commented on August 17, 2024

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.

Nick-Sills avatar Nick-Sills commented on August 17, 2024

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.

revk avatar revk commented on August 17, 2024

Yeh, it could be an error in my HA config stuff.

from esp32-faikin.

Nick-Sills avatar Nick-Sills commented on August 17, 2024

Thanks @revk, does this also fix the prefixcommand etc ?

I'll be able to test this afternoon.

from esp32-faikin.

Nick-Sills avatar Nick-Sills commented on August 17, 2024

Commands are now working in HA. 👍

However, I don't think the messages are formatted quite correct though:



image

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.

Nick-Sills avatar Nick-Sills commented on August 17, 2024

Also,

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.

revk avatar revk commented on August 17, 2024

The buttons not allowing a save is weird. But yeh, check latest beta.

from esp32-faikin.

Nick-Sills avatar Nick-Sills commented on August 17, 2024

Yes, latest beta: Faikin-S3-MINI-N4-R2: b1a9db5 2024-06-03T08:35:42

from esp32-faikin.

revk avatar revk commented on August 17, 2024

I'll do some tests here and confirm.

from esp32-faikin.

revk avatar revk commented on August 17, 2024

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.

Nick-Sills avatar Nick-Sills commented on August 17, 2024

Thanks...

Does that fix Command > Faikin > {HOST} as well:

from esp32-faikin.

revk avatar revk commented on August 17, 2024

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.

Nick-Sills avatar Nick-Sills commented on August 17, 2024

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.

revk avatar revk commented on August 17, 2024

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

from esp32-faikin.

Nick-Sills avatar Nick-Sills commented on August 17, 2024

Bingo! The messages are now routed correctly for me. Thanks

image




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: 👍

image

Thanks for your help

from esp32-faikin.

Nick-Sills avatar Nick-Sills commented on August 17, 2024

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:




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.

revk avatar revk commented on August 17, 2024

Oops, let me fix that now. Next beta, in a few minutes.

from esp32-faikin.

Nick-Sills avatar Nick-Sills commented on August 17, 2024

Thanks! All sorted

Faikin-S3-MINI-N4-R2: 57fcc76 2024-06-04T09:06:53

from esp32-faikin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.