Telsa T-Smart Immersion Heater

Just a minor thing, and doesn’t affect the running but there are some comments in you code about adding lights

Thanks - now fixed, along with some other code tidying.

@pdw
Just installed the update but get this error message:

Logger: homeassistant.setup
Source: setup.py:348
First occurred: 09:41:37 (1 occurrences)
Last logged: 09:41:37

Unable to prepare setup for platform t_smart.binary_sensor: Platform not found (No module named 'custom_components.t_smart.binary_sensor').

EDIT: Wow that was quick, thanks, restarting now

EDIT2: Works perfectly now, thank you

Try now. I forgot to commit a new file. I probably should have done this change on a branch, as I’ve not yet tested it on my own HA installation, only the dev install on my laptop.

Works great, many thanks again

Glad it’s working. It took me a bit of time to get my head around how to handle multiple entities from a single device.

1 Like

With the addition of a Powercalc sensors using the relay sensor:

Works perfectly - now I can have my button showing the real state - i.e. red for heating, green for on and idle and grey for off :slight_smile:

image

Hi All

So I needed the core Node Red flow to just export temp so I can use it with homekit module, whilst not using HA as such. Still needs Buffer-Parser installing (thanks to Amanda for the source to work from)

[{"id":"1fc40438f9fe75ed","type":"tab","label":"T-Smart","disabled":false,"info":""},{"id":"2e1c0fa8d82569ba","type":"udp out","z":"1fc40438f9fe75ed","name":"Poll for data","addr":"192.168.4.26","iface":"","port":"1337","ipv":"udp4","outport":"","base64":true,"multicast":"false","x":590,"y":80,"wires":[]},{"id":"feb781e2e3583eeb","type":"udp in","z":"1fc40438f9fe75ed","name":"Listen for UDP messages","iface":"","port":"1337","multicast":"false","group":"","datatype":"buffer","x":130,"y":200,"wires":[["541dcaec636fc5c9"]]},{"id":"1c5b4eca3f950738","type":"buffer-parser","z":"1fc40438f9fe75ed","name":"Extract Data from Payload","data":"payload","dataType":"msg","specification":"spec","specificationType":"ui","items":[{"type":"int16le","name":"current_water_temperature","offset":7,"length":1,"offsetbit":0,"scale":"0.1","mask":""}],"swap1":"","swap2":"","swap3":"","swap1Type":"swap","swap2Type":"swap","swap3Type":"swap","msgProperty":"payload","msgPropertyType":"str","resultType":"keyvalue","resultTypeType":"output","multipleResult":false,"fanOutMultipleResult":false,"setTopic":true,"outputs":1,"x":800,"y":580,"wires":[["062e312bf53660ce"]]},{"id":"541dcaec636fc5c9","type":"switch","z":"1fc40438f9fe75ed","name":"Check Source IP","property":"ip","propertyType":"msg","rules":[{"t":"cont","v":"192.168.4.26","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":290,"y":300,"wires":[["be7391beaa4c5512"],[]]},{"id":"d89a28c6942353b1","type":"switch","z":"1fc40438f9fe75ed","name":"Sort messages","property":"message_type","propertyType":"msg","rules":[{"t":"eq","v":"242","vt":"str"},{"t":"eq","v":"241","vt":"str"},{"t":"eq","v":"1","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":4,"x":620,"y":480,"wires":[[],["1c5b4eca3f950738"],[],[]]},{"id":"be7391beaa4c5512","type":"change","z":"1fc40438f9fe75ed","name":"Add Message Type to payload","rules":[{"t":"set","p":"string","pt":"msg","to":"$string(payload)","tot":"jsonata"},{"t":"set","p":"message_type","pt":"msg","to":"$substringBefore(($substringAfter($string(payload), \"[\")), \",\")\t\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":380,"wires":[["d89a28c6942353b1"]]},{"id":"2bcef42beed38c27","type":"change","z":"1fc40438f9fe75ed","name":"Get Control Data Message","rules":[{"t":"set","p":"payload","pt":"msg","to":"[\"0xF1\",\"0x00\",\"0x00\",\"0xA4\"]","tot":"bin"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":80,"wires":[["2e1c0fa8d82569ba"]]},{"id":"a80f90c2f7c7de50","type":"inject","z":"1fc40438f9fe75ed","name":"Start","props":[],"repeat":"60","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":90,"y":80,"wires":[["2bcef42beed38c27"]]},{"id":"28d7afb9ddb08b9d","type":"link in","z":"1fc40438f9fe75ed","name":"Trigger Control Read","links":[],"x":115,"y":40,"wires":[["2bcef42beed38c27"]]},{"id":"062e312bf53660ce","type":"debug","z":"1fc40438f9fe75ed","name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":980,"y":680,"wires":[]}]

I’ve been looking for a controllable immersion heater for topping up the hot water when solar is available and this looks a good solution.
I’ve been looking at the manufacturer documentation and they allude to remote access to it but don’t specify how that is happening and I see no authentication on the app.
I know the HA integration is local and I’ll use NabuCasa to get access via HA remotely but want to ensure I’m not exposing the device directly unnecessarily.
Has anyone looked into this?

If you are on the same network (Wifi) you can control it with their app. If you are not, you cannot.

Just tested that for you. Wifi on - can control. Wifi off (5G) - cannot conect.

1 Like

Thanks for testing so quickly, I’m guessing the poorly explained plumber reviews I’d seen were either not trying it outside of their local network or omitting that they had to use a VPN setup.

This suits me, and I’m sure most of us here perfectly but the manufacturer documentation could be clearer on the limitations a non HA user would have with this.

A bit late, but just to give a bit more information, it’s a simple UDP protocol with no authentication at all. The app relies on broadcast packets to discover the device, so you’ll need to be on the same LAN.

2 Likes

@britkat - the power sensor - just wired mine up outside of the tank (new tank being fitted next week so can’t fully install yet) - shows 3000w when the thermostat is calling for heat. Does this number vary once an actual immersion heater element is attached or is it just 3000w or zero?

It’s a flat 3000w

1 Like

Hows this looking in 2024?

Should I be using the HACS integration posted earlier, or trawl through the various NodeRed routines which have been posted?

I havent installed my T-Smart yet, but hoping to hit the ground running

Thanks

The integration has worked great for me since I installed it last May

1 Like

I’ve been using the integration since it was released and it’s worked 100%

1 Like

Just had mine fitted last week, firmware was up to date out of the box and it now seems it does offer remote capabilities.
I saw an option to set a PIN passcode which got my suspicions raised about remote access.
With the latest firmware you can control this remotely so it’s doing some communication with a Tesla UK cloud to enable that.
A quick firewall change and that’s blocked.
I’ve also rearchitected the integration to allow manual IP’s to be added for those using vlans, bit of an epic PR waiting for you.

Ah excellent - I noticed that mine wouldn’t get found when I switched it to my “no internet” VLAN.