Onion Information
Update: Home Assistant - Sonoff NSPanel with Custom Firmware from Blackymas
Find the Kodi Home Assistant Setup here. Ftind the Update to E-Book: Home Assistant & MQTT Mosquitto Setup adding Kodi Remote control and Zigbee2mqtt with Aqara and Ikea devices Setup here. 2024 - The Setup of the Sonoff NSPanel with cu...
Onion Details
Page Clicks: 0
First Seen: 03/11/2024
Last Indexed: 10/22/2024
Onion Content
Kontakt Update: Home Assistant - Sonoff NSPanel with Custom Firmware from Blackymas Hinweis: Da beide Bücher, auf die sich diese Beiträge beziehen, in englischer Sprache sind, sind diese Blog Einträge nur in Englisch verfügbar. Im unten angeführten Matrix Raum ist Deutsch und Englisch erlaubt. History Update 2017 In 2017 I wrote “Home Assistant - Open Source Home Automation Platform for IoT (Internet of Things) & more” and “Mosquitto - MQTT BROKER FOR IoT (Internet of Things)” which both sold really well and people especially liked the secure MQTT setup. The eBooks are available at DigitalBooks24 Update 2021 Since 2017 a lot of Thing happened and I though it is time to get some update out. The servers already was updated to FreeBSD 12.2 and all the installed software was upgraded to the last version. Home Assistant is version 2021.1.5 running on Python 3.7. See the 2021 Update. Not included here! Update 2023 I run a fully Home Assistant OS now and moved back to Owntracks which now has a Version running without Google Play Services and things are working perfect. There is a German and English Blog entry how to setup things including LIneageOS, Easer, OpenVPN, Linphone and Owntracks on your mobile: Setup in German | Setup in English The breaking change was the storm destroying my satellite system on the roof of the house. This brought a lot of things on a new way. First I invested a lot of time in a cool Kodi ( https://kodi.tv/ ) setup to have a TV replacement using streaming channels. It was pretty hard to have Kodi setup in a way that also older people are able to handle the system and to have a great user experience. The Kodi setup and how it looks like now will be described in a upcoming blog entry here. Meanwhile it is really cool including EPG, TV, Radio, Music from storage, and more. Running one setup virtual on Proxmox, able to connect via spice from a workstation and view on PC and one setup on a Mini-PC connected to my 55" TV. The setup is in a way the TV set has no Internet access and the Kodi setups run in a DMZ Network, allowed to receive the streams only. Not access to internal network or other dangerous stuff. Furthermore reduces mass surveillance as mus as possible also by mixing streams from different sources, so nobody has a full view on what we do. And for sure no microphone or video in the Mini-PC! Also all Home Assistant hardware is without any mic or cam. Find the Kodi Home Assistant Setup here. Ftind the Update to E-Book: Home Assistant & MQTT Mosquitto Setup adding Kodi Remote control and Zigbee2mqtt with Aqara and Ikea devices Setup here. 2024 The Setup of the Sonoff NSPanel with custom firmware in I was looking for the missing part in my setup. A simple display to show weather, temperature, allowing to switch lights and power and more. Finally I found the Sonoff NSPanel, a ESP32 based Display and Switch. The NSPanel is designed to replace wall mounted light switches and also able to switch two old non smart lights up to 4A. I bought a stand so I was able to mount it without replace a wall mounted switch. To be able to flash it i bought a USB to RS232 stick, some jumper cables, aso. Without flashing the firmware it looks like the above pic. I have choosen the https://github.com/Blackymas/NSPanel_HA_Blueprint/tree/main firmware for the NSPanel. This project also adds a blueprint and after initial flashing the board, one can update everything out of Homeassistant and Esphome. A lot of documentation and setup videos, even in German, are available, so I do not write another flash tutorial. One of the main problems while trying to do the initial flashing of the firmware was, that for GDPR and privacy reasons I do not use Chrome Browser and for sure also have no Windows, so also Edge is not available. Other browsers do not support WebSerial for security reasons. Based on these setup I was not able to flash the firmware via the browser. Installing chrome is no option here, so i installed esptool which is a python software to flash ESP32 boards. To be able to do this, you must download the firmware by using manual flashing in homeassistant esphome card. After hours of searching I found out that esptool --port /dev/ttyUSB0 write_flash --erase-all --flash_mode dout --flash_size 4MB 0x0 0del3/nspanel01.factory.bin flashed the firmware on the ESP32 mainboard of the NSPanel. There was another problem that it is really needed to keep a finger on the cables so there is a good contact during flashing. Otherwise you run into problems, fails and much more. Finally if the firmware is flashed, one can remount the panel and update it via WLAN from now on. Before being able to use the panel in combination with the projects blueprint, you must upload the tft panel in my case the EU version. Here I run into another hours consuming problem. The version 4.3.11 has a problem with uploading the tft to the panel and the panel crashes or reboots while uploading. After a long try and search I downloaded the nspanel_eu.tft from the projects site to the HA /config/www dir. This was the file is available as /local/nspanel.tft via the Homeassistant WebUI. I finally changes the nspanel.yaml in ESPHome to substitutions: # Settings - Editable values device_name: "nspanel01" friendly_name: "NSPANEL01" wifi_ssid: !secret wifi_ssid wifi_password: !secret wifi_password # Optional nextion_update_url: "https://YourHomeassistantURL:8123/local/nspanel_eu.tft" # Add-on configuration (if needed) # heater_relay: "1" # Possible values: "1" or "2" # Customization area ##### My customization - Start ##### ##### My customization - End ##### # Core and optional configurations # we try dev instead of main due to commits for the tft uplaod problem packages: remote_package: url: https://github.com/Blackymas/NSPanel_HA_Blueprint ref: main refresh: 300s files: nspanel_esphome.yaml # Basic package # Optional advanced and add-on configurations # - esphome/nspanel_esphome_advanced.yaml # - esphome/nspanel_esphome_addon_ble_tracker.yaml # - esphome/nspanel_esphome_addon_bluetooth_proxy.yaml # - esphome/nspanel_esphome_addon_climate_cool.yaml # - esphome/nspanel_esphome_addon_climate_heat.yaml # - esphome/nspanel_esphome_addon_climate_dual.yaml # - esphome/nspanel_esphome_addon_cover.yaml cleaned out old builds and reinstalled it to the panel. After everything is done update TFT display with use nextion_update_url . After everything finally worked i setup the automation using the blueprint from the Blackymas repo. The yaml code of my automation looks like: alias: NSPanel 01 Configuration description: "" use_blueprint: path: Blackymas/nspanel_blueprint.yaml input: nspanel_name: 4949a251eec9f12fyouridcomeshere language: de date_format: "%A %-d.%-m" timezone: Europe/Vienna (CET-1CEST,M3.5.0,M10.5.0/3) decimal_separator: "," weather_entity: weather.forecast_station1 outdoortemp: sensor.outdoor_temperatur home_outdoor_temp_label_color: 87 - 227 - 137 home_value01: sensor.salzburg_freisaal_temperature home_value01_icon: mdi:thermometer home_value02: sensor.salzburg_freisaal_humidity home_value02_icon: mdi:water-percent home_value01_icon_color: 98 - 160 - 234 home_value02_label_color: 98 - 160 - 234 home_value01_label_color: 98 - 160 - 234 home_value02_icon_color: 98 - 160 - 234 home_value03: sensor.salzburg_freisaal_precipitation home_value03_label_color: 98 - 160 - 234 home_value03_icon: mdi:weather-rainy home_value03_icon_color: 98 - 160 - 234 home_value04_label_color: 237 - 51 - 59 home_value04_icon: mdi:lightning-bolt home_value04_icon_color: 237 - 51 - 59 home_outdoor_temp_font: "3" chip01: sensor.bewegung_terrasse_aktiv chip01_icon: mdi:cat chip01_inverted: false chip01_icon_color: 255 - 0 chip02: switch.ikea_tradfri_outlet_2 chip02_icon: mdi:lightbulb chip02_icon_color: 245 - 194 - 17 chip03: switch.ikea_tretakt_outlet_2 chip03_icon: mdi:lamp chip03_icon_color: 245 - 194 - 17 chip04: switch.at435020 chip04_icon_color: 245 - 194 - 17 chip04_icon: mdi:wifi chip05: switch.ikea_tretakt_outlet_1 chip05_icon: mdi:wifi-strength-2 chip05_icon_color: 245 - 194 - 17 chip06: binary_sensor.kodi_wz_ping_binary_sensor chip06_icon: mdi:television chip06_icon_color: 38 - 162 - 105 home_custom_button01_icon: "" home_custom_button02_icon: "" home_custom_button03_icon: "" home_custom_button04_icon: "" relay01_icon: mdi:lightbulb relay01_icon_color: 249 - 240 - 107 relay02_icon: mdi:floor-lamp relay02_icon_color: 249 - 240 - 107 hw_buttons_bar_color_on: 245 - 194 - 17 left_button_entity: switch.ikea_tradfri_outlet_2 left_button_name: Lampe right_button_entity: switch.ikea_tretakt_outlet_2 right_button_name: Stehlampe chip_font_size: "8" home_value04: sensor.smart_meter_waerme_wirkleistung_bezug_p_2 entity_page01_label: Freisaal entities_entity01: sensor.salzburg_freisaal_temperature entities_entity01_name: Temperatur entities_entity01_icon: "" entities_entity02: sensor.salzburg_freisaal_humidity entities_entity02_name: Luftfeuchtigkeit entities_entity03: sensor.salzburg_freisaal_precipitation entities_entity02_icon: "" entities_entity03_name: Regen entities_entity04: sensor.salzburg_freisaal_wind_speed entities_entity04_name: Wind entities_entity05: sensor.salzburg_freisaal_pressure entities_entity05_name: Luftdruck entity_page02_label: Wohnzimmer entities_entity09: sensor.wohnzimmer_temperatur entities_entity09_name: Temperatur entities_entity10: sensor.wohnzimmer_luftfeuchtigkeit entities_entity10_name: Luftfeuchtigkeit entities_entity11: sensor.wohnzimmer_luftdruck entities_entity11_name: Luftdruck entity_page03_label: Serverraum entities_entity17: sensor.serverraum_temperatur entities_entity17_name: Temperatur entities_entity18: sensor.serverraum_luftfeuchtigkeit entities_entity18_name: Luftfeuchtigkeit entities_entity19: sensor.serverraum_luftdruck entities_entity19_name: Luftdruck entity_page04_label: Outdoor entities_entity25: sensor.outdoor_temperatur entities_entity25_name: Temperatur entities_entity26: sensor.outdoor_luftfeuchtigkeit entities_entity26_name: Luftfeuchtigkeit entities_entity27: sensor.outdoor_luftdruck entities_entity27_name: Luftdruck utilities_enabled: true utilities_page01_home_value1: sensor.smart_meter_waerme_wirkleistung_bezug_p utilities_page01_home_value2: sensor.smart_meter_waerme_wirkleistung_bezug_p_2 utilities_page01_label: Energie Dashboard utilities_page01_home_label: Haus home_button08_icon: mdi:lightning-bolt-circle utilities_page01_grid_label: kwh Monat utilities_page01_grid_value1: sensor.stromverbrauch_monatlich_std utilities_page01_grid_value2: sensor.stromverbrauch_monatlich_hwp utilities_page01_group01_label: Zähler utilities_page01_group01_icon: "" utilities_page01_group01_value1: sensor.smart_meter_waerme_wirkenergie_bezug_a utilities_page01_group01_value2: sensor.smart_meter_waerme_wirkenergie_bezug_a_2 utilities_page01_group02_label: pro Std utilities_page01_group02_value1: sensor.stromverbrauch_stundlich_std utilities