Solar iBoost - remote control now available in HA

it doesn’t look like the Radio is getting a signal from the iBoost.

Get as close to the iBoost as you can…

And to ask a silly question… you do have the iBoost+ not just the standard iBoost ?

Can you also add a picture of you ESP + Radio, so we can see your wiring ( to try and check you have it wired right )

Finally - the best logs are the “Start-up” logs, to see the Radio being initialized.

You can also increase the logging in the YAML :slight_smile:

level: VERY_VERBOSE

1 Like

The problem i am having is i cannot add it to home assistant, it fails every time. I can visit the device through esphome builder, but cant add to home assistant

1 Like

Also the logs are not working

I am trying to get the integration setup and then try an get the signal from the iboost.. We have a unit downstairs in the electrical cabinet and then we have the unit on the immersion. i’m guessing it needs to be upstairs near the immersion?

1 Like

In my home assistant, I just created it in “ESPHOME Builder” ( I may have had the option to adopted it in here as well )

Then then it appeared in under ESPHOME in the integrations page automatically

And in the develops tools I can see the entities :

1 Like

Something strange is going on because i can ‘visit device’ through esp home builder, but it will not allow me to install wirelessly, nor can i see the logs. some authentication problem I think, but I’m a complete novice on this

1 Like

is it as simple as you need to change your YAML ?

api:
password: “”

ota:
- platform: esphome
version: 2
port: 8266

1 Like

This is my YAML

substitutions:
  name: esphome-web-73d8f4


esphome:
  name: cc1101
  friendly_name: iBoost-01  
  libraries:
    - SPI  
  compile_process_limit: 1  

esp8266:
  board: d1_mini

cc1101:
text_sensor: 

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  manual_ip:
    # Set this to the IP of the ESP
    static_ip: 192.168.125.74
    # Set this to the IP address of the router. Often ends with .1
    gateway: 192.168.125.1
    # The subnet of the network. 255.255.255.0 works for most home networks.
    subnet: 255.255.255.0
    dns1: 192.168.125.1

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "cc1101 Fallback Hotspot"
    password: !secret wifi_password

external_components:
  - source:
      type: git
      url: https://github.com/JNSwanson/ESP-Home-iBoost/
      #type: local # Alternative.  Clone from git and point to the local files:
      #path: "C:\\Users\\<your Name>\\iboostSrc\\ESP-Home-iBoost\\esphome\\components" 
    components:
      - cc1101    
      - iboost

# Enable logging
logger:
  #level: VERY_VERBOSE
  
# Enable Home Assistant API
api:
  password: ""

ota:
- platform: esphome
  version: 2
  port: 8266

# Optional Web configuration entry
web_server:
  port: 80
  version: 3
  local: False
  log: True
#  css_include: "webserver-v2.min.css"
#  css_url: ""
#  js_include: "webserver-v2.min.js"
#  js_url: ""

captive_portal:

    
sensor:
  - platform: iboost
    id: iboost_iboost_id
    
    heating_import:
      name: "iBoost Import"
      unit_of_measurement: "W"
      accuracy_decimals: 0
      icon: "mdi:solar-power"

    heating_power:
      name: "iBoost Power"
      unit_of_measurement: "W"
      accuracy_decimals: 0
      icon: "mdi:solar-power"
      device_class: power

    heating_today:
      name: "iBoost Today"
      unit_of_measurement: "Wh"
      accuracy_decimals: 0
      device_class: energy
      icon: "mdi:solar-power"
      state_class: total_increasing

    heating_yesterday:
      name: "iBoost Yesterday"
      unit_of_measurement: "Wh"
      accuracy_decimals: 0
      icon: "mdi:solar-power"
      device_class: energy
      state_class: total_increasing
      disabled_by_default: false
      id: sensor_sensor_id_4
      force_update: false
      internal: false
      entity_category: diagnostic

    heating_last_7:
      name: "iBoost Last 7 Days"
      unit_of_measurement: "Wh"
      accuracy_decimals: 0
      icon: "mdi:solar-power"
      state_class: total_increasing
      device_class: energy
      internal: false
      entity_category: diagnostic

    heating_last_28:
      name: "iBoost Last 28 Days"
      unit_of_measurement: "Wh"
      accuracy_decimals: 0
      icon: "mdi:solar-power"
      device_class: energy
      state_class: total_increasing
      internal: false
      entity_category: diagnostic

    heating_last_gt:
      name: "iBoost Total"
      unit_of_measurement: "Wh"
      accuracy_decimals: 0
      icon: "mdi:solar-power"
      device_class: energy
      state_class: total_increasing
      internal: false
      entity_category: diagnostic

    heating_boost_time:
      name: "iBoost Boost Time Remaining"
      unit_of_measurement: "Min"
      accuracy_decimals: 0
      device_class: duration
      icon: "mdi:solar-power"
      internal: false
      entity_category: diagnostic

# Ensure `text_sensor:` is at the correct level
#text_sensor:
#  - platform: cc1101
#  
#  - platform: iboost
    heating_mode:
      name: "iBoost Mode"
      icon: "mdi:solar-power"

    heating_warn:
      name: "iBoost Warn"
      icon: "mdi:solar-power"




button:
  - platform: template
    name: "iBoost Manual Boost START"
    id: BoostStart
    icon: "mdi:solar-power"
    on_press:
      then:
        - lambda: |-
            id(iboost_iboost_id)->boost(id(boostTime).state);

  - platform: template
    name: "iBoost Manual Boost CANCEL"
    id: BoostCancel
    icon: "mdi:solar-power"
    on_press:
      then:
        - lambda: |-
            id(iboost_iboost_id)->boost(0);
            
number:
  - platform : template
    name: "iBoost Manual Boost Time"
    id: boostTime
    icon: "mdi:solar-power"
    unit_of_measurement: "Minutes" 
    optimistic: true
    initial_value: 15
    min_value: 0
    max_value: 120
    step: 15
1 Like

I used your code, now when I visit the device i see the following page


But i still have the same issue adding the integration, the unit is 300mm from the i boost unit (BTW it is an iboost+). Not sure what to change.. When i try and view logs i have the same connection failure also.

1 Like

1 Like

Well - looks like you have 2 issues :

  1. The iBoost is not talking to your ESP Device ( This might be the radio frequency - you can change it with frequency tuning : GitHub - JNSwanson/ESP-Home-iBoost: ESPHOME Marlec iboost integration )

  2. Home assistant cannot see your ESP Device, What I can see though is that your Home Assistant is on the 192.168.1.xx IP range and you ESP Device is on 192.168.5.xx range, So this means you are “Routing” the network traffic. ( .1 and .5 are the issue )

So to do more testing - click the “Terminal” option on the left and try and “ping” 192.168.5.207" - if you cannot I suspect you have 2 networks and you need to get them on the same network - or fix you network issues and allow the routing. ( do you have multiple Wifi’s ? )

I have multiple networks in my home and have a Firewall that does the routing and security - do you have something the same ?

1 Like

Yes i have multiple networks. main router is on 1.1 then i have a second router outdoors that is 2.1 (however none of the devices are on this subnet) But i have tenda nova mesh boxes, first plugged in to the main router, then the wireless mesh network is what I’m connected to with the device, giving the ip 5.207..
I don’t know what settings i should change to allow routing through

1 Like

Sorry I can’t really help you much more, I am 99.9% the network “routing” issue is the problem and if you have multiple routers and a Mesh setup as well.

It could be as simple as you have you main “Router” giving out 192.168.1.x addresses and you have then plugged in your Nova MESH into that router and the Nova Mesh if treating the 192.168.1.x as the “Internet”, and so giving out 192.168.5.x as a local address on the Mesh network, and if so a simple thing would be to change the MESH network into “Bridge” Mode so that it would then also use the 192.168.1.x address ranges ( https://static.tenda.com.cn/tdeweb/download/nova%20MW6/User%20Guide.pdf page 16 ( you would also have to disable the DHCP server in the Mesh network as well )

The 192.168.5.x network will then no-longer exist though, and anything on that network would need a reboot.

But after that - I can’t help any more :frowning:

1 Like

Thanks you have been a massive help already! I’m going to try to do that - its been years since i installed the Nova’s.
I was thinking that this could be the issue but i have just semi-successfully set up an esp device to our solar inverter and have it reporting to HA. (sofar2mqtt project).. some errors with some sensors but mainly working. The inverter dongle is the same setup in network terms from the pi running HA.

~~Update

I have done what you said and was able to add the integration into HA, and it is giving me some data, i will leave it overnight and see what the logs read afterwards… Turns out the CT clamp was on the wrong line, and the batteries were flat in the sender - so it hasn’t been working for a long time already!

After watching it for a few hours it strange that i am getting -41w or -161 w for the iboost import sensor

1 Like

if you are 100% you are exporting solar to the grid then your values in the “iBoost Import” should be negative… The “iBoost Power” is normally around 100W different ( as it waits for 100W of export before it starts to divert power ).

This sounds like the classic that the CT Clamp for the iBoost is the wrong way around !

And easy way to test if it’s the right way around is to wait until it goes dark and then use the “iBoost Manual Boost START” - you should then see that the iBoost Power is around 3KW - and the iBoost Power is also around 3KW ( should be more as you are using power in the home ), if you press the iBoost Manual Start at night and the iBoost Import is still showing negetive values then you 100% have the CT Clamp the wrong way around.

But you are now 99.9% of the way there !!

Now for the “I don’t think it’s actually working” bit - You are now talking to HA, but if it has contacted the iBoost then it would be talking every few seconds sending you updates, and you should have a “total” value

Now is the iBoost even working ? - when you press the display button on the iBoost itself and cycle through the menu, the values in there should 100% match what is being shown in the ESP Device.

Send a picture of your ESP device and wiring as well - as it just might be you have a wire in the wrong place.

------- Update ------

I just noticed your says 5W in the “iBoost total” field… so it looks like it’s actually working ( or worked at least onece ), but for me this looks like the very thing that happened to me last month !!!

My iBoost was showing “Water Tank HOT” when the water was cold, and when I checked the wiring the Immersion Element had failed and the wiring had melted !!

I had to get a new heating element installed - and then its back to normal

So I suspect that either your Heating element has failed - or whoever fitted your iBoost has wired it wrong and it has never worked since the day it was installed ! ( it is should be saying “Water Heating off” if there is NO power being diverted.

A very simple test would be to monitor you electric usage and then push the “iBoost Button” and see if it manually comes on and check the mains power usage to see if 3KW+ is being used.

1 Like

its 300mm, very close. the sun is going down - next to no solar but this is the current info - strange it says heating off but import over 3 kw!

From the dashboard and the device page… So I can see I’m getting information… just not sure that it is correct information! I will add some photos of the wiring tomorrow - I’m only allowed 1 picture per post.
I have double checked the CT and it is correct, so not sure but i will get to the bottom of it

1 Like

Your CT lamp is the wrong way around :-) - when you are “Exporting” it’s always a Minus figure

I am generating 7KW - and exporting 3KW to the grid as I can only put 3.6kw into the battery

1 Like

Ok, so the ct clamp is definitely the correct way round.. It looks to be somewhat similar to yours on the device page


as you also show iBoost Import as a minus figure. We have probably a different energy use case here as we have quite high load in the mornings, and only a 4.8kw solar so there are many times where there is no extra power available..
The graph says there has been activity maybe it is just some conversion factor of the sensor that is going on… I’m assuming that since I am getting readings and mode changes then my device is soldered up correctly and the hardware is ok - But maybe I’m Wrong!

1 Like

1 Like

Is it all working now ?

1 Like

Sort of, the import figure is off.. but some of the other stats say it working so I’m not sure what the issue is.. I’m also trying to integrate a wallbox charger for an ev to use excess solar.


But I’m quite new to home assistant, yaml, and a few other things so I am stumbling in a little bit of dark sometimes!

The import figure is confusing, i am not sure where it is getting this… but based on the stats we have positive usage values but a negative import? its a little confusing!
This time we have great weather and we are topping out our solar by 14:00 and batteries full 14.4 KWh so it is throttling production… hence I’m trying also to set up the wallbox integration and trying to understand how to keep all the potential solar!

1 Like