Advice how to load sensor info from Plugwise Anna thermostat web interface XML

Hi and great work!

Im thinking of installing this and i’m new to home assistent :face_with_monocle:

I have Anna firmware version: 1.8.20 (is this the last version?)
Local PI with Hassio -> home assistent version 0.94.3

On the github page under instal instructions it sais: * Extract everything in custom_components directory to your Home Assistant custom_components directory

But what is the whole path to this directory? I can’t seem to find custom_components directory?
Im using configurator addon in hassio to change configuration.yaml file.

Thanks for the help

It’s in the same directory as configuration.yaml so if it doesn’t exist, create it.

Hi,

Created directory and midified configuration.yaml file.
Now, like #plamola (few post earlier) i get the massage: Platform not found: climate.anna

Now he sais with his and mine ana firmware version he had to “fix” the library.
But he doesn’t say how, right?

ooh when i go to custom_components via the configurator i get this:
‘utf-8’ codec can’t decode byte 0xb0 in position 37: invalid start byte

this seems to be an error?

Did you save the files in raw mode?

Raw mode? :disappointed_relieved:
I used samba file sharing addon in hassio.
So via mac unzipt the file… and via netwerk share pasted the custom_components in de config share

@Kumalix you are using Hassio? Then the directory-structure should be: config/custom_components/anna.
Then you put the files in the anna-directory.

With your version of Anna you must update the manifest.json-file to show: "haanna== 0.8.0"
If you then get the error climate.anna not found, you can use the trick I described under Update 2, in an earlier post.

Or, if you like, you can take the files from my github: https://github.com/bouwew/anna-ha
These should work properly in HA 0.94+

Hi, Yess, i use hassio!
I used the files from your guthub page. Donwloaded files yesterday.
Directory structure `config/custom_components/anna looks the same.:+1:
I changed the manifest.jason-file :+1:
Still had climate.anna not found.
Did the “trick”. Now no climate.anna not found error :+1:
so far good… but now i dont see anything in my main controle panel. Lovelace UI its called i believe? Also no entities to show anything about anna? How do i get the controles in home assistent?

thanx for the help

This is my whole configuration.yaml file:

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

homekit:

# ssdp: 

# zeroconf:

# anna:
#   username: smile
#   password: rbplqgcm
#   host: 192.168.2.6
#   port: 80
#   scan_interval: 10

climate:
  - platform: anna
    name: Anna Thermostat
    username: smile
    password: rxxxxxxxx
    host: 192.168.2.6
    port: 80
    scan_interval: 10

fan:
  - platform: mqtt
    name: "afzuiging"
    state_topic: "ha/afzuiging"
    command_topic: "ha/afzuiging"
    payload_on: "ON"
    payload_off: "OFF"
    payload_low_speed: "low"
    payload_medium_speed: "medium"
    payload_high_speed: "high"
    optimistic: false
    qos: 0
    retain: true

cover BlindsControl1:
  - platform: mqtt
    name: "MK Blinds"
    command_topic: "MK-SmartHouse/utilities/MK-BlindsControl1"
    state_topic: "MK-SmartHouse/utilities/MK-BlindsControl1/state"
    retain: true
    payload_open: "0"
    payload_close: "100"
    payload_stop: "56"
    state_open: "0"
    state_closed: "100"

# fan:
#   - platform: mqtt
#     name: "Bedroom Fan"
#     state_topic: "bedroom_fan/on/state"
#     command_topic: "bedroom_fan/on/set"
#     oscillation_state_topic: "bedroom_fan/oscillation/state"
#     oscillation_command_topic: "bedroom_fan/oscillation/set"
#     speed_state_topic: "bedroom_fan/speed/state"
#     speed_command_topic: "bedroom_fan/speed/set"
#     qos: 0
#     payload_on: "true"
#     payload_off: "false"
#     payload_oscillation_on: "true"
#     payload_oscillation_off: "false"
#     payload_low_speed: "low"
#     payload_medium_speed: "medium"
#     payload_high_speed: "high"
#     speeds:
#       - low
#       - medium
#       - high



# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
#   base_url: example.duckdns.org:8123

# Sensors
sensor:
  # Weather prediction
  - platform: yr

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml

Also in my configurator addon i see dubbel files. These extra files and folders have “_” in front of the names. When clicking on them i see a error message"
'utf-8' codec can't decode byte 0xb0 in position 37: invalid start byte

Maybe this is the problem?
Here you see 2x manifest.json files…??

I see those kind of errors if I have a text file (yaml) with windows style line feeds instead of unix ones or the wrong (non UTF-8) character set…

What is the best way to copie the custom_components to hassio?
I did it with samba file sharing. Maybe something went wrong there?

Depends on how you d/l the custom component from github…

The entity you should look for is called climate.anna_thermostat. So do not look for a name like sensor.anna... as it will not be there :slight_smile:

I dont see any entity with anna in the name?

And when i want to add THERMOSTAT Card to the overview and set
climate.anna_thermostat as entity i get a error entity not available??:

as a normal .zip download. Then extracted with default mac unzip program.
Then i copied unzipped custom_components folder (with /anna folder within) and pasted in de /config folder via network SMB connection.

Can i delete al those files and folder with “_” infront?

My suggestion:

  • remove all the files present in the Anna-directory
  • install, using the Hassio Add-on Store, this repo: https://github.com/hassio-addons/repository
  • from that repo install Visual Studio Code, this is an editor
  • set it up according to the instructions
  • then use this editor to create the anna-files: go to the directory, create the empty files by entering the files names one by one
  • then go to my github, click on each file so you see the code, then click on the Raw-button, select the text shown with Ctrl-A (select all), Ctrl-C (copy), then go the empty file, click the cursor inside the empty file, and paste the contents, and finally save the file
  • when you did this for all three files, make sure the configuration.yaml file contains the settings as shown in the github
  • then finally restart Home Assistant.

Hi all, tnx @bouwew for continuing and assisting, I’m almost back in the trenches to get things going, I’ll have a read-up tomorrow or thursday.

Hi bouwew, I have done all you suggested. Exept visual studio can not be installed it said.
Done it bij adding files via configurator self. Then copied raw code to each file.
Unfortunatelly i stil dont have the correct entity.

Done your trick a few times. Stil no luck.

I have seen your work on git hub.
Should i try to use [climate.py] before you switched entities to devices?

also when doing your trick and when configuration.yaml file is showing this:
anna:
username: smile
password: your_pw
host: your_ip
port: 80
scan_interval: 10

I do see a (somthing of anna) notification. error in the entities list saying some error.
After i change the .yaml file to what it should say. Any mentioning of anna is gone from the entities list.

Alsoyou have mentioned somthing about these 2 line.
ssdp:
zeroconf:

Is this nessery? and where do they need to go? Configuration.yaml?

Thanks for your time!

To start at the bottom, yes, ssdp: and zeroconf: must be in configuration.yaml since the update to 0.94.

Regarding Anna, when using my files, you should not have to use the trick anymore.
By the way, the original anna-repository is updated now so you can use these files now.

Can you please try again from start? Meaning, remove the files, hide the anna-entries in configuration.yaml, restart HA, then “redownload” the files, write the anna-entries in configuration.yaml exactly in the format as shown on the github and then restart. What exact error do you see then in the log?