标签:#<标签:0x00007FC40EF237B0>#<标签:0x00007FC40EF23508>

我正在尝试使用具有不同状态和有效载荷主题的MQTT受控呼吸机。有效载荷是一个“ CMD”主题,必须使用“ Ventmode,Low,0”来称呼呼吸机为低。州主题在上述情况下报告“ 1”,中间速度为2,高为3,永久低点为11,永久中间的12个,永久性高13个,自动为0。

现在,我正在尝试创建一个开关,该开关基本上允许切换(例如)中间速度,保留该状态并改变速度。
到目前为止,我已经有了:

- 平台:MQTT名称:“通风15分钟” state_topic:“ ventilation_gateway/duco/ventilationMode” command_topic:“ ventilation_gateway/cmd payload_on:payload_on:“ ventmode,ventmode,ventmode,nidred,payload_off:payload_off:payload_off:”%如果value == 2%}在{%else%} off {%endif%} state_on:“ 2” state_off:“ 0” opportistic:false qos:0保留:true:true:true:

现在,如果我启用开关,风扇的速度将转到中间。但是开关立即再次切换。看来它无法正确读取状态主题。我尝试了其他变体,例如

value_template:> {%如果value ==“ 2”%}在{%else%} off {%endif%}

但是该开关不会保留正确的状态。我做错了什么,但不确定到底是怎么回事。

不幸的是,MQTT.FAN不允许使用“低点,低,中或高”状态,否则我将能够使用它。

你好,

我看到您的帖子已经有些年龄,但是我遇到了某种同样的问题,我解决了所有按钮。
请参阅下图:

图片

我的仪表板代码:

卡: - 卡: - 实体:null show_entity_picture:true show_name:true样式:姓名: -  font -weight:bold -font -font -size:20px state: - 操作员:template值:> [[return senseor.duco_ventilation_ventilation_status_status_status_status_status'] .State ==='3']]] entity_picture: /local/duco_high.png名称:ventilatie架子hoog-运算符 - 操作员:模板值:> [[[[return senseor.duco_ventilation_status''] state ====================='2']]] entity_picture: /local/duco_middle.png名称:ventilatie站立米德登 - 操作员:模板值:> [[[[return senseor.duco_ventilation_status']。: /local/Duco_low.png name: Ventilatie stand Laag - operator: template value: > [[[ return states['sensor.duco_ventilation_status'].state === '0' ]]] entity_picture: /local/Duco_auto.pngname: Ventilatie stand Automatisch - operator: template value: > [[[ return states['sensor.duco_ventilation_status'].state === '11' ]]] entity_picture: /local/Duco_permanent_low.png name: Ventilatie stand Vast Laag tap_action: 行动:无类型:'自定义:按钮卡'类型:水平堆栈 - 卡片: -  color_type:card show_icon:show_icon:false name:高样式:高级: -  font -size:25px -font -weight -font -weight:bold tap_action:bold tap_action:action:tocation:tocgle:toggle实体:switch.duco_ventilation_high类型:'custom:button -card' -  color_type:card show_icon:show_icon:false name:中间样式:卡片: -  font -size:25px -size:25px -font -weight -font -weight:bold tap_action:action:tocy:toce tocgle entity:toggle entity:toce.duco_ventilation_ventilation_middle_middle类型:'自定义:button -card' -  color_type:card show_icon:false名称:低样式:卡片: -  font -size:25px -font -weight:bold tap_action:take action:action:tocy:tocegle entity:switch.duco_ventilation_low type:'自定义:'自定义:'自定义:'custom:'custom:'按钮卡'类型:水平堆栈 - 卡:-Color_Type:card show_icon:false名称:自动样式:卡片: -  font -size:25px -font -weight:font -weight:bold tap_action:action:action:switchgle entity:switch.duco_ventilation_auto类型:'自定义:按钮卡' -  color_type:card show_icon:false name:永久低样式:卡片: - 字体大小:25px -font -weight:bold tap_action:操作:tocy:toggleY:switch.duco_ventilation_permanent_low类型:'自定义:按钮卡'类型:水平堆栈类型:垂直堆栈

顶部图像是一个没有功能的按钮,除了显示当前状态。
我正在使用自定义按钮卡将图标更改为图像。
我的图像位于文件夹中,如代码中所述。
如果有兴趣,我也可以发送它们。

1喜欢

是的,如果您愿意发送这些?:liticle_smile:

你好,

您还可以向我展示配置MQTT的网关的配置吗?以及您如何在HA中制作配置?我正在努力使我的Duco使用Arnemauer的软件运行。我可以从nodemcu控制它,但不能通过ha来控制它。https://github.com/arnemauer/ducobox-espeasy-plugin

这是我来自ESP8266网关的配置,只需检查您还在每个设备的“设备”选项卡上检查了“发送到控制器”。这意味着如果正确配置了数据,则将通过MQTT发送数据。

从网关或任何其他设备检查您的MQTT消息的好工具是MQTTFX
https://mqttfx.jensd.de/

谢谢乔斯,我错过了“发送到控制器”上的复选框!

嘿乔斯,

我现在有MQTT数据,但是我仍然无法在HA中使用它。您可以分享我在HA中如何配置传感器或MQTT相关数据吗?

提前致谢。

嗨,乔斯特,

在配置下方

#MQTT DUCO网关开关开关: - 平台:MQTT名称:DUCO通风高态_topic:“ ventilation_gateway/ventilation_gateway_gateway_rf/ventilationmode” command_topic:“ ventilation_gateway/cmd/cmd/cmd paryload_on”state_topic: "VENTILATION_GATEWAY/Ventilation_gateway_RF/Ventilationmode" command_topic: "VENTILATION_GATEWAY/cmd" payload_on: "VENTMODE,MIDDLE,0" - platform: mqtt name: Duco Ventilation Low state_topic: "VENTILATION_GATEWAY/Ventilation_gateway_RF/Ventilationmode" command_topic: "VENTILATION_GATEWAY/cmd"PAYLOAD_ON:“ VENTMODE,LOW,0”  - 平台:MQTT名称:DUCO通风auto state_topic:“ ventilation_gateway/ventilation_gateway_gateway_rf/ventilationmode/ventilationMode“ command_topic:” ventilation_gateway/gateway/cmd/cmd'payload_on:通风永久性高态_TOPIC:“ ventilation_gateway/ventilation_gateway_rf/ventilationMode” command_topic:“ ventilation_gateway/cmd” payload_on:“ ventmode,permanthienthiGH,0“  - 平台:MQTT名称:DUCO通风永久中间状态_TOPIC:“ ventilation_gateway/ventilation_gateway_gateway_rf/ventilationMode“ command_topic:“ ventilation_gateway/cmd/cmd/cmd payload_on:payload_on:payload_on:”:“ ventilation_gateway/ventilation_gateway_rf/ventilationMode” command_topic:“ ventilation_gateway/cmd”: mqtt name: Duco Gateway Status state_topic: "VENTILATION_GATEWAY/status/LWT" - platform: mqtt name: Duco CO2 PPM Meter state_topic: "VENTILATION_GATEWAY/External_CO2_Sensor/CO2_PPM" - platform: mqtt name: Duco Humidity Meter state_topic: "VENTILATION_GATEWAY/External_Humidity_Sensor/ferver_humity”  - 平台:MQTT名称:DUCO粉丝速度state_topic:“ ventilation_gateway/duco_fan_speed/fan_speed”

Lovelace UI下方

卡: - 卡: - 实体:null show_entity_picture:true show_name:true样式:姓名: -  font -weight:bold -font -font -size:26px state: - 操作员:template value:> [[return senseor.duco_ventilation_ventilation_status_status_status_status_status_status'] .State ==='3']]] entity_picture: /local/duco_high.png名称:ventilatie架子hoog-运算符 - 操作员:模板值:> [[[[return senseor.duco_ventilation_status''] state ====================='2']]] entity_picture: /local/duco_middle.png名称:ventilatie站立米德登 - 操作员:模板值:> [[[[return senseor.duco_ventilation_status']。: /local/Duco_low.png name: Ventilatie stand Laag - operator: template value: > [[[ return states['sensor.duco_ventilation_status'].state === '0' ]]] entity_picture: /local/Duco_auto.pngname: Ventilatie stand Automatisch - operator: template value: > [[[ return states['sensor.duco_ventilation_status'].state === '4' ]]] entity_picture: /local/Duco_away.png name: Ventilatie stand Afwezig - operator:模板值:>[[[ return states['sensor.duco_ventilation_status'].state === '13' ]]] entity_picture: /local/Duco_permanent_high.png name: Ventilatie stand Vast Hoog - operator: template value: > [[[ return states['sensor.duco_ventilation_status']。状态====='12']]] entity_picture: /local/duco_permanent_middle.png名称:Ventilatie stand ventilatie stand ventilatie stand Midden-操作员 -  template:template值:> [[[return senseor.duco_ventil.duco_ventilitial_status_status'''senseor.ducor.duco_ventilation_status']]]。'rgb(66,134,244)'color_type:card show_icon:false name:中间样式:卡片: -  font -size:25px -font -weight:bold tap_action:take eaction:tocy:tocegle entity:switch.duco_ventilation_permanent_permanent_middle类型:按钮卡' - 颜色:'rgb(66,134,244)'color_type:card show_icon:show_icon:false name:高样式:高级: -  font -size:25px -font -weight -font -weight:bold tap_action:bold tap_action:action:tocation:tocegle entity:totgle entity:switchgle entity:开关.duco_ventilation_permanent_high类型:'自定义:按钮卡'类型:水平堆栈 - 卡片: - 颜色:'rgb(66,134,244)'color_type:cart show_icon:show_icon:show_icon:false show_icon:false show_icon:false styles:false styles:low styles:card styles: -  card size:-font -size:-25px size:25px size:25px size:25px size:25px size:25px- font-weight: bold tap_action: action: toggle entity: switch.duco_ventilation_permanent_low type: 'custom:button-card' - color: 'rgb(66, 134, 244)' color_type: card show_icon: false name: AUTO styles: card: - 字体大小:25px-字体重量:粗体tap_action:操作:切换实体:switch.duco_ventilation_auto类型:'自定义:button-card'类型:水平堆栈类型:垂直堆栈

对于图像,如果需要,我需要将它们发送到您的电子邮件

我也有一张量规卡,可以看到客厅中有线开关测量的二氧化碳

类型:量规实体:传感器.duco_co2_ppm_meter最小值:0最大:1200严重性:绿色:0黄色:800红色:1000

要查看在3中的任何值,您需要在3处放入二氧化碳插件和设备ID中,这至少是我的有线开关

你好@jozziej你能把这些照片寄给我吗?而且您是否可以DIY-ED DUCO USB电缆(与DUCO软件一起使用),以便我可以阅读 /使用该软件并尝试寻找正确的外部传感器节点(现在只是尝试了 - 试用和错误方法,没有任何结果)

嗨,皮姆,

当然!
通过您的电子邮件给我发送PM。

您必须使用我使用的CP2102代替FT232。
DUCO软件寻找CP2102芯片,我只是更改了硬件名称。
如果您想访问服务,请使用密码“ stella”

嗨,乔齐耶,
可以共享图像吗?

当然!

给我发电子邮件给我一个下午