余歌唱晚
发表于 2020-4-22 23:26:02
ghostist 发表于 2020-4-13 09:35
最新版本作者修复了这个问题欢迎加群测试~
感谢大佬告知
余歌唱晚
发表于 2020-4-22 23:33:07
a2633063 发表于 2020-4-13 09:30
M1的版本才更新优化此问题app上点版本号更新
完美了,大佬辛苦:victory:
caoxd01
发表于 2020-4-24 16:47:02
前来支持
dake123
发表于 2020-4-25 20:59:24
oosee 发表于 2020-4-13 23:41
zM1已更新0.8,WIFI亮度一致了,接入homeassistan后用light方式自动化很容易实现定时亮屏息屏。再次感谢。
...
感谢分享,能提供一下详细的代码吗?
oosee
发表于 2020-4-26 00:15:53
dake123 发表于 2020-4-25 20:59
感谢分享,能提供一下详细的代码吗?
啥详细代码?配置文件A大不是提供的有吗,自动化我发那个把MAC地址改成你的就行了。
配置文件(比如packages目录zm1.yaml):
sensor:
- platform: mqtt
name: 'zm1_你的MAC地址_temperature'
# friendly_name: 温度
state_topic: 'device/zm1/你的MAC地址/sensor'
unit_of_measurement: '°C'
icon: 'mdi:thermometer'
value_template: '{{ value_json.temperature }}'
- platform: mqtt
name: 'zm1_你的MAC地址_humidity'
# friendly_name: 湿度
state_topic: 'device/zm1/你的MAC地址/sensor'
unit_of_measurement: '%'
icon: mdi:water-percent
value_template: '{{ value_json.humidity }}'
- platform: mqtt
name: 'zm1_你的MAC地址_pm25'
# friendly_name: PM25
state_topic: 'device/zm1/你的MAC地址/sensor'
unit_of_measurement: 'μg/m³'
icon: mdi:blur
value_template: '{{ value_json.PM25 }}'
- platform: mqtt
name: 'zm1_你的MAC地址_hcho'
# friendly_name: 甲醛
state_topic: 'device/zm1/你的MAC地址/sensor'
unit_of_measurement: 'mg/m³'
icon: mdi:chemical-weapon
value_template: '{{ value_json.formaldehyde }}'
light:
- platform: mqtt
name: zm1_你的MAC地址_brightness
schema: template
command_topic: "device/zm1/你的MAC地址/set"
state_topic: "device/zm1/你的MAC地址/state"
command_on_template: >
{"mac": "你的MAC地址"
{%- if brightness is defined -%}
, "brightness": {{ ((brightness-1) / 64 )|int +1 }}
{%- else -%}
, "brightness": 4
{%- endif -%}
}
command_off_template: '{"mac": "你的MAC地址", "brightness": 0}'
state_template: >
{%- if value_json.brightness == 0 -%}
off
{%- else -%}
on
{%- endif -%}
brightness_template: >
{%- if value_json.brightness is defined -%}
{{ ( value_json.brightness *64 )|int }}
{%- endif -%}
homeassistant:
customize:
light.zm1_你的MAC地址_brightness:
friendly_name: zM1亮度
sensor.zm1_你的MAC地址_temperature:
friendly_name: zM1温度
sensor.zm1_你的MAC地址_humidity:
friendly_name: zM1湿度
sensor.zm1_你的MAC地址_pm25:
friendly_name: zM1 PM2.5
sensor.zm1_你的MAC地址_hcho:
friendly_name: zM1甲醛
根目录automations文件:
# ----------------------------------
- id: '1999666935551'
alias: 自动开
description: ''
trigger:
- at: '08:00:00'#早上8点开
platform: time
condition: []
action:
- entity_id: light.zm1_你的MAC地址_brightness
service: light.turn_on
- id: '1999666681661'
alias: 自动关
description: ''
trigger:
- at: '00:00:00'#晚上12点关
platform: time
condition: []
action:
- entity_id: light.zm1_你的MAC地址_brightness
service: light.turn_off
# ----------------------------------
chraly001
发表于 2020-5-8 15:25:59
家里两台M1总有一台(同一台)隔两天时间自动校准就不对。需要手动校准一次
Higashi39
发表于 2020-5-15 19:26:44
大佬 tc1 a2 有计划接入吗
wangdh
发表于 2020-5-16 09:02:55
oosee 发表于 2020-4-26 00:15
啥详细代码?配置文件A大不是提供的有吗,自动化我发那个把MAC地址改成你的就行了。
配置文件(比如pack ...
# ----------------------------------
- id: '1999666935551'
alias: 自动开
description: ''
trigger:
- at: '08:00:00'#早上8点开
platform: time
condition: []
action:
- entity_id: light.zm1_你的MAC地址_brightness
service: light.turn_on
- id: '1999666681661'
alias: 自动关
description: ''
trigger:
- at: '00:00:00'#晚上12点关
platform: time
condition: []
action:
- entity_id: light.zm1_你的MAC地址_brightness
service: light.turn_off
# ----------------------------------
请问大佬,我是多个M1,自动化这里的ID需要修改吗?如果需要怎么修改?我配置好后,只改了MAC,但是只有一台M1有效。
wangdh
发表于 2020-5-16 09:07:24
Higashi39 发表于 2020-5-15 19:26
大佬 tc1 a2 有计划接入吗
A2通过硬改也可以,不过需要一定的电焊基础。
oosee
发表于 2020-5-16 13:11:55
wangdh 发表于 2020-5-16 09:02
# ----------------------------------
- id: '1999666935551'
alias: 自动开
这里的- id: '1999666935551'是唯一的。随便更改几个数字就行。
页:
1
2
3
4
5
6
7
[8]
9
10
11
12
13
14