at a guess…
That looks quite promising!
Anyone got a working ESPHome configuration file for the Deta switches? or alternatively advice on how to use the Tasmota config with ESPHome?
If you have a working Tasmota config / template you can translate easily based on whatever GPIO is being used. Some info here (as long as there are no Tuya-MCU’s in there as they are not supported by ESPhome yet…as far as I know)
I have looked at that…wasn’t sure it was completely the same, but it probably is. I would like to try and convert the Brilliant fan controller code a few posts above to ESPhome if possible. I’ll try and look into it in more detail over the holidays
I am not sure either. I saw the ref in the docs to MCU.
Roll on holidays!
$15. I couldn’t find them on the website either. But just walked into one randomly, and they had a bunch.
Has anyone tried the Kogan plugs with the USB ports?
Pretty sure this is what you are looking for.
On a side note, I had one of my original Kogan plugs (with monitoring) die on me over the weekend… left my beer fridge in a bad way. Unfortunately my code to alert me was only based on the power level being low for too long and didn’t pickup on a completely failed plug… code now fixed to capture both possibilites
Thanks Dave… had a quick search for Kogan plugs, but could only see the non-USB ones. Much appreciated!
Ok still trying to flash these 190HA arlec plugs. Still no luck over serial.
I did manage to flash a H801 easily tonight with the serial kit i have so i know i’m able to do it.
Has anyone got any of the new arlec plugs working yet?
I hadn’t thought of covering that sort of “emergency”. Brilliant. Can you share a snippet for that sort of time/interval based check?
-Chris
No worries, it’s pretty basic. I have each fridge powered via a smart plug. Originally it was just for the sake of curiosity to see how much power each used but then I figured I could use them for notifications
kitchen_fridge.yaml (package)
automation:
- alias: 'Kitchen fridge fault notification'
initial_state: 'on'
trigger:
- platform: numeric_state
entity_id: sensor.kitchen_fridge_power
below: '2'
for: '01:00:00'
- platform: state
entity_id: device_tracker.kitchen_fridge_plug
to: not_home, unavailable
for: '00:15:00'
action:
- service: notify.html5
data:
message: 'Kitchen Fridge appears offline! Check before food goes bad'
Good call!
I have a power plug monitoring our chest freezer for power usage and incase it dies … didn’t consider if the plug fails so thanks for this idea… unfortunately at the expense of your beer fridge contents
How are you getting the Smart Plug into Device Tracker?
Edit: Nevermind, I was using ping for binary sensor - didn’t realise you can use it or nmap for device tracker
Don’t know if anyone has posted about these yet…
From the GridConnect range at Bunnings.
Flashed it easily with tuya-convert, and made an ESPHome config for it…
esphome:
name: power_board
platform: ESP8266
board: esp01_1m
<<: !include .common_config.yaml
logger:
status_led:
pin:
number: 1
inverted: true
binary_sensor:
- platform: gpio
pin:
number: 3
inverted: true
id: button_1
internal: true
on_press:
then:
- switch.toggle:
id: master_switch
switch:
- platform: gpio
name: 'Power Board Socket 1'
id: switch_1
pin: 5
- platform: gpio
name: 'Power Board Socket 2'
id: switch_2
pin: 4
- platform: gpio
name: 'Power Board Socket 3'
id: switch_3
pin: 13
- platform: gpio
name: 'Power Board Socket 4'
id: switch_4
pin: 12
- platform: template
name: "Master Switch"
id: master_switch
optimistic: true
internal: true
turn_on_action:
- switch.turn_on: switch_1
- switch.turn_on: switch_2
- switch.turn_on: switch_3
- switch.turn_on: switch_4
turn_off_action:
- switch.turn_off: switch_1
- switch.turn_off: switch_2
- switch.turn_off: switch_3
- switch.turn_off: switch_4
Seems to be working very well!
Also the dimmable security light from Arlec/Gridconnect at Bunnings…
Similarly no issues flashing with tuya-convert, and here is the ESPHome config for that one…
esphome:
name: security_light
platform: ESP8266
board: esp01_1m
<<: !include .common_config.yaml
logger:
light:
- platform: monochromatic
name: "Security Light"
output: output_1
output:
- platform: esp8266_pwm
id: output_1
pin: 14
I have the plug flashed with ESPhome and am using the device tracker in that