Skip to content

Commit

Permalink
change domain
Browse files Browse the repository at this point in the history
  • Loading branch information
KartoffelToby committed Sep 23, 2022
1 parent 7fc6ac5 commit a6d9227
Show file tree
Hide file tree
Showing 11 changed files with 285 additions and 39 deletions.
12 changes: 6 additions & 6 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
remote_theme: just-the-docs/just-the-docs
#theme: just-the-docs
theme: just-the-docs


# Welcome to Jekyll!
Expand All @@ -20,7 +20,7 @@ remote_theme: just-the-docs/just-the-docs
title: Better Thermostat
description: Documentation for Better Thermostat
baseurl: "/" # the subpath of your site, e.g. /blog
url: "https://bt.t-haber.de" # the base hostname & protocol for your site, e.g. http://example.com
url: "https://better-thermostat.org/" # the base hostname & protocol for your site, e.g. http://example.com
logo: /assets/logo.png
permalink: pretty
exclude: ["custom_components/", ".vscode", "node_modules/", "*.gemspec", "*.gem", "Gemfile", "Gemfile.lock", "package.json", "package-lock.json", "script/", "LICENSE.txt", "lib/", "bin/", "README.md", "Rakefile", "vendor"]
Expand Down Expand Up @@ -76,7 +76,7 @@ aux_links:
- "https://github.com/KartoffelToby/better_thermostat"

# Makes Aux links open in a new tab. Default is false
aux_links_new_tab: false
aux_links_new_tab: true

# Sort order for navigation links
# nav_sort: case_insensitive # default, equivalent to nil
Expand All @@ -94,7 +94,7 @@ nav_external_links:
back_to_top: true
back_to_top_text: "Back to top"

footer_content: "Copyright &copy; 2022 Tobias Haber. Distributed by an <a href=\"https://github.com/KartoffelToby/better_thermostat/blob/master/LICENSE\">AGPL-3.0 license.</a>"
footer_content: "Distributed by an <a href=\"https://github.com/KartoffelToby/better_thermostat/blob/master/LICENSE\">AGPL-3.0 license.</a>"

# Footer last edited timestamp
last_edit_timestamp: true # show or hide edit time - page must have `last_modified_date` defined in the frontmatter
Expand All @@ -111,9 +111,9 @@ gh_edit_branch: "master" # the branch that your docs is served from
gh_edit_view_mode: "tree" # "tree" or "edit" if you want the user to jump into the editor immediately

# Color scheme currently only supports "dark", "light"/nil (default), or a custom scheme that you define
color_scheme: dark
color_scheme: bt

callouts_level: quiet # or loud
callouts_level: loud # or loud
callouts:
link:
color: green
Expand Down
247 changes: 247 additions & 0 deletions _sass/color_schemes/bt.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
$maincolor: #0d1214ff;

$body-background-color: $maincolor;
$sidebar-color: $maincolor;
$border-color: $grey-dk-200;
$body-text-color: $grey-lt-300;
$body-heading-color: $grey-lt-000;
$nav-child-link-color: $grey-dk-000;
$search-result-preview-color: $grey-lt-300;
$link-color: #43a047;
$btn-primary-color: $blue-200;
$base-button-color: $grey-dk-250;
$search-background-color: $maincolor;
$table-background-color: $grey-dk-250;
$feedback-color: darken($sidebar-color, 3%);

// The following highlight theme is more legible than that used for the light color scheme

// @import "./vendor/OneDarkJekyll/syntax-one-dark";
// $code-background-color: #282c34;

//@import "./vendor/OneDarkJekyll/syntax-one-dark-vivid";

$code-background-color: #282c34;


// @import "./vendor/OneDarkJekyll/syntax-firewatch";
// $code-background-color: #282c34;

// @import "./vendor/OneDarkJekyll/syntax-firewatch-green";
// $code-background-color: #282c34;

body, .search-input {
color: #fff !important;
}

.site-header {
min-height: 120px !important;
}

.site-logo {
max-height: 115px;
max-width: 115px;
margin: 0 auto;
}


.highlight,
pre.highlight {
background: #282c34 !important;
color: #abb2bf !important;
}
.highlight pre {
background: #282c34 !important;
}
.highlight .hll {
background: #282c34 !important;
}
.highlight .c {
color: #5c6370 !important;
font-style: italic;
}
.highlight .err {
color: #960050 !important;
background-color: #1e0010 !important;
}
.highlight .k {
color: #5ba473 !important;
}
.highlight .l {
color: #c8ae9d !important;
}
.highlight .n {
color: #abb2bf !important;
}
.highlight .o {
color: #abb2bf !important;
}
.highlight .p {
color: #abb2bf !important;
}
.highlight .cm {
color: #5c6370 !important;
font-style: italic;
}
.highlight .cp {
color: #5c6370 !important;
font-style: italic;
}
.highlight .c1 {
color: #5c6370 !important;
font-style: italic;
}
.highlight .cs {
color: #5c6370 !important;
font-style: italic;
}
.highlight .ge {
font-style: italic;
}
.highlight .gs {
font-weight: 700;
}
.highlight .kc {
color: #5ba473 !important;
}
.highlight .kd {
color: #5ba473 !important;
}
.highlight .kn {
color: #5ba473 !important;
}
.highlight .kp {
color: #5ba473 !important;
}
.highlight .kr {
color: #5ba473 !important;
}
.highlight .kt {
color: #5ba473 !important;
}
.highlight .ld {
color: #c8ae9d !important;
}
.highlight .m {
color: #d19a66 !important;
}
.highlight .s {
color: #c8ae9d !important;
}
.highlight .na {
color: #d19a66 !important;
}
.highlight .nb {
color: #e5c07b !important;
}
.highlight .nc {
color: #e5c07b !important;
}
.highlight .no {
color: #e5c07b !important;
}
.highlight .nd {
color: #e5c07b !important;
}
.highlight .ni {
color: #e5c07b !important;
}
.highlight .ne {
color: #e5c07b !important;
}
.highlight .nf {
color: #abb2bf !important;
}
.highlight .nl {
color: #e5c07b !important;
}
.highlight .nn {
color: #abb2bf !important;
}
.highlight .nx {
color: #abb2bf !important;
}
.highlight .py {
color: #e5c07b !important;
}
.highlight .nt {
color: #77b181 !important;
}
.highlight .nv {
color: #e5c07b !important;
}
.highlight .ow {
font-weight: 700;
}
.highlight .w {
color: #f8f8f2 !important;
}
.highlight .mf {
color: #d19a66 !important;
}
.highlight .mh {
color: #d19a66 !important;
}
.highlight .mi {
color: #d19a66 !important;
}
.highlight .mo {
color: #d19a66 !important;
}
.highlight .sb {
color: #c8ae9d !important;
}
.highlight .sc {
color: #c8ae9d !important;
}
.highlight .sd {
color: #c8ae9d !important;
}
.highlight .s2 {
color: #c8ae9d !important;
}
.highlight .se {
color: #c8ae9d !important;
}
.highlight .sh {
color: #c8ae9d !important;
}
.highlight .si {
color: #c8ae9d !important;
}
.highlight .sx {
color: #c8ae9d !important;
}
.highlight .sr {
color: #56b6c2 !important;
}
.highlight .s1 {
color: #c8ae9d !important;
}
.highlight .ss {
color: #56b6c2 !important;
}
.highlight .bp {
color: #e5c07b !important;
}
.highlight .vc {
color: #e5c07b !important;
}
.highlight .vg {
color: #e5c07b !important;
}
.highlight .vi {
color: #77b181 !important;
}
.highlight .il {
color: #d19a66 !important;
}
.highlight .gu {
color: #75715e !important;
}
.highlight .gd {
color: #f92672 !important;
}
.highlight .gi {
color: #a6e22e !important;
}
20 changes: 0 additions & 20 deletions _sass/custom/custom.scss

This file was deleted.

Binary file modified assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion custom_components/better_thermostat/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from random import randint

from custom_components.better_thermostat.weather import check_ambient_air_temperature
from .helpers import convert_to_float
from .helpers import convert_to_float, mode_remap
from homeassistant.helpers import entity_platform

from homeassistant.components.climate import ClimateEntity
Expand Down Expand Up @@ -362,6 +362,7 @@ async def startup(self):
or 5
)
self._trv_hvac_mode = trv_state.state
self._bt_hvac_mode = mode_remap(self._trv_hvac_mode, True)
self._last_reported_valve_position = (
trv_state.attributes.get("valve_position", None) or None
)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/better_thermostat/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"confirm": {
"title": "Bestätige das hinzufügen eines Better Thermostat",
"description": "Du bist dabei ein Gerät mit dem Namen `{name}` zu Home Assistant hinzuzufügen.\nMit {trv} als reales Thermostat\nund dem Kalibrations-modus: {calibration_mode}\n\n**Wenn du mehr infos brauchst: https://bt.t-haber.de/setup** "
"description": "Du bist dabei ein Gerät mit dem Namen `{name}` zu Home Assistant hinzuzufügen.\nMit {trv} als reales Thermostat\nund dem Kalibrations-modus: {calibration_mode}\n\n**Wenn du mehr infos brauchst: https://better-thermostat.org/configuration/new_device** "
}
},
"error": {
Expand Down
2 changes: 1 addition & 1 deletion custom_components/better_thermostat/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"confirm": {
"title": "Confirm adding a Better Thermostat",
"description": "You are about to add `{name}` to Home Assistant.\nWith {trv} as the real Thermostat\nand calibration mode: {calibration_mode}\n\n**If you need more info: https://bt.t-haber.de/setup** "
"description": "You are about to add `{name}` to Home Assistant.\nWith {trv} as the real Thermostat\nand calibration mode: {calibration_mode}\n\n**If you need more info: https://better-thermostat.org/configuration/new_device** "
}
},
"error": {
Expand Down
2 changes: 1 addition & 1 deletion custom_components/better_thermostat/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"confirm": {
"title": "Confirm adding a Better Thermostat",
"description": "You are about to add `{name}` to Home Assistant.\nWith {trv} as the real Thermostat\nand calibration mode: {calibration_mode}\n\n**If you need more info: https://bt.t-haber.de/setup** "
"description": "You are about to add `{name}` to Home Assistant.\nWith {trv} as the real Thermostat\nand calibration mode: {calibration_mode}\n\n**If you need more info: https://better-thermostat.org/configuration/new_device** "
}
},
"error": {
Expand Down
9 changes: 9 additions & 0 deletions docs/Configuration/configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
layout: default
title: Configuration
nav_order: 2
has_children: true
permalink: configuration
---

# Configuration
18 changes: 18 additions & 0 deletions docs/Configuration/setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
layout: default
title: Add new device
nav_order: 3
description: "BT."
permalink: configuration/new_device
parent: Configuration
---

# soon

<a href="https://my.home-assistant.io/redirect/config_flow_start/?domain=better_thermostat" target="_blank"><img src="https://my.home-assistant.io/badges/config_flow_start.svg" alt="Open your Home Assistant instance and start setting up a new integration." /></a>

```yaml
# Example configuration.yaml entry
cars: "test"
super: 2
```
Loading

0 comments on commit a6d9227

Please sign in to comment.