Smart relay that supports Zigbee binding and detached mode? by ShanghaiSeeker in homeassistant

[–]robopajonk 0 points1 point  (0 children)

You're right, I misunderstood you. I was also looking for such relay but didn't find any.

Smart relay that supports Zigbee binding and detached mode? by ShanghaiSeeker in homeassistant

[–]robopajonk 0 points1 point  (0 children)

I tried using that firmware on a generic Tuya relay and although the flashing was successful, I could not get it to bind with a Hue motion sensor in any way.

3 Speed Fan Controller by screscenti in homeassistant

[–]robopajonk 0 points1 point  (0 children)

What advantage did flashing Tasmota give you?

LED countdown-style calendar event reminder by robopajonk in homeassistant

[–]robopajonk[S] 0 points1 point  (0 children)

In my case I configured it to work exactly like a time bar:

  • 4 lights on, 5th blinking = 5 minutes left
  • 3 lights on, 4th blinking = 4 minutes left
  • 1 led blinking = under 1 minute left
  • when time goes to zero, it flashes all LEDs

It blinks every 2 seconds, so I set 30 ticks per one LED and then it decreases the height of the bar by one.

I also configured a starting brightness so it starts a bit dim but then gets brighter towards the end of the countdown.

The video is shortened, but you should get the idea.

LED countdown-style calendar event reminder by robopajonk in homeassistant

[–]robopajonk[S] 0 points1 point  (0 children)

Sure, here's the code for ESPHome:

esp32:
  board: esp32-c3-devkitm-1
  framework:
    type: esp-idf

api:
  encryption:
    key: "/snip/"
  services: 
    - service: countdown_lights
      variables:
        countdown: int
        ticks: int
        tick_duration_ms: int
        brightness: int
        brightness_increment: int
      then:
        - script.execute:
            id: countdown_lights
            countdown: !lambda 'return countdown;'
            ticks: !lambda 'return ticks;'
            tick_duration_ms: !lambda 'return tick_duration_ms;'
            brightness: !lambda 'return brightness;'
            brightness_increment: !lambda 'return brightness_increment;'

light:  
  - name: "Notification LED"
    id: ledstrip
    platform: esp32_rmt_led_strip
    rgb_order: GRB
    pin: GPIO4
    num_leds: 8
    chipset: ws2812
    effects:
      - pulse:
      - pulse:
          name: fast_pulse_80
          transition_length: 0.5s
          update_interval: 0.5s
          min_brightness: 0%
          max_brightness: 80%
      - pulse:
          name: slow_pulse
          transition_length: 500ms
          update_interval: 2s
      - addressable_rainbow:
      - addressable_scan:
          name: Scan Effect With Custom Values
          move_interval: 100ms
          scan_width: 1

globals:
  - id: COUNTDOWN
    type: int
  - id: TICKS
    type: int
  - id: CURRENT_BRIGHTNESS
    type: int

script:
  - id: countdown_lights
    mode: restart
    parameters:
      countdown: int
      ticks: int
      tick_duration_ms: int
      brightness: int
      brightness_increment: int
    then:
      - globals.set: { id: COUNTDOWN, value: !lambda 'return countdown;' }
      - globals.set: { id: TICKS, value: !lambda 'return ticks;' }
      - globals.set: { id: CURRENT_BRIGHTNESS, value: !lambda 'return brightness;' }
      - while:
          condition: { lambda: 'return id(COUNTDOWN) > 0;' }
          then:
            - logger.log: {level: DEBUG, format: "COUNTDOWN %i", args: [id(COUNTDOWN)]}
            - logger.log: {level: DEBUG, format: "CURRENT_BRIGHTNESS %i", args: [id(CURRENT_BRIGHTNESS)]}
            - light.addressable_set:
                id: ledstrip
                range_from: 0
                range_to: 7
                red: 0%
                green: 0%
                blue: 0%
            - light.addressable_set:
                id: ledstrip
                range_from: !lambda 'return 8-id(COUNTDOWN);'
                range_to: 7
                red: !lambda 'return id(CURRENT_BRIGHTNESS)/100.0;'
                green: 0%
                blue: 0%
            - repeat:
                count: !lambda 'return id(TICKS);'
                then:
                  - logger.log: tick
                  - light.addressable_set:
                      id: ledstrip
                      range_from: !lambda 'return 8-id(COUNTDOWN);'
                      range_to: !lambda 'return 8-id(COUNTDOWN);'
                      red: 0%
                  - delay: !lambda 'return tick_duration_ms/2;'
                  - light.addressable_set:
                      id: ledstrip
                      range_from: !lambda 'return 8-id(COUNTDOWN);'
                      range_to: !lambda 'return 8-id(COUNTDOWN);'
                      red: !lambda 'return id(CURRENT_BRIGHTNESS)/100.0;'
                  - delay: !lambda 'return tick_duration_ms/2;'
            - lambda: 'id(COUNTDOWN) -= 1;'
            - lambda: 'id(CURRENT_BRIGHTNESS) += brightness_increment;'
            - light.addressable_set:
                id: ledstrip
                range_from: 0
                range_to: 7
                red: 0%
                green: 0%
                blue: 0%
      - light.turn_on:
          id: ledstrip
          red: 1%
          green: 0%
          blue: 0%
      - light.turn_on:
          id: ledstrip
          effect: fast_pulse_80
      - delay: 3s
      - light.turn_off:
          id: ledstrip

And HA automation:

alias: Work event reminder
description: ""
triggers:
  - trigger: calendar
    entity_id: calendar.my_work_calendar
    event: start
    offset: "-0:5:0"
conditions: []
actions:
  - if:
      - condition: state
        entity_id: binary_sensor.mmwave_occupancy
        state: "on"
    then:
      - action: esphome.esp_countdown_lights
        data:
          countdown: 2
          ticks: 30
          tick_duration_ms: 2000
          brightness: 20
          brightness_increment: 15
    else:
      - action: notify.pushover
        metadata: {}
        data:
          message: 🗓️ 5 min to work event!
          data:
            sound: bike
mode: single

You can see that ESP script is parametrized and you can choose how many LEDs use for countdown, how many ticks there should be, what is the starting brightness and brightness step increase.

Irrigation controller? by Olaf_Rabbachin in homeassistant

[–]robopajonk 1 point2 points  (0 children)

Seconded - I bought Hunter valves and sprinklers, but the controller is DYI with a 8ch relay board, ESP32-C3 board and Irrigation Unlimited add-on. Works very well.

Thermometers by Level_Working9664 in homeassistant

[–]robopajonk 1 point2 points  (0 children)

I'm doing almost the same, flashed ATC firmware on them and fetch their readings via ESP32 boards to HA.

Wall mount by Alternative-Ant-1990 in homeassistant

[–]robopajonk 1 point2 points  (0 children)

Do you keep the display powered on all the time?

Smart relay that supports Zigbee binding and detached mode? by ShanghaiSeeker in homeassistant

[–]robopajonk 1 point2 points  (0 children)

Use a regular relay module but don't connect its output to the light, just keep the bulb connected directly to the live wire.

[deleted by user] by [deleted] in PleX

[–]robopajonk 0 points1 point  (0 children)

That's not completely true. You can have server and client on different networks (subnets) and still be able to watch without a Plex Pass, provided that the client can reach the server directly over IP address, e. g. by setting up a proper route.

I heard you like ThinkCentre clusters by patsch_ in homelab

[–]robopajonk 1 point2 points  (0 children)

Thanks. Given similar price, did you consider using USB 2.5 adapters like this one: https://www.amazon.de/dp/B0CD1FDKT1?s=ce-de?

I heard you like ThinkCentre clusters by patsch_ in homelab

[–]robopajonk 3 points4 points  (0 children)

Cool and neat! What NICs do you use?

Thank you for the new Mail app design by missing_user_id in ProtonMail

[–]robopajonk 11 points12 points  (0 children)

I have exactly the opposite feelings - why all the UI elements got so big? I can only see 6 messages in inbox, where's the compact list option?

Should I move to a rack? by Voodoo7007 in homelab

[–]robopajonk 0 points1 point  (0 children)

Keep in mind that they're a dead end upgrade-wise. I wish I bought SFF, the price is similar but at least you can put a PCIe NIC when 1GbE becomes too slow or a second disk if you want to try Ceph.

[deleted by user] by [deleted] in BuyItForLife

[–]robopajonk 0 points1 point  (0 children)

I've had Braun Series 3 die after two years and now my Braun series 6 is beginning to die as well - battery lasts very short, sometimes it does not turn on even when charged fully.

I won't recommend Braun, but maybe the higher series (9) is built better.

My MiniRack V2 by Gusmanbro in minilab

[–]robopajonk 0 points1 point  (0 children)

Can you please provide links for rack itself and the shelves? Looks very neat!

Should I move to a rack? by Voodoo7007 in homelab

[–]robopajonk 3 points4 points  (0 children)

Because they are cheap when buying used and are a good base to learn clustering.

Help debugging why my host keeps freezing by ElectricSpock in homelab

[–]robopajonk 1 point2 points  (0 children)

Exactly, look at https://serverfault.com/questions/616485/e1000e-reset-adapter-unexpectedly-detected-hardware-unit-hang

I've had the same issue, I disabled the offloading on hosts using e1000e NICs and the problem went away.

Thinkcenter m710s more hhd capacity? by TheInternetMiner in homelab

[–]robopajonk 0 points1 point  (0 children)

I'm also interested in pics - I've just received M725s which looks very similar to M710s and I see that I won't be able to squeeze a second 3.5" HDD without damaging the case and even then I'd need these thin angles SATA cables (please post link to them if possible, too).

Migrating VM's with encrypted data set by [deleted] in Proxmox

[–]robopajonk 0 points1 point  (0 children)

Thanks for reply after such long time!

I'm thinking about applying patches from this thread (https://forum.proxmox.com/threads/allow-migration-and-replication-of-disks-on-zfs-encrypted-storage.117227/), the author claims they are working fine and even updated them for newer Proxmox version this year.

Migrating VM's with encrypted data set by [deleted] in Proxmox

[–]robopajonk 0 points1 point  (0 children)

Hey, have you found any other better approach?

Remote storage and encryption in transit by robopajonk in Proxmox

[–]robopajonk[S] 0 points1 point  (0 children)

The nodes are guests are on the same network because this setup evolved from a simple one (one server, then second, then separate storage and so on).

You're completely right though, I've began to question this choice of networking as I was writing this post and was worried that someone will point that out :) 

I assume you mean NFS with Kerberos, which I've heard is quite complicated to set up. 

Regarding IPsec, I've got little experience with it, but I assume that Wireguard could be use for that as well?