adityapattiyeri / home-remote

An EspHome based remote control for Home Assistant
Apache License 2.0
76 stars 1 forks source link

HI #6

Open deuxzero opened 1 year ago

deuxzero commented 1 year ago

Nice project! do you have some wiring schematic, visualisation is easiere for me ;)

deuxzero commented 1 year ago

i did manage to make it but for some reason i cant see any entity in the light menu.. i change it like that :

Lights

Entity ids for lights

light_1: switch.sonoff_1000739592_1 light_2: switch.sonoff_1000739592_3 light_3: light.bulb_rgbcw_4f2452 light_4: light.led_bar

Titles for lights

light_1_title: entré light_2_title: escalier light_3_title: lampe salon light_4_title: led bar

but nothing appear in page 3

deuxzero commented 1 year ago

do i need to add some configuration in hass config file?

adityapattiyeri commented 1 year ago

Hi,

You don't need to add anything on the home assistant end. The lights should be on page one btw.

adityapattiyeri commented 1 year ago

Do let me know if you need anymore help..

deuxzero commented 1 year ago

tk for the reply. page one is not suppose to be home remote boot screen? i did try several approach but i did not have any success ... The clock , wifi batterie statut and weather work fine but nothing on light page and media page. here the code in case you can spot the bug (i even try to change font but did not work) : `esphome: name: telecommande

on_boot: then:

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> SUBSTITUTIONS <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

substitutions:

Edit the substitutions to match your setup

Home page

temprature_sensor: sensor.vulaines_sur_seine_temperatur weather: sensor.77_weather_alert

scenes: input_select.scenes

Lights

Entity ids for lights

light_1: switch.sonoff_1000739592_3
light_2: switch.sonoff_1000739592_1 light_3: light.bulb_rgbcw_4f2452 light_4: light.living_room_lamp

Titles for lights

light_1_title: Bedroom light_2_title: Bathroom light_3_title: Kitchen light_4_title: Livingroom

Media

media: media_player.freebox_player_mini_v2

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> BOARD SETUP <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

board type

esp32: board: esp32dev framework: type: arduino

logger,api,ota

api: encryption: key: "Dyrd8TMvh8Q1CeSw7ImWKb5rKgL9CDGqyfQOE7Lkx28="

ota: password: "67cde2bfd831e201161a6eaddb0f09a3"

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> WIFI SETUP <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

wifi: ssid: !secret wifi_ssid password: !secret wifi_password fast_connect: true

manual_ip:

static_ip: 192.168.0.118

gateway: 192.168.0.1

subnet: 255.255.255.0

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> GLOBAL VARIABLES <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

globals:

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> DEEP SLEEP <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

deep_sleep: id: deep_sleep_esp

wakes up using the OK button

wakeup_pin: number: GPIO26 inverted: true

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> I2C <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

i2c for display

i2c: sda: 21 scl: 22 scan: false frequency: 800kHz

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> FONTS <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

font:

media artist font

media title font

clock font

media contols font

weather font

wifi battery font

big icon font

big icon font

toggle switch font

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> SCRIPTS <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

script:

Auto sleep - sleeps the device if no button press for a while

Change the delay to adjust the cooldown time

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> SWITCHES <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

switch:

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> TIME SENSOR <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

time:

>>>>>>>>>>>>>>>>>>>>>>>>>>>> BINARY SENOSRS <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

binary_sensor:

Charger pin

##################################NAVIGATION BUTTONS############################

up button

down button

right button

left button

############################ SELECT/OK BUTTON #################################

######################### PAGE NAVINGATION BUTTONS #############################

show home page

long pressing the HOME button put the device to sleep

show lights page

show media page

############################# WAKE SLEEP BUTTON ################################
button:

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> SENSORS <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

sensor:

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> DISPLAY <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

display:

############################# INITIAL BLANK PAGE ###############################

################################# HOME PAGE ####################################

############################### LIGHTS PAGE ####################################

################################ MEDIA PAGE ####################################

################################# BOOT PAGE ####################################

############################ BATTERY CHARGING PAGE #############################

deuxzero commented 1 year ago

i ve just change stuff in substitution section / time zone and add some api

adityapattiyeri commented 1 year ago

Um I think it might be an issue with the buttons. Does pressing the button change anything on the display?

adityapattiyeri commented 1 year ago

Ooh i found the problem. Just remove "if (id(scene).has_state()) {" from the lights page. You may not have that entity setup. So the if condition would return false all the time. Be sure to remove the extra "}" at the end too. You can do the same for the media player. Let me know if it works...