Home Automation - Smartkit

I installed a new solar geyser recently, and got with it a super cheap temperature sensor and display (I declined the GeyserWise, knowing I wanted to do something myself).

View attachment 871351

Since I knew the installer well, I convinced him to lend me another probe and did some tests until I eventually figured out it was a NTC thermistor. Then I used a Wemos D1 I had, built a basic voltage divider on some breadboard, loaded ESPHome onto it and configured it into a basic digital temperature sensor.

I used the second probe/sensor to calibrate it (using another temperature sensor I had, and a bunch of different temperatures such as boiling water, warm water, room temp and the fridge), then moved the end of the already-installed probe from where it was in my kitchen to my study, and plugged it into the Wemos.

The ESPHome firmware/add-on automatically expose it as a sensor in Home Assistant for me.

View attachment 871353
(I need to mount it! Theres also a second sensor to measure temperature and humidity in my study).

View attachment 871355

It's useful. I control the geyser element from a Sonoff Basic + contactor, so I can, depending on the PV yield and time of day and geyser temperature, switch on the element for a couple of minutes and let it switch off when reaching target temperature, or consumed X kWh of energy or ran for Y minutes. Basically to "boost" the temperature when the solar geyser by itself can't get to where we want it. Or as you can see, run it for a little while to get the water back to 50 degrees for the significant other's shower (just before 0:00 last night).

The Aqara gateway shows pure red when 50 or higher, or pure blue when 30 or lower, and then some shade of pink/purple somewhere in between 30 and 50. When it goes from red to pink, the SO immediately goes and shower!

View attachment 871357
(This is for the 43 degrees above).
That's pretty cool. I already have a geyser wise, I wonder if it would be possible to use those sensors and create a smarter interface.
 
That's pretty cool. I already have a geyser wise, I wonder if it would be possible to use those sensors and create a smarter interface.

There's only so many ways to monitor temperature :)

I used this page, the number of leads and and a multimeter to figure out what type it was.
 
That's pretty cool. I already have a geyser wise, I wonder if it would be possible to use those sensors and create a smarter interface.

Much easier to just buy another temperature sensor and put it down the geyser hole alongside the geyserwise one.
 
Cool so no issues with gaps and such like?

I was lucky, 1-2mm larger (or slightly warped?) wall box and I would have had a gap on some of my T2s.
The traditional SA switch covers are generally slightly wider and shoddy builders and contractors are plentiful so there's always the risk of an outlier leaving a small gap.
 
I wonder if someone can help me with android. When the gate open i want to have the snapshot from my camera.

im struggling to get it to work this is the automation that i have

- id: '1591036652698'
alias: Gate state
description: ''
trigger:
- payload: 'ON'
platform: mqtt
topic: cmnd/gatestate/POWER2
condition: []
action:
- data:
data:
android:
notification:
image: http://192.168.1.93/cgi-bin/api.cgi...kmUCeI9WG7C&user=XXXXXXXX&password=XXXXXXXXXX
message: Alert
title: Your gate was opened at {{ as_timestamp(now()) | timestamp_custom('%I:%M%p',
true) }}.
service: notify.mobile_app_sm_n960f
 
I wonder if someone can help me with android. When the gate open i want to have the snapshot from my camera.

im struggling to get it to work this is the automation that i have

- id: '1591036652698'
alias: Gate state
description: ''
trigger:
- payload: 'ON'
platform: mqtt
topic: cmnd/gatestate/POWER2
condition: []
action:
- data:
data:
android:
notification:
image: http://192.168.1.93/cgi-bin/api.cgi...kmUCeI9WG7C&user=XXXXXXXX&password=XXXXXXXXXX
message: Alert
title: Your gate was opened at {{ as_timestamp(now()) | timestamp_custom('%I:%M%p',
true) }}.
service: notify.mobile_app_sm_n960f

have you gotten notifications to work without the "complexity" of the image? i would start there.
 
I just get the notification not the image.

Don't see anything in the logs
 
I just get the notification not the image.

Don't see anything in the logs

check this:


i see they are using file rather than image
 
It's actually data.photo.url


There is an example there.

YAML:
action:
  service: notify.notify
  data:
    message: "Test plugin"
    data:
      photo:
        url: "http://www.gbsun.de/gbpics/berge/berge106.jpg"

1 thing I've learnt from using Home Assistant is not to refer to any docs/forum posts older than 6 months old because they constantly make breaking changes :laugh:
 
It's actually data.photo.url


There is an example there.

YAML:
action:
  service: notify.notify
  data:
    message: "Test plugin"
    data:
      photo:
        url: "http://www.gbsun.de/gbpics/berge/berge106.jpg"

1 thing I've learnt from using Home Assistant is not to refer to any docs/forum posts older than 6 months old because they constantly make breaking changes :laugh:

and never trust one source
 
Always follow the companion app docs. Also internal IP's don't work for notifications when you are not connected to your local network - ask me how I know... You could try using the camera proxy, if there is one, or save the file first and add it as an attachment as mentioned already.
 
I wonder if someone can help me with android. When the gate open i want to have the snapshot from my camera.

im struggling to get it to work this is the automation that i have

- id: '1591036652698'
alias: Gate state
description: ''
trigger:
- payload: 'ON'
platform: mqtt
topic: cmnd/gatestate/POWER2
condition: []
action:
- data:
data:
android:
notification:
image: http://192.168.1.93/cgi-bin/api.cgi...kmUCeI9WG7C&user=XXXXXXXX&password=XXXXXXXXXX
message: Alert
title: Your gate was opened at {{ as_timestamp(now()) | timestamp_custom('%I:%M%p',
true) }}.
service: notify.mobile_app_sm_n960f

I dont think that private ip will work.

Rather set it up as a camera device in HA, then take a snapshot which you save and send.

See the way I do it:
Automation that send image to my phone when front beam is triggered. Should be similar for the gate.
https://github.com/tinuva/home-assistant-config/blob/master/packages/camera_notifications.yaml

Camera is a simple setup:
https://github.com/tinuva/home-assistant-config/blob/master/includes/camera.yaml

The URLs look like this in secrets.yaml
Code:
# Ezviz cameras
camera_front: rtsp://admin:[email protected]:554/h264_stream
camera_back: rtsp://admin:[email protected]:554/h264_stream
 
I dont think that private ip will work.

Rather set it up as a camera device in HA, then take a snapshot which you save and send.

See the way I do it:
Automation that send image to my phone when front beam is triggered. Should be similar for the gate.
https://github.com/tinuva/home-assistant-config/blob/master/packages/camera_notifications.yaml

Camera is a simple setup:
https://github.com/tinuva/home-assistant-config/blob/master/includes/camera.yaml

The URLs look like this in secrets.yaml
Code:
# Ezviz cameras
camera_front: rtsp://admin:[email protected]:554/h264_stream
camera_back: rtsp://admin:[email protected]:554/h264_stream
Will have a relook but already have the camera set up in HA. Using camera Integration.
 
Battling to get this temp / humidity device connected to my network.

I put it in pairing mode (tried both pairing modes)

It sees and connects to my network but remains offline.

I've removed and added this device many times now.

Any suggestions?
cc430dcd4c7777ee905c65e1d76538a7.jpg
028192cac4fffc94eeb7375aba952cb3.jpg
 
Battling to get this temp / humidity device connected to my network.

I put it in pairing mode (tried both pairing modes)

It sees and connects to my network but remains offline.

I've removed and added this device many times now.

Any suggestions?
cc430dcd4c7777ee905c65e1d76538a7.jpg
028192cac4fffc94eeb7375aba952cb3.jpg
Tasmotizer
 
Top
Sign up to the MyBroadband newsletter
X