shlomki / homeassistant-config Goto Github PK
View Code? Open in Web Editor NEWA place to get inspiration for your own Home Assistant implementation.
A place to get inspiration for your own Home Assistant implementation.
Hi, great work on this. Does this code need breaking down into relevant folders or can I paste directly into configuration.yaml? Perhaps even into its own file with !include filename.yaml
First, thanks for your job !
If you want this automation to work with 'Nmap tracker' integration, add 'not_home' line 13 :
state: "{{ expand('group.monitored_entities') | selectattr('state', 'in', ['not_home', 'unavailable', 'unknown', 'none']) | join(', ', attribute='attributes.friendly_name') | truncate(252) or 'Online' }}"
It can be usefull to track easily esphome device for example.
בוקר טוב, ניסיתי להגדיר אצלי כמו שהסברת כאן וחסר לי נתונים , חשבון קודם לא מתעדכן לי,תשלום עתידי גם לא,
אשמח אם תוכל לעזור לי.
sensors:
power_total:
friendly_name: "Total Power"
unit_of_measurement: 'watt'
value_template: "{{ (states('sensor.shelly_em_50a_channel_1_power') | float) | round(2)}}"
energy_total:
friendly_name: "Total Energy"
unit_of_measurement: 'kWh'
value_template: "{{ states('sensor.shelly_em_50a_channel_1_energy') | float}}"
energy_total_today:
friendly_name: "Total Energy Today"
value_template: "{{ (states('sensor.energy_total') | float) - (states('input_text.energy_total_yesterday') | float) }}"
unit_of_measurement: "kWh"
power_cost_per_hour:
friendly_name: "Cost per Hour"
unit_of_measurement: 'NIS'
value_template: "{{ (states('sensor.power_total') | float / 1000 * states('input_text.power_nis_per_kwh') | float)|round(2) }}"
power_nis_per_kwh:
friendly_name: Power NIS per kWh (incl. VAT)
value_template: "{{ states('input_text.power_nis_per_kwh') | float }}"
unit_of_measurement: "NIS"
energy_total_today_cost:
friendly_name: "Today Cost"
value_template: "{{ ((states('sensor.energy_total_today') | float) * (states('input_text.power_nis_per_kwh') | float))|round(1) }}"
unit_of_measurement: "NIS"
energy_total_next_bill_cost:
friendly_name: "Next Bill Cost"
value_template: "{{ ((states('sensor.energy_total_next_bill') | float) * (states('input_text.power_nis_per_kwh') | float) + (states('input_text.power_monthly_additional_cost') | int ))|round(1)}}"
unit_of_measurement: "NIS"
First of all, thank you very much for sharing your work with the rest of the users.
I am trying to create an automation to receive a notification when a device goes offline.
I would like to ask you if you have thought of creating a Blueprint of your code, which would be very much appreciated by the rest of the world.
Or if you could help me to create it I would also appreciate it.
Best regards.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.