Hi Kdem, thanks for your support,
I tried with :
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install rpi.gpio
as you suggested but it does not work, now I would try to instal raspbian pi os full and perform some test, in order to exclude hw problems.
when you say you running Raspian Lite, do you mean Buster, should be for RPi4?
Yes, is the official distributuion for Pi4, I got it trough raspberry pi manager, I mean this version:
Following my configuration yaml:
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
#Include files
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sensor: !include sensors.yaml
homeassistant:
#Include packages
packages: !include_dir_named packages
#Include customized entities
customize: !include customize.yaml
# Attivazione Logger
logger:
default: critical
logs:
homeassistant.components.http: warning
#Configurazione HACS
hacs:
token: !secret github_token
#CONFIGURAZIONE TELEGARM
telegram_bot:
- platform: polling
api_key: **********
allowed_chat_ids:
- **********
- **********
notify:
- name: luca
platform: telegram
chat_id: **********
- name: ornella
platform: telegram
chat_id: **********
- name: famiglia
platform: group
services:
- service: luca
- service: ornella
#FINE CONFIGURAZIONE TELEGARM
# SESIONE SENSORI
###GARBAGE COLLECTION###
garbage_collection:
sensors:
- name: Umido # Each week on Tuesday, Thursday, Saturday
frequency: "weekly"
collection_days:
- mon
- wed
- fri
- name: Carta e Tetrapack # Each week on Tuesday
frequency: "weekly"
collection_days:
- mon
- name: Plastica # Each week on Friday
frequency: "weekly"
collection_days:
- thu
- name: Vetro_e_lattine # Each week on Friday
frequency: "weekly"
collection_days:
- thu
- name: Secco # Each week on Tuesday, Friday
frequency: "weekly"
collection_days:
- mon
- thu
###FINE GARBAGE COLLECTION###
###################Configurazione per gestione plancia#######################
input_select:
floorplan_floor:
name: The select floor to show when viewing the floorplan.
options:
- "1st Floor"
- "2nd Floor"
initial: "1st Floor"
icon: mdi:floor-plan
#Input select per attivare e disattivare le notifiche telegram relative al componente garbage collector
notification_garbage_luca:
name: Attiva/disattiva le notifiche relative alla raccolta differenziata
options:
- "Enabled"
- "Disable"
initial: "Enabled"
notification_garbage_ornella:
name: Attiva/disattiva le notifiche relative alla raccolta differenziata
options:
- "Enabled"
- "Disable"
initial: "Enabled"
######################################################################
######################DATABASE MANAGEMENT#############################
######################################################################
recorder:
purge_keep_days: 7
exclude:
domains:
- sensor
- automation
- script
include:
entities:
# PI Info sensors
- sensor.cpu_temperature_filtered
- sensor.disk_use_percent_filtered
- sensor.memory_free_filtered
- sensor.memory_use_filtered
- sensor.processor_use_percent_filtered
# PI Sensori di temperatura
- sensor.external_temperature
#Tado
#Temperatura
- sensor.soggiorno_temperature
- sensor.cucina_temperature
#Umidità
- sensor.soggiorno_humidity
- sensor.cucina_humidity
#Piante MiFlora
- sensor.camelia_moisture
#Bticino Living Now
- sensor.lavatrice_power
- sensor.asciugatrice_power
# - sensor.din_power
# - sensor.potenza_istantanea_filtered
################################################################################
########## Google assistant ###################
########## TTS & Media Player ###################
################################################################################
google_assistant:
project_id: home-assistant-8ac1e
service_account: !include DomoticLuca-9c2fff04025b.json
exposed_domains:
- binary_sensor
#Text to speech
tts:
- platform: google_translate
service_name: google_say
language: 'it'
################################################################################
########## MiFlora ###################
########## Plant Camelia ###################
################################################################################
plant:
camelia:
sensors:
moisture: sensor.camelia_moisture
battery: sensor.camelia_battery
temperature: sensor.camelia_temperature
conductivity: sensor.camelia_conductivity
brightness: sensor.camelia_light_intensity
min_moisture: 15
max_moisture: 60
min_battery: 17
min_conductivity: 350
max_conductivity: 2000
min_temperature: 0
max_temperature: 35
min_brightness: 3700
max_brightness: 95000
####################################################################
#
######## ######## ###### ######## #
## ## ## ## ## #
## ## ## ## #
## ###### ###### ## #
## ## ## ## #
## ## ## ## ## #
## ######## ###### ## #
#
####################################################################
#>BOLEAN
input_boolean:
dummy_sensor:
name: Input to test
icon: mdi:ceiling-light
################################################################################
########## Dieta Luca ###################
########## Binary Sensor ###################
################################################################################
binary_sensor:
- platform: template
sensors:
dieta_luca:
friendly_name: dieta Luca
value_template: >-
{% if is_state('binary_sensor.dieta_luca', 'on') %}
on
{% else %}
off
{% endif %}
################################################################################
########## Stato Lavatrice ###################
########## Binary Sensor ###################
################################################################################
- platform: template
sensors:
stato_operativo_elettrodomestico:
friendly_name: "Stato Operativo Lavatrice"
value_template: "{{ states('sensor.lavatrice_power')|int > 0 }}"
device_class: power
delay_on:
seconds: 30
delay_off:
minutes: 2
################################################################################
########## Stato Asciugatrice ###################
########## Binary Sensor ###################
################################################################################
- platform: template
sensors:
stato_operativo_elettrodomestico:
friendly_name: "Stato Operativo Asciugatrice"
value_template: "{{ states('sensor.asciugatrice_power')|int > 0 }}"
device_class: power
delay_on:
seconds: 30
delay_off:
minutes: 2
switch:
- platform: rpi_gpio
ports:
18: Fan SHIM
UPDATE: I’ve reinstalled Home Assistant in venv instead of docker but the problem is still there, I’ve tried to chnge the status of GPIO trough piton with a simple scrip:
‘’’
from RPi import GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(21, GPIO.OUT)
while (True):
GPIO.output(21, GPIO.HIGH)
time.sleep(1)
GPIO.output(21, GPIO.LOW)
time.sleep(1)
and the GPIO works well so the problem is in home assistant but I don’t know how to fix it…
do you have any suggestions?
Reply
ShareBookmarkFlag