#MQTT explorer shows me things that look
1 messages · Page 1 of 1 (latest)
Please use a code share site to share code or logs, for example:
- https://dpaste.org/ (select YAML for the language, and consider picking a longer expiry)
- http://pastie.org/ (select YAML for the language)
- https://paste.debian.net/ (you guessed it, select YAML as the language)
Please don't use Pastebin, since it can randomly add spaces to the main view. Please also don't share text as images since it makes it harder for people to help you. Remember that others may have colour blindness, impaired vision, etc.
My bad! Here it is:
configuration.yaml
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
mqtt: !include mqtt.yaml
mqtt.yaml
- name: "Living Room Fan"
unique_id: "living-fan-mqtt"
qos: 1
state_topic: "stat/tasmota_6A6C6B/POWER"
command_topic: "cmnd/tasmota_6A6C6B/POWER"
availability_topic: "tele/tasmota_6A6C6B/LWT"
percentage_state_topic: "stat/tasmota_6A6C6B/speed"
percentage_value_template: '{{ ((value | replace("3,","")) | int + 1) * 25 }}'
percentage_command_topic: "cmnd/tasmota_6A6C6B/tuyasend4"
percentage_command_template: "3,{{ ((value | int - 1) / 25) | int }}"
preset_mode_state_topic: "stat/tasmota_6A6C6B/speed"
preset_mode_value_template: '{{ value | replace("3,0", "turtle") | replace("3,1", "low") | replace("3,2", "medium") | replace("3,3", "high") }}'
preset_mode_command_topic: "cmnd/tasmota_6A6C6B/tuyasend4"
preset_mode_command_template: '{{ value | replace("turtle", "3,0") | replace("low", "3,1") | replace("medium", "3,2") | replace("high", "3,3") }}'
preset_modes:
- "turtle"
- "low"
- "medium"
- "high"
payload_available: "Online"
payload_not_available: "Offline"
payload_on: "ON"
payload_off: "OFF"
And stat/tasmota_6A6C6B/POWER has either ON or OFF?
18:57:25.587 CMD: stat/tasmota_6A6C6B/POWER
18:57:25.593 MQT: stat/tasmota_6A6C6B/RESULT = {"POWER":"ON"}
18:57:25.597 MQT: stat/tasmota_6A6C6B/POWER = ON```
I don't know enough of MQTT explorer yet to send commands from it - so I'm using the device
That's fine, the point is to sanity check that the topics have the expected payloads
but once I sent it - MQTT explorer shows the RESULT and POWER
I can't see an obvious problem, but maybe you'll have more luck asking in #integrations-archived - use a code share site to share the YAML when you're over there