-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Preparation for weather module - weather icons added. - .show_message service reworked - it is now possible to show multiple texts and images at once! - Light entity has been revised here the old one must be deleted! - The entire custom component has been tidied up a bit more clearly.
- Loading branch information
Showing
21 changed files
with
161 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import voluptuous as vol | ||
from homeassistant.helpers import config_validation as cv | ||
|
||
CHANNEL_SCHEMA = vol.Schema({ | ||
vol.Required('number'): cv.positive_int, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import voluptuous as vol | ||
from homeassistant.helpers import config_validation as cv | ||
|
||
CLOCKID_SCHEMA = vol.Schema({ | ||
vol.Required('number'): cv.positive_int, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import voluptuous as vol | ||
from homeassistant.helpers import config_validation as cv | ||
|
||
IMAGE_SCHEMA = vol.Schema({ | ||
vol.Required('image'): cv.string, | ||
vol.Required('position'): vol.All(cv.ensure_list, [cv.positive_int], vol.Length(min=2, max=2)), | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import voluptuous as vol | ||
from homeassistant.helpers import config_validation as cv | ||
from .text_schema import TEXT_SCHEMA | ||
from .image_schema import IMAGE_SCHEMA | ||
from .pv_schema import PV_SCHEMA | ||
from .channel_schema import CHANNEL_SCHEMA | ||
from .clockid_schema import CLOCKID_SCHEMA | ||
|
||
PAGE_SCHEMA = vol.Schema({ | ||
vol.Required('page'): cv.positive_int, | ||
vol.Optional('condition'): cv.template, | ||
vol.Optional('texts'): vol.All(cv.ensure_list, [TEXT_SCHEMA]), | ||
vol.Optional('images'): vol.All(cv.ensure_list, [IMAGE_SCHEMA]), | ||
vol.Optional('PV'): PV_SCHEMA, | ||
vol.Optional('channel'): vol.All(cv.ensure_list, [CHANNEL_SCHEMA]), | ||
vol.Optional('clockId'): vol.All(cv.ensure_list, [CLOCKID_SCHEMA]), | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# pv_schema.py | ||
import voluptuous as vol | ||
from homeassistant.helpers import config_validation as cv | ||
|
||
PV_SCHEMA = vol.Schema({ | ||
vol.Required('power'): cv.string, | ||
vol.Required('storage'): cv.string, | ||
vol.Required('discharge'): cv.string, | ||
vol.Required('powerhousetotal'): cv.string, | ||
vol.Required('vomNetz'): cv.string, | ||
vol.Required('time'): cv.string, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import voluptuous as vol | ||
from homeassistant.helpers import config_validation as cv | ||
|
||
TEXT_SCHEMA = vol.Schema({ | ||
vol.Required('text'): cv.string, | ||
vol.Required('position'): vol.All(cv.ensure_list, [cv.positive_int], vol.Length(min=2, max=2)), | ||
vol.Required('font'): cv.string, | ||
vol.Required('font_color'): vol.All(cv.ensure_list, [cv.positive_int], vol.Length(min=3, max=3)), | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters