-
Notifications
You must be signed in to change notification settings - Fork 33
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
HA MQTT: received on topic itho/ithostatus. 'high' is not a valid preset mode #257
Comments
This part of the debug logging
seems to have no relation with
The first part seems correct (at least JSON syntax wise), why there is a warning I cannot see. "'high' is not a valid preset mode" is an error message related to HA templates. There must be some more info after this part in the logging I beieve. |
Check your config in HA on fan definition. You most likely have this somewhere in your YAML. You need to specify the presets. Your CVE looks a bit different but the culprit is missing preset_modes: - name: "Itho HRU 350 "
unique_id: "Itho_hru_Fan"
state_topic: "ithohru/lwt"
state_value_template: "{% if value == 'online' %}ON{% else %}OFF{% endif %}"
command_topic: "ithohru/cmd"
preset_mode_state_topic: "ithohru/ithostatus"
preset_mode_command_template: "{ rfremotecmd: '{{ value }}'}"
preset_mode_value_template: >
{% set am = value_json['Actual Mode'] | int %}
{% if am == 1 %}
low
{% elif am == 2 %}
medium
{% elif am == 3 %}
high
{% elif am == 13 %}
timer
{% elif am == 24 %}
auto
{% elif am == 25 %}
autonight
{% else %}
{{ am }}
{% endif %}
preset_mode_command_topic: "ithohru/cmd"
preset_modes:
- "low"
- "medium"
- "high"
- "auto"
- "autonight"
- "timer1"
- "timer2"
- "timer3"
- "timer" |
Hey good point, will look into this and report back, thanks! |
So this is my current config with 4 sensors defined, am not sure where to include the preset_modes, I could use an example :)
|
sensors do not use preset modes, must be somewhere else in the config |
Yes, that’s why I said you should check the yaml definition for your fan. Or just do a grep -R on “preset” in your ha config directory |
Will dive into this, closing this issue since it looks not to be itho related. thanks! |
@arjenhiemstra not sure if adding this comment is useful, but I see the same issue and I think it's related to Home Assistant MQTT Discovery. in MQTT I receive in the homeassistant/fan/nrg-itho-### topic: and: I think the case difference between the preset modes and the pr_mode_val_tpl may cause the issue? After updating the preset configuration from 'Low' to 'low', the issue resolved itself for me (until the next discovery, I think). |
Describe the bug
SInce a certain release of either ithowifi or HA (sorry, not sure which triggered it) I receive MQTT warnings about 'low' or 'high' modes not being a valid preset mode
To Reproduce
A running HA (I run 2024.6.3) with itho integration connected through MQTT (Mosquitto integration in HA)
Expected behaviour
No similar warning message in the HA logs
Screenshots
N/A
Device information
Debug logging
The text was updated successfully, but these errors were encountered: