Skip to content

Instantly share code, notes, and snippets.

@SqyD
Last active May 27, 2025 13:59
Show Gist options
  • Save SqyD/00fc78e90d46e25fc66478364e606f26 to your computer and use it in GitHub Desktop.
Save SqyD/00fc78e90d46e25fc66478364e606f26 to your computer and use it in GitHub Desktop.
Trafasi TNG

Renewed approach to the washer and dryer monitor I'm using. This incarnation replaces the old one found here.

Disclaimer

This is not a plug and play project. I build this a tuned it for my specific setup. Your washer and drying will very likely behave differently so you will have to tune specifics, thresholds etc. Also: I didn't bother calibrating the power usage as I'm only interested in "Is the device currently running or not?".

Requirements

# Add and modify the items below to your devices yaml files but leave the things that are there by default.
i2c:
sda: GPIO04
scl: GPIO05
scan: false
ads1115:
- address: 0x48
continuous_mode: True
sensor:
- platform: ads1115
multiplexer: 'A0_A1'
gain: 6.144
name: "Washer Voltage"
id: washer_voltage
internal: True
- platform: ads1115
multiplexer: 'A2_A3'
gain: 6.144
name: "Dryer Voltage"
id: dryer_voltage
internal: True
- platform: ct_clamp
sensor: washer_voltage
name: "Washer Current"
update_interval: 15s
id: washer_current
internal: True
- platform: ct_clamp
sensor: dryer_voltage
name: "Dryer Current"
update_interval: 15s
id: dryer_current
internal: True
- platform: dht
pin:
number: GPIO00
mode:
input: true
pullup: true
temperature:
name: "Laundry Room Temperature"
humidity:
name: "Laundry Room Humidity"
update_interval: 60s
- platform: uptime
type: seconds
id: trafasi_uptime
internal: True
binary_sensor:
- platform: template
id: washer_running
name: "Washer"
condition:
not:
for:
time: 2min
condition:
sensor.in_range:
id: washer_current
below: 0.2
- platform: template
id: dryer_running
name: "Dryer"
condition:
not:
for:
time: 2min
condition:
sensor.in_range:
id: dryer_current
below: 0.3
# Add and modify the items below to your devices yaml files but leave the things that are there by default.
light:
- platform: neopixelbus
type: GRB
variant: ws2812x
pin: D3 #I changed this for another project. The default is D4.
num_leds: 7
name: "Living Alert"
effects:
- addressable_rainbow:
@SqyD
Copy link
Author

SqyD commented May 27, 2025

Screenshot from 2025-05-27 15-57-58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment