找回密码
 立即注册
搜索
查看: 4596|回复: 15

Esp8266电脑开机卡pcb 【已验证】

[复制链接]

27

主题

2129

回帖

9191

积分

论坛元老

积分
9191
金钱
7030
HASS币
30

论坛元老

发表于 2021-11-29 15:11:32 | 显示全部楼层 |阅读模式
本帖最后由 情非殇 于 2021-11-30 09:30 编辑

如题,电脑开机卡,没啥屌用,并不会比某宝节省成本,只是满足了自编译固件接入ha的需求,局域网协议比较稳定。
【开/关机/重启动作,开/关机状态检测】

Snipaste_2021-11-29_15-07-31.png


Gerber_WIFI远程电脑开机卡 by alex.zip (92 KB, 下载次数: 44)

评分

参与人数 3金钱 +28 收起 理由
sorrypqa + 8 大神666!
dscao + 10 厉害了word楼主!
zxyny1989 + 10 厉害了word楼主!

查看全部评分

回复

使用道具 举报

27

主题

2129

回帖

9191

积分

论坛元老

积分
9191
金钱
7030
HASS币
30

论坛元老

 楼主| 发表于 2022-7-1 11:40:24 | 显示全部楼层
五千万啊 发表于 2022-6-30 17:19
能分享下  esphome代码吗?
substitutions:
  ds18b20_1: GPIO12
  ds18b20_2: '0x5600000DB4C24E28'
  computer_power: GPIO4
  computer_restart: GPIO5
  status: GPIO13

# # Example configuration entry
# globals:
#   - id: elevator_relay
#     type: int
#     restore_value: yes
#     initial_value: '0'

# Example configuration entry
dallas:
  - pin: $ds18b20_1

# Individual sensors
sensor:
  - platform: dallas
    address: $ds18b20_2
    name: "Chassis_Temperature"
    unit_of_measurement: °C

switch:
  ## 电源
  - platform: gpio
    name: "Computer_Power"
    pin: $computer_power
    id: relay1
    internal: true
    on_turn_on:
      - delay: 0.2s
      - switch.turn_off: relay1
  ## 重启
  - platform: gpio
    name: "Computer_Restart"
    pin: $computer_restart
    id: relay2
    internal: true
    on_turn_on:
      - delay: 0.2s
      - switch.turn_off: relay2
  ## 电脑
  - platform: template
    name: "7700K"
    lambda: |-
      if (id(relay3).state) {
        return true;
      } else {
        return false;
      }
    turn_on_action:
      - if:
          condition:
            binary_sensor.is_off: relay3
          then:
            - switch.turn_on: relay1
      # - delay: 1s
      # - lambda: |-
      #     id(elevator_relay) += 1;
    turn_off_action:
      # - switch.turn_on: relay1
      - mqtt.publish:
          topic: computer/shell_command/shutdown
          payload: action
  ## 重启8266
  # switch:
  - platform: restart
    name: "esp_restart"
    internal: true

binary_sensor:
  ## 电脑开机状态
  - platform: gpio
    pin:
      number: $status
      mode: INPUT_PULLUP
      inverted: True
    name: "Status"
    id: relay3
    internal: true
回复

使用道具 举报

3

主题

151

回帖

1897

积分

金牌会员

积分
1897
金钱
1743
HASS币
10
发表于 2021-11-29 16:40:15 | 显示全部楼层
前排吃果果
回复

使用道具 举报

33

主题

2165

回帖

5883

积分

论坛元老

积分
5883
金钱
3685
HASS币
60
QQ
发表于 2021-11-29 16:58:28 | 显示全部楼层
膜拜大佬。
我不生产技术,我只是技术的搬运工。
回复

使用道具 举报

10

主题

674

回帖

5909

积分

论坛元老

积分
5909
金钱
5220
HASS币
50
发表于 2021-11-29 17:20:13 | 显示全部楼层
没有空余的pcie位了。。
回复

使用道具 举报

ztrx 

17

主题

166

回帖

1745

积分

金牌会员

积分
1745
金钱
1562
HASS币
10
发表于 2021-11-29 18:54:31 | 显示全部楼层
网络唤醒不行吗
回复

使用道具 举报

6

主题

173

回帖

4986

积分

论坛元老

积分
4986
金钱
4807
HASS币
0
发表于 2021-11-30 08:52:25 | 显示全部楼层
谢谢,收到
回复

使用道具 举报

8

主题

687

回帖

4763

积分

论坛元老

积分
4763
金钱
4063
HASS币
0
QQ
发表于 2021-11-30 09:26:31 | 显示全部楼层
大概看了下,楼主的DS2812B 好像是画错了 1脚和3脚貌似接反了
回复

使用道具 举报

8

主题

687

回帖

4763

积分

论坛元老

积分
4763
金钱
4063
HASS币
0
QQ
发表于 2021-11-30 09:27:38 | 显示全部楼层
另外对楼主一面铺铜VCC 一面铺铜GND表示不解
回复

使用道具 举报

1

主题

79

回帖

979

积分

高级会员

积分
979
金钱
899
HASS币
0
发表于 2022-6-30 17:19:25 | 显示全部楼层
能分享下  esphome代码吗?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )

GMT+8, 2025-7-6 06:49 , Processed in 0.231894 second(s), 16 queries , MemCached On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表